mirror of
https://github.com/openai/codex.git
synced 2026-05-02 20:32:04 +03:00
V1
This commit is contained in:
@@ -2125,7 +2125,17 @@ impl CodexMessageProcessor {
|
||||
.codex_home
|
||||
.join(codex_core::ARCHIVED_SESSIONS_SUBDIR);
|
||||
tokio::fs::create_dir_all(&archive_folder).await?;
|
||||
tokio::fs::rename(&canonical_rollout_path, &archive_folder.join(&file_name)).await?;
|
||||
let destination = archive_folder.join(&file_name);
|
||||
tracing::debug!(
|
||||
"archiving {conversation_id}: moving {} -> {}",
|
||||
canonical_rollout_path.display(),
|
||||
destination.display()
|
||||
);
|
||||
tokio::fs::rename(&canonical_rollout_path, &destination).await?;
|
||||
tracing::debug!(
|
||||
"archiving {conversation_id}: archived rollout moved to {}",
|
||||
destination.display()
|
||||
);
|
||||
Ok(())
|
||||
}
|
||||
.await;
|
||||
|
||||
Reference in New Issue
Block a user