From ce94c79d4c40cdc79dcb1c7736adf498120aa726 Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Tue, 13 Jan 2026 01:20:03 -0800 Subject: [PATCH] Update exec.rs --- codex-rs/core/src/exec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/core/src/exec.rs b/codex-rs/core/src/exec.rs index 5c7fe5a527..f4cdad2f46 100644 --- a/codex-rs/core/src/exec.rs +++ b/codex-rs/core/src/exec.rs @@ -666,7 +666,7 @@ async fn consume_truncated_output( // That would cause the `read_capped` tasks to block on `read()` // indefinitely, effectively hanging the whole agent. - const IO_DRAIN_TIMEOUT_MS: u64 = 2_000; // 2 s should be plenty for local pipes + const IO_DRAIN_TIMEOUT_MS: u64 = 10; // We need mutable bindings so we can `abort()` them on timeout. use tokio::task::JoinHandle;