mirror of
https://github.com/openai/codex.git
synced 2026-11-18 23:02:23 +00:00
Fix TUI input queue handling during MCP startup (#35957)
## Why Pending MCP server startup can outlive an agent turn. Treating its shared running indicator as an active user turn prevents queued follow-ups and slash commands from advancing after the turn completes. ## What changed - Allow the input queue to drain while only MCP startup remains active. - Keep queued input blocked while a review, foreground shell command, or compaction is pending or running. - Resume queue draining after session-selection flows close. ## Testing Add TUI tests covering queued follow-ups, slash commands, reviews, shell commands, and compaction while MCP startup is pending. GitOrigin-RevId: f5684f61c32e3728ff71cf222f0486df637dc3a5
This commit is contained in:
1 parent
9a6668f674
commit
e1895710ad
8 files changed
+197
-8
No files matched your search
@@ -32,7 +32,9 @@ impl ChatWidget {
|
||||
/// both the agent turn lifecycle and MCP startup lifecycle.
|
||||
pub(super) fn update_task_running_state(&mut self) {
|
||||
self.bottom_pane.set_task_running(
|
||||
self.turn_lifecycle.agent_turn_running || self.mcp_startup_status.is_some(),
|
||||
self.turn_lifecycle.agent_turn_running
|
||||
|| self.review.is_review_mode
|
||||
|| self.mcp_startup_status.is_some(),
|
||||
);
|
||||
self.refresh_plan_mode_nudge();
|
||||
self.refresh_status_surfaces();
|
||||
|
||||
Reference in new issue
Block a user