Skip to content

Fix MCP startup cancellation through app server#18078

Merged
etraut-openai merged 2 commits into
mainfrom
etraut/mcp-startup-cancel
Apr 16, 2026
Merged

Fix MCP startup cancellation through app server#18078
etraut-openai merged 2 commits into
mainfrom
etraut/mcp-startup-cancel

Conversation

@etraut-openai
Copy link
Copy Markdown
Collaborator

@etraut-openai etraut-openai commented Apr 16, 2026

Addresses #17143

Problem: TUI interrupts without an active turn stopped cancelling slow MCP startup after routing through the app-server APIs.

Solution: Route no-active-turn interrupts through app-server as startup cancels, acknowledge them immediately, and emit cancelled MCP startup updates.

Testing: I manually confirmed that MCP cancellation didn't work prior to this PR and works after the fix was in place.

Copy link
Copy Markdown
Contributor

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

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: f75685b9bf

ℹ️ 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/app-server/src/codex_message_processor.rs Outdated
@etraut-openai etraut-openai merged commit 4cd85b2 into main Apr 16, 2026
34 of 36 checks passed
@etraut-openai etraut-openai deleted the etraut/mcp-startup-cancel branch April 16, 2026 07:03
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants