Skip to content

Fix /review mode MCP startup render issue#21624

Merged
canvrno-oai merged 6 commits into
mainfrom
canvrno/thread-scoped-mcp-startup-status
May 15, 2026
Merged

Fix /review mode MCP startup render issue#21624
canvrno-oai merged 6 commits into
mainfrom
canvrno/thread-scoped-mcp-startup-status

Conversation

@canvrno-oai
Copy link
Copy Markdown
Contributor

@canvrno-oai canvrno-oai commented May 8, 2026

This change fixes the case where the UI can sit on "Starting MCP servers" even though the review work is already running or has already completed.

  • MCP startup status header is visible when a /review turn starts with enabled MCP server startups
  • Restore the underlying Working... status after MCP startup completes or fails
  • Add regression coverage for overlapping startup/turn flows and status restoration

De-scoped from a broader thread-scoped MCP status change that would have made it easier to route MCP startup statuses to the appropriate thread (parent vs. review). These changes address the UI regression without requiring more significant changes across app-server & core.

Fixes #18792.

@canvrno-oai canvrno-oai force-pushed the canvrno/thread-scoped-mcp-startup-status branch 3 times, most recently from 9d62088 to f0d10cd Compare May 11, 2026 19:15
@canvrno-oai
Copy link
Copy Markdown
Contributor Author

@codex review

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: 1293af76f8

ℹ️ 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/app_server_event_targets.rs Outdated
@canvrno-oai canvrno-oai marked this pull request as ready for review May 13, 2026 00:21
@canvrno-oai canvrno-oai requested a review from a team as a code owner May 13, 2026 00:21
@canvrno-oai canvrno-oai changed the title Make MCP startup status thread-scoped and unblock /review Make MCP startup status thread-scoped and unblock /review UI update May 13, 2026
@canvrno-oai canvrno-oai marked this pull request as draft May 13, 2026 01:40
@canvrno-oai canvrno-oai force-pushed the canvrno/thread-scoped-mcp-startup-status branch 2 times, most recently from ac02b28 to a5f2dbf Compare May 13, 2026 06:12
@canvrno-oai canvrno-oai changed the title Make MCP startup status thread-scoped and unblock /review UI update Fix /review mode MCP startup render issue May 13, 2026
@canvrno-oai canvrno-oai force-pushed the canvrno/thread-scoped-mcp-startup-status branch from a5f2dbf to d0f928b Compare May 13, 2026 21:09
@canvrno-oai canvrno-oai marked this pull request as ready for review May 13, 2026 21:29
@canvrno-oai
Copy link
Copy Markdown
Contributor Author

@codex review

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

ℹ️ 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/chatwidget/turn_runtime.rs Outdated
@canvrno-oai canvrno-oai force-pushed the canvrno/thread-scoped-mcp-startup-status branch from d0f928b to 43a4877 Compare May 14, 2026 17:42
@canvrno-oai
Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Hooray!

ℹ️ 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".

Copy link
Copy Markdown
Contributor

@fcoury-oai fcoury-oai left a comment

Choose a reason for hiding this comment

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

Tested locally with the happy path of an isolated codex home and a slow MCP server. Tried a /review and while the MCP startup was pending it showed Starting MCP servers (0/2): codex_apps, smoke_slow_ready.

After settled, the review was still running and didn't get stuck.

Code looks good, approved. 👍

@canvrno-oai canvrno-oai merged commit 66af217 into main May 15, 2026
31 checks passed
@canvrno-oai canvrno-oai deleted the canvrno/thread-scoped-mcp-startup-status branch May 15, 2026 00:25
@github-actions github-actions Bot locked and limited conversation to collaborators May 15, 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.

Starting MCP servers (1/2): codex_apps when running /review

2 participants