Skip to content

refactor(ui): run MCP app transport after render - #174169

Merged
steipete merged 1 commit into
mainfrom
solid2/w-idiom-core-mcp-lifecycle
Oct 16, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-idiom-core-mcp-lifecycle

Conversation

@steipete

@steipete steipete commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

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

Proof Result
UI typecheck Passed
MCP panel and retirement tests 3 passed across 2 files
Scoped lint / whitespace Passed
Production Knip Passed (5m 9s)
Independent review No actionable P0–P2 findings
Broad proof ci:full requested
Startup / screenshots No startup import, markup, CSS, or visual changes; build and screenshots omitted

Touched production file metrics:

Metric Before After
LOC 292 291
Controller-pattern references 0 0
createEffect 0 1
createRenderEffect 1 0
ownedWrite 5 0
untrack 6 6
Raw listeners / selectors / class strings / flush / owner captures 0 0

The 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 1440px
  • Models settings layout and discovery > Models page keeps controls separate and publishes discovery into a passive picker at 1100px
  • Models settings layout and discovery > Models page keeps controls separate and publishes discovery into a passive picker at 768px
  • Models settings layout and discovery > Models page keeps controls separate and publishes discovery into a passive picker at 640px
  • Models settings layout and discovery > Models page keeps controls separate and publishes discovery into a passive picker at 390px
  • assertion-safety: src/media/media-facts.ts: 14 < 16

All 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 3fd487d3eba0859dd0f1d76cb5d1d59a1c042eed has ordered parents 1dbc6fb1f327fb861889c8abf8174fbf73052f24 and this PR head. Its only main-relative change is mcp-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.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T11:32:44.941747Z 4a4a413 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: Launch work begins during rendering, with presentation signals requiring ownedWrite exemptions.
  • After: Launch work begins in the normal effect apply phase, with the same target and iframe retirement behavior.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-consistent, while behavior evidence is limited to reported tests using mocked transport and iframe implementations.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored internal refactor is outside the ordinary contributor proof gate; supplied evidence reports focused tests and static checks, with no shipped-entry-point demonstration.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes
Reason: The direction is already established by the maintainer-authored PR and the Solid feature-effect contract; removing write exemptions is worthwhile without changing public behavior.

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
Reviewed head: 4a4a41306fe27eecfbb1c0f5dc313aed478d4f84

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied validation does not exercise MCP launch and replacement through the shipped Control UI with the real transport and iframe.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • MCP panel effect scheduling and presentation signals changes intended behavior with a stated reason (91fd61d: The Solid migration preserved launch identity, live metadata, lazy loading, and awaited retirement; it did not establish render-phase transport startup as a required contract.)
  • Settings request parameter helper keeps the original intent (91fd61d: The helper constructs session, agent, server, and action parameters; blame attributes the omitted provenance hunk to the same migration, and all returned values remain identical.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

PR surface

Source -1. Total -1 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 15 16 -1
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 15 16 -1

Labels

Label changes:

  • add P3: This is a narrow lifecycle cleanup with no intended user-visible behavior change or established urgent defect.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a narrow lifecycle cleanup with no intended user-visible behavior change or established urgent defect.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 16, 2026, 7:47 AM ET / 11:47 UTC.

@steipete
steipete merged commit d7d72c5 into main Oct 16, 2026
122 of 127 checks passed
@steipete
steipete deleted the solid2/w-idiom-core-mcp-lifecycle branch October 16, 2026 12:07
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

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

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant