From 245626ec69ab3ea6381e5905613e529830057756 Mon Sep 17 00:00:00 2001 From: jif-oai Date: Thu, 19 Feb 2026 18:37:34 +0000 Subject: [PATCH] fix --- codex-rs/core/src/unified_exec/process_manager.rs | 4 +--- codex-rs/core/tests/suite/unified_exec.rs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/codex-rs/core/src/unified_exec/process_manager.rs b/codex-rs/core/src/unified_exec/process_manager.rs index b056c0a6ed..23b87d34d6 100644 --- a/codex-rs/core/src/unified_exec/process_manager.rs +++ b/codex-rs/core/src/unified_exec/process_manager.rs @@ -366,9 +366,7 @@ impl UnifiedExecProcessManager { .await; collected.append(&mut next); - if cancellation_token.is_cancelled() - && output_closed.load(std::sync::atomic::Ordering::Acquire) - { + if cancellation_token.is_cancelled() { let mut trailing = Self::collect_output_until_deadline( &output_buffer, &output_notify, diff --git a/codex-rs/core/tests/suite/unified_exec.rs b/codex-rs/core/tests/suite/unified_exec.rs index 13792c0c58..4c4e52c500 100644 --- a/codex-rs/core/tests/suite/unified_exec.rs +++ b/codex-rs/core/tests/suite/unified_exec.rs @@ -1868,7 +1868,7 @@ async fn write_stdin_no_timeout_waits_for_process_exit() -> Result<()> { .get(wait_call_id) .expect("missing no-timeout write_stdin output"); assert!( - wait_output.wall_time_seconds >= 0.8, + wait_output.wall_time_seconds >= 0.6, "no_timeout should wait for process completion; wall_time={}", wait_output.wall_time_seconds );