Skip to content

fix(server): keep MCP connection notices out of subagent threads - #45674

Open
tyler-bruno-lovable wants to merge 1 commit into
pingdotgg:mainfrom
tyler-bruno-lovable:fix/delegated-mcp-sign-in
Open

tyler-bruno-lovable wants to merge 1 commit into
pingdotgg:mainfrom
tyler-bruno-lovable:fix/delegated-mcp-sign-in

Conversation

@tyler-bruno-lovable

Copy link
Copy Markdown
Contributor

Every delegated Claude or Codex thread could fill its first turn with MCP connection warnings. #42263 stopped Claude from repeating a sign-in prompt within one thread, but each child gets its own thread.

Both adapters now check which thread would receive the notice. Claude skips its sign-in lookup for delegated turns. Codex consumes the child’s queued startup failures without publishing them to its timeline.

Verified with live Claude and Codex delegations. Each main thread recorded one MCP notice and each child recorded zero. Both regression replays failed on main and passed with the fix. All 771 tests in vp run check:changed passed.

Reviewed with sol-loop: 1 round with GPT-6.2 Sol. Sol verdict: approved.

Created with GPT-6 in Codex.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 29, 2026
@macroscopeapp

macroscopeapp Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at a187ae5

Macroscope's review found this PR approvable — The change keeps MCP sign-in and startup notices out of delegated threads while preserving main-thread notices. Its effects are limited to notice handling, without changing MCP access or permissions.

You can add or adjust custom eligibility rules. Learn more.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Claude and Codex adapters now suppress MCP sign-in and startup-failure notices for delegated app threads. Updated tests check notice behavior for main threads and subagents.

Changes: MCP notice suppression

Layer / File(s) Summary
Claude MCP sign-in notices
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts, apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts
Claude skips MCP sign-in checks for delegated app threads. Tests expect a sign-in notice for main threads and none for subagents.
Codex MCP startup-failure notices
apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts, apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.ts
Codex removes recorded startup failures but does not emit their notices for delegated app threads. Tests cover main-thread timing cases and a subagent case.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related issues

  • pingdotgg/t3code#40785 — The change suppresses Codex startup-failure notices in delegated threads, but does not address the reported ordinary-thread rows.
  • pingdotgg/t3code#37334 — The change suppresses Codex startup notices in delegated threads, but does not address the reported main-thread notices or the features.apps default.

Suggested reviewers: juliusmarminge, yash-singh1

Merge Risk: Minimal · up to a187a

Delegated Claude and Codex threads no longer show MCP connection notices. Main threads keep their notices. No merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: MCP connection notices are kept out of subagent threads. It follows conventional commit form and matches the summarized changes to both the Claude and Codex adapters, …
Description check Passed The description covers the problem (delegated Claude and Codex threads show MCP connection warnings in their first turn, and the earlier fix #42263 only covered one thread), the change (each adapter c…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: MCP connection notices are kept out of subagent threads. It follows conventional commit form and matches the summarized changes to both the Claude and Codex adapters, which skip sign-in notices for delegated threads.

Full details: Description check

Explanation

The description covers the problem (delegated Claude and Codex threads show MCP connection warnings in their first turn, and the earlier fix #42263 only covered one thread), the change (each adapter checks the receiving thread before emitting notices), and verification (live Claude and Codex delegations, regression replays failing on main and passing with the fix, 771 tests passing). It lacks an explicit Scope section that links a bug issue or explains why no issue is needed, and it does not state anything that could not be checked. Those gaps are minor, so the description is mostly complete.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 58a4e59 and a187ae5.

Files selected for processing: 4

  • apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts
  • apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts
  • apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.ts
  • apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant