Add tests

This commit is contained in:
jif-oai
2025-11-19 12:13:36 +00:00
parent d1cf2b967c
commit 26d667e152
4 changed files with 398 additions and 9 deletions

View File

@@ -2265,16 +2265,7 @@ impl CodexMessageProcessor {
.join(codex_core::ARCHIVED_SESSIONS_SUBDIR);
tokio::fs::create_dir_all(&archive_folder).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;