Repository navigation
refactor(ui): run MCP app transport after render - #174169
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR moves MCP App transport startup from a render effect to a normal effect and removes five signal-write exemptions. Example: Open the first MCP App for session agent:first:session.
Review scores
ProductKind: Refactor · Worth it: Yes Merge readiness✅ Ready for maintainer review Keep this PR open: the maintainer-authored refactor follows the Solid lifecycle contract, preserves existing safeguards, and introduces no actionable finding; inherited CI failures still prevent ordinary landing. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI chat sidebar supplies an MCP launch target to the panel, which requests launch or settings data through the Gateway client and renders the resulting app through the existing retirement owner. flowchart LR
A[Chat sidebar] --> B[MCP App panel]
B --> C[Launch identity memo]
C --> D[Normal effect]
D --> E[Gateway client]
E --> F[Presentation signals]
F --> G[Awaited iframe retirement]
Technical reviewBest possible solution: Retain this focused refactor and land it through the repository’s handling for verified inherited CI failures. Do we have a high-confidence way to reproduce the issue? The render-phase transport startup is directly visible in current-main source; this refactor does not claim a user-facing bug reproduction. Is this the best way to solve the issue? Using the normal split effect is appropriate for external transport work and allows ordinary presentation signals without adding another owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2bc8fef76158. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -1. Total -1 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 16, 2026, 7:47 AM ET / 11:47 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
What Problem This Solves
The MCP App panel still starts external work during rendering and requires five signal write exemptions.
User Impact
No user-visible change. Launch targets, lazy loading, retry/settings actions, and awaited iframe retirement retain their existing behavior.
Why This Change Was Made
Start transport work in the effect apply phase so ordinary signals can own presentation state. Keep the launch-identity memo, live admission checks, and stale-result guards intact. The remaining untracked reads deliberately sample live operation targets or retain the accepted iframe identity.
Evidence
ci:fullrequestedTouched production file metrics:
createEffectcreateRenderEffectownedWriteuntrackThe added effect synchronizes the external MCP transport; it does not copy derived state.
CI attribution
Run 38894201105 completed with two inherited failures:
Models settings layout and discovery > Models page keeps controls separate and publishes discovery into a passive picker at 1440pxModels settings layout and discovery > Models page keeps controls separate and publishes discovery into a passive picker at 1100pxModels settings layout and discovery > Models page keeps controls separate and publishes discovery into a passive picker at 768pxModels settings layout and discovery > Models page keeps controls separate and publishes discovery into a passive picker at 640pxModels settings layout and discovery > Models page keeps controls separate and publishes discovery into a passive picker at 390pxassertion-safety: src/media/media-facts.ts: 14 < 16All six signatures match scheduled main run 38894297213, verified from the actual job logs. Models expects six rows and omits the Utility Fallback Model row added by #173906. The assertion baseline needs pruning from 16 to 14.
Actual tested merge
3fd487d3eba0859dd0f1d76cb5d1d59a1c042eedhas ordered parents1dbc6fb1f327fb861889c8abf8174fbf73052f24and this PR head. Its only main-relative change ismcp-app-panel.tsx; the Models renderer/test/catalog/row primitive and assertion source/baseline/checker have identical Git objects across the merge. All other executed jobs, including both real-Gateway shards, passed.Landing uses the documented native admin route for these inherited failures; failed CI is not reported as green.