Repository navigation
refactor(ui): let Solid load embedded board apps - #181369
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 changes before merge. What this changesThis PR replaces cell-owned MCP renderer loading with a Solid lazy component and local loading, error, and recovery boundaries. Example: The embedded Release checklist app’s renderer chunk fails to load.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open: the maintainer-directed refactor is useful, but its new renderer mock introduces a concrete CI blocker. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherBoard cells receive widget and lease snapshots, render the existing native MCP host, and retain it until its teardown acknowledgement completes. flowchart LR
A[Board widget and lease snapshot] --> B[Board cell]
B --> C[Board MCP content]
C --> D[Solid lazy loading boundary]
D --> E[Native MCP app host]
E --> F[Existing app lifecycle owner]
D --> G[Local recovery action]
Technical reviewBest possible solution: Keep the focused lazy-component cutover and add the supported isolation explanation above its deferred renderer mock. Do we have a high-confidence way to reproduce the issue? The mock-export failure follows directly from the new factory and scanner rules, and the exact-head CI annotation reports that check failing; no target code was executed. Is this the best way to solve the issue? The existing Solid bridge and recovery components provide the smallest coherent cutover, with no competing renderer or lifecycle owner; the fixture needs only its supported isolation annotation. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6e4f76bc9f92. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +32, Tests +99. Total +131 across 4 files. Added test files: 0. View PR surface stats
Review metrics
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 23, 2026, 1:38 AM ET / 05:38 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* refactor(ui): let Solid load embedded board apps * test(ui): type the isolated MCP renderer event contract * test(ui): assert gallery reuse above the native HTTP cache
What Problem This Solves
Embedded MCP board apps still load through a cell-owned custom-element import callback instead of a Solid component boundary.
User Impact
Embedded apps keep their existing appearance, native host identity, live lease updates, and acknowledged teardown. A failed renderer has a local Reload or Retry action without replacing the surrounding board.
Why This Change Was Made
Use one named
lazy()component with localLoadingandErroredboundaries. Preload still starts when the content owner settles, before a lease is ready and even while inactive. The cell no longer owns module registration. The existing generation/acknowledgement owner still waits for native teardown before retiring the view. Manual Retry checks the current component lifetime and activity; the document-level preload listener continues to own automatic stale-chunk recovery, as it did for the previous MCP import path.Evidence
The first capture setup needed the repository's existing Vitest alias resolver to serve the sandbox fixture package. The corrected capture uses that resolver with the real fixture server. Broad proof runs in PR CI with
ci:full; no local full E2E suite, Docker, live Gateway, or remote lease was used.The initial full CI run exposed two fixture issues: the forwarded native event was not part of the inferred bridge props type, and the deliberately isolated mock needed its rationale recorded. Both are repaired without changing production code. That run also hit a lightbox request-cardinality assertion; current main's landed correction (
b9689588648, #181190) is included through the conflict-only main integration, and this PR leaves that test verbatim. Runtime failures are compared by exact test name with completed scheduled main and the final full PR run.Final integrated CI
Full CI 39914573933 tested
fdf2fe22868652c34ce03c1eae073230868a83fd. All UI unit shards, production/test types, lint, architecture guards, security-fast and strict Control UI performance passed. Three browser jobs failed with ten cases that match latest completed scheduled main 39913763515 by exact name and assertion, with the previous completed main run 39906351041 providing the same result. The actual CI checkoutb987bf402a9bc99985fe06ed36b65758a74f5200, its ordered parents and tree were verified; the three failing test files are unchanged from its baseline. The native inherited-failure route retains CI as failed.Exact inherited test names
checks-ui-e2e-real-gateway (1/2)
ui/src/e2e/provider-browser-login.real-gateway.e2e.test.ts > Provider browser login through real HTTPS Gateway > rejects cancelled and stale callbacks, then saves a fresh sign-in and serves an existing sessionchecks-ui-e2e (7/9)
ui/src/e2e/sidebar-session-stability.e2e.test.ts > Control UI session management mocked Gateway E2E > keeps dark child rows stable through loading and refresh at 1440 px with a fine pointer and 100% textui/src/e2e/sidebar-session-stability.e2e.test.ts > Control UI session management mocked Gateway E2E > keeps light child rows stable through loading and refresh at 1440 px with a fine pointer and 100% textui/src/e2e/sidebar-session-stability.e2e.test.ts > Control UI session management mocked Gateway E2E > keeps dark child rows stable through loading and refresh at 390 px with a fine pointer and 100% textui/src/e2e/sidebar-session-stability.e2e.test.ts > Control UI session management mocked Gateway E2E > keeps light child rows stable through loading and refresh at 390 px with a fine pointer and 100% textui/src/e2e/sidebar-session-stability.e2e.test.ts > Control UI session management mocked Gateway E2E > keeps dark child rows stable through loading and refresh at 390 px with a coarse pointer and 100% textui/src/e2e/sidebar-session-stability.e2e.test.ts > Control UI session management mocked Gateway E2E > keeps light child rows stable through loading and refresh at 390 px with a coarse pointer and 100% textui/src/e2e/sidebar-session-stability.e2e.test.ts > Control UI session management mocked Gateway E2E > keeps dark child rows stable through loading and refresh at 1440 px with a fine pointer and 140% textchecks-ui-e2e (1/9)
ui/src/e2e/mobile-sidebar-session-menu.e2e.test.ts > Control UI session management mocked Gateway E2E > keeps mobile sidebar titles and menus usable with a coarse pointerui/src/e2e/mobile-sidebar-session-menu.e2e.test.ts > Control UI session management mocked Gateway E2E > keeps mobile sidebar titles and menus usable with a fine pointerRecorded same-machine asset comparison
Measured base:
753005052a9483deaa0bfc62342f1c43d5636912. Both builds use fixed identical metadata. These are the recorded pre-integration measurements. The MCP renderer and fixture remain byte-identical after integrating main; the shared cell additionally includes the landed core lazy boundary from #181314 (021bdf1d30767f3122c332703b9bff72f4012bca). The combined cell passed UI typechecking, all 23 MCP lifecycle cases and all 7 core/plugin widget cases. Final-head CI supplies integrated asset and broad runtime proof. Gzip bytes:Responsibility and size
The 32-line production increase gives the renderer a local loading/error/retry boundary. Teardown generation and acknowledgement logic is unchanged. The syntactic manual-import census misses the removed stored callback, so its global count is unchanged.
Visual proof
Inspected synthetic-only before/after ready captures and the failed-chunk/recovered states are attached below.