Silence progress redraw interruptions

This commit is contained in:
Dave Aitel
2026-02-06 14:34:36 -05:00
parent 8077634a5f
commit 7ca99ba4d8
@@ -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
)
}