mirror of
https://github.com/openai/codex.git
synced 2026-11-05 20:10:33 +00:00
Flush ad-hoc memory instruction seed
This commit is contained in:
@@ -16,7 +16,8 @@ pub(super) async fn seed_instructions(memory_root: &Path) -> std::io::Result<()>
|
||||
.await
|
||||
{
|
||||
Ok(mut file) => {
|
||||
tokio::io::AsyncWriteExt::write_all(&mut file, INSTRUCTIONS.as_bytes()).await
|
||||
tokio::io::AsyncWriteExt::write_all(&mut file, INSTRUCTIONS.as_bytes()).await?;
|
||||
tokio::io::AsyncWriteExt::flush(&mut file).await
|
||||
}
|
||||
Err(err) if err.kind() == std::io::ErrorKind::AlreadyExists => Ok(()),
|
||||
Err(err) => Err(err),
|
||||
|
||||
Reference in New Issue
Block a user