Skip to content

Allow resume and settings commands during tasks and MCP startup#29154

Merged
etraut-openai merged 5 commits into
mainfrom
etraut/allow-resume-during-tasks
Jun 20, 2026
Merged

Allow resume and settings commands during tasks and MCP startup#29154
etraut-openai merged 5 commits into
mainfrom
etraut/allow-resume-during-tasks

Conversation

@etraut-openai

@etraut-openai etraut-openai commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Why

The TUI treats both an active turn and MCP startup as a running task. That currently blocks /resume and several settings commands even though they do not compete with turn execution, which is especially frustrating when MCP startup is slow.

Model, permissions, personality, and service-tier selections already update thread settings independently of the running turn. Other clients can send those updates mid-turn, while the current turn continues with its captured settings. Allowing the same updates from local slash commands makes the TUI consistent with that existing behavior.

What changed

  • Allow /resume while a task is running.
  • Allow /model, /permissions, /personality, and service-tier commands such as /fast while a task is running.
  • Keep the existing behavior where the active turn uses its captured settings and updates apply to subsequent turns.
  • Exercise the commands under the busy state in the existing TUI tests and retain coverage for commands that should remain blocked.

Behavior note

Turn settings such as model selection and reasoning effort are captured when a turn starts. Changing them during an active turn affects the next turn, not the turn already in progress. The status bar updates immediately, so it may temporarily display the newly selected setting before that setting is actually in effect.

Verification

  • Focused codex-tui tests for resume dispatch, settings popups, /fast, and disabled-command behavior.

Related issues

Closes #19015.

Addresses the next-turn-safe model/reasoning switching portion of #14356; dedicated shortcuts and the proposed depth meter remain out of scope.

@etraut-openai etraut-openai changed the title etraut/allow resume during tasks [codex] Allow resume and settings commands during tasks Jun 20, 2026
@etraut-openai
etraut-openai marked this pull request as ready for review June 20, 2026 00:07
@etraut-openai etraut-openai changed the title [codex] Allow resume and settings commands during tasks Allow resume and settings commands during tasks Jun 20, 2026
@etraut-openai etraut-openai changed the title Allow resume and settings commands during tasks Allow resume and settings commands during tasks and MCP startup Jun 20, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5a087c52b8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/tui/src/app/event_dispatch.rs
Comment thread codex-rs/tui/src/chatwidget/interaction.rs Outdated

@fcoury-oai fcoury-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice quality of life improvements. Tested and worked as expected.

Code looks good, approved! 👍

@etraut-openai
etraut-openai merged commit d667082 into main Jun 20, 2026
31 checks passed
@etraut-openai
etraut-openai deleted the etraut/allow-resume-during-tasks branch June 20, 2026 04:37
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/permissions needs to be able to be invoked during tasks

2 participants