From 032743575d1fc29e9a34b0cec589957bfde269ae Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Thu, 24 Jul 2025 11:43:17 -0700 Subject: [PATCH] review --- codex-rs/cli/Cargo.toml | 2 +- codex-rs/core/src/rollout.rs | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/codex-rs/cli/Cargo.toml b/codex-rs/cli/Cargo.toml index 4e037c5acc..60d40f3451 100644 --- a/codex-rs/cli/Cargo.toml +++ b/codex-rs/cli/Cargo.toml @@ -26,6 +26,7 @@ codex-login = { path = "../login" } codex-linux-sandbox = { path = "../linux-sandbox" } codex-mcp-server = { path = "../mcp-server" } codex-tui = { path = "../tui" } +predicates = "3.1.3" serde_json = "1" tokio = { version = "1", features = [ "io-std", @@ -36,7 +37,6 @@ tokio = { version = "1", features = [ ] } tracing = "0.1.41" tracing-subscriber = "0.3.19" -predicates = "3.1.3" [dev-dependencies] assert_cmd = "2" diff --git a/codex-rs/core/src/rollout.rs b/codex-rs/core/src/rollout.rs index 633ec3e00e..289e1afa06 100644 --- a/codex-rs/core/src/rollout.rs +++ b/codex-rs/core/src/rollout.rs @@ -293,9 +293,6 @@ async fn rollout_writer( if let Err(e) = write_json_line(&mut file, &meta).await { warn!("Failed to write session meta: {e}"); } - if let Err(e) = file.flush().await { - warn!("Failed to flush meta: {e}"); - } } // Main loop @@ -347,7 +344,8 @@ pub async fn prepare_rollout_recorder( resume_path: Option<&Path>, ) -> RolloutSetup { // Try to resume - let (mut restored_items, mut recorder_opt) = (None, None); + let mut restored_items = None; + let mut recorder_opt = None; if let Some(path) = resume_path { match RolloutRecorder::resume(path).await {