Skip to content

Fix TUI input queue handling during MCP startup - #35957

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/f5684f61c32e3728ff71cf222f0486df637dc3a5
Jul 29, 2026
Merged

Fix TUI input queue handling during MCP startup#35957
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/f5684f61c32e3728ff71cf222f0486df637dc3a5

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 29, 2026

Copy link
Copy Markdown

Fix TUI input queue handling during MCP startup

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.

## 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
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/f5684f61c32e3728ff71cf222f0486df637dc3a5 branch from a7d4600 to e189571 Compare July 29, 2026 13:47
@copyberry
copyberry Bot merged commit e189571 into main Jul 29, 2026
31 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/f5684f61c32e3728ff71cf222f0486df637dc3a5 branch July 29, 2026 13:48
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant