From 868019da9b65e7bcc89fdcd6f8bebb1ed8a32b53 Mon Sep 17 00:00:00 2001 From: Charles Cunningham Date: Tue, 17 Feb 2026 22:50:48 -0800 Subject: [PATCH] Skip mid-turn compaction error event on interruption --- codex-rs/core/src/codex.rs | 3 +++ 1 file changed, 3 insertions(+) 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())), );