Lightweight coding agent that runs in your terminal
Rust
Fix a lost wakeup in the unified exec termination test (#47814)
felixxia-oai869b5527cd8c
diff --git a/codex-rs/core/src/unified_exec/mod_tests.rs b/codex-rs/core/src/unified_exec/mod_tests.rsindex 7a945a074c..6c09065f36 100644--- a/codex-rs/core/src/unified_exec/mod_tests.rs+++ b/codex-rs/core/src/unified_exec/mod_tests.rs@@ -661,7 +661,8 @@ async fn terminating_initial_exec_command_rechecks_initial_response_state() -> a.store(false, std::sync::atomic::Ordering::Release);}- allow_terminate.notify_waiters();+ // Retain the release even if the sole termination waiter has not registered yet.+ allow_terminate.notify_one();let terminated = tokio::time::timeout(Duration::from_secs(2), terminate_task).await.expect("terminate should finish")