Skip to content

Run reviews without unfinished MCP servers#30500

Open
charliemarsh-oai wants to merge 16 commits into
mainfrom
charlie/review-without-mcp-startup
Open

Run reviews without unfinished MCP servers#30500
charliemarsh-oai wants to merge 16 commits into
mainfrom
charlie/review-without-mcp-startup

Conversation

@charliemarsh-oai

@charliemarsh-oai charliemarsh-oai commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Review child sessions currently take the same MCP initialization path as normal sessions. If the parent session's MCP clients are still starting, launching a review can therefore wait on OAuth discovery and client startup even though the review does not require those unfinished servers.

This PR makes MCP availability a launch-time policy for the review child. We snapshot whether the parent MCP connection manager has finished starting every configured client and pass that decision through the child session and turn context as McpAccess. A review launched after startup settles keeps the normal MCP path, including when an optional server failed; a review launched while any client is pending uses disabled MCP access for its lifetime.

In disabled mode, the child skips MCP auth discovery and connection startup, uses an ephemeral empty MCP runtime for each model step, and suppresses Apps, configured and plugin-provided MCP tools, resource tools, MCP skill-dependency installation, and tool suggestions. Plugin policy hooks remain active, and the child never mutates or replaces the parent's shared MCP runtime. The decision does not change underneath an in-flight review, while a later review can use MCP once parent startup has completed.

Stack

This is PR 1 of 2 and provides the safe core behavior after a review has been launched. On its own, it does not make /review available while the TUI reports MCP startup; it only guarantees that any client which launches a review at that point will not wait for unfinished MCP servers.

#30509 is PR 2 of 2. It changes the TUI's activity state and command gating so /review can actually launch while MCP startup remains in the background. It depends on this PR so that launching early produces a review without unfinished MCP rather than a review that still waits for it.

@charliemarsh-oai charliemarsh-oai force-pushed the charlie/review-without-mcp-startup branch from 273d908 to 98fe05e Compare June 29, 2026 02:19
@charliemarsh-oai charliemarsh-oai force-pushed the charlie/review-without-mcp-startup branch from 98fe05e to d63f5c7 Compare June 29, 2026 02:51
@charliemarsh-oai charliemarsh-oai changed the title Allow review while MCP servers are starting Run reviews without unfinished MCP servers Jun 29, 2026
@charliemarsh-oai charliemarsh-oai marked this pull request as ready for review June 30, 2026 00:57
@charliemarsh-oai charliemarsh-oai requested a review from a team as a code owner June 30, 2026 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant