diff --git a/codex-rs/exec/src/event_processor_with_human_output.rs b/codex-rs/exec/src/event_processor_with_human_output.rs index b8139c6bd0..7bcfaf0698 100644 --- a/codex-rs/exec/src/event_processor_with_human_output.rs +++ b/codex-rs/exec/src/event_processor_with_human_output.rs @@ -209,7 +209,7 @@ impl EventProcessor for EventProcessorWithHumanOutput { self.render_agent_job_progress(update); return CodexStatus::Running; } - if self.progress_active && Self::should_suppress_during_progress(&msg) { + if self.progress_active && !Self::should_interrupt_progress(&msg) { return CodexStatus::Running; } if !Self::is_silent_event(&msg) { @@ -909,27 +909,15 @@ impl EventProcessorWithHumanOutput { ) } - fn should_suppress_during_progress(msg: &EventMsg) -> bool { + fn should_interrupt_progress(msg: &EventMsg) -> bool { matches!( msg, - EventMsg::McpStartupUpdate(_) - | EventMsg::McpStartupComplete(_) - | EventMsg::McpToolCallBegin(_) - | EventMsg::McpToolCallEnd(_) - | EventMsg::WebSearchBegin(_) - | EventMsg::WebSearchEnd(_) - | EventMsg::ExecCommandBegin(_) - | EventMsg::ExecCommandOutputDelta(_) - | EventMsg::TerminalInteraction(_) - | EventMsg::ExecCommandEnd(_) - | EventMsg::BackgroundEvent(_) - | EventMsg::ViewImageToolCall(_) - | EventMsg::ContextCompacted(_) - | EventMsg::TurnDiff(_) - | EventMsg::CollabAgentSpawnBegin(_) - | EventMsg::CollabAgentSpawnEnd(_) - | EventMsg::CollabAgentInteractionBegin(_) - | EventMsg::CollabAgentInteractionEnd(_) + EventMsg::Error(_) + | EventMsg::Warning(_) + | EventMsg::DeprecationNotice(_) + | EventMsg::StreamError(_) + | EventMsg::TurnComplete(_) + | EventMsg::ShutdownComplete ) }