diff --git a/codex-rs/core/src/codex.rs b/codex-rs/core/src/codex.rs index 0f61ce4f85..bc6f926d9f 100644 --- a/codex-rs/core/src/codex.rs +++ b/codex-rs/core/src/codex.rs @@ -4538,6 +4538,9 @@ pub(crate) async fn run_turn( ) .await { + if matches!(err, CodexErr::Interrupted) { + return None; + } let event = EventMsg::Error( err.to_error_event(Some("Error running auto compact task".to_string())), );