This commit is contained in:
jif-oai
2025-11-18 16:50:45 +00:00
parent f3d4e210d8
commit 1a8c1a4d9a
22 changed files with 951 additions and 43 deletions

View File

@@ -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;