Repository navigation
refactor(ui): render retained chat panes with Solid - #169835
Conversation
Preserve fixed pane slots, parked presentation, route readiness, and MCP retirement while moving page and pane rendering to Solid. Keep synchronous domain controllers and the existing lazy header, sidebar, and composer boundaries. Remove retired transcript adapters and render frames and tool cards natively. Independent review: restored captureNavigationFace forwarding through the pane bridge and added a real-host navigation-face regression. Focused lifecycle, Chromium/WebKit cadence, page retention, and WeakRef proof passed; aggregate browser proof follows integration with current main.
Combine the current main retention and profile-directory changes with the pane port. Keep nested Solid roots parked under the shared interop owner and retain the existing avatar subscriptions. Resolve final review finding by retaining horizontal split dividers across resize publications, preserving drag ownership and keyboard focus. The new regression failed before the fix and the page suite now passes.
Adopt current main and its Solid runtime and media retirement fixes. Preserve captured component owners for plugin defaults while retiring legacy ranges through their existing registry. Keep teardown outside disposed reactive owners. Migrate the remaining pane/page fixtures to actual Solid lifecycles and both application-context protocols. All 23 focused files pass (245 tests), including prior failures and the three WeakRef suites; incremental independent review found no actionable P0-P2 findings.
|
🦞👀 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: needs changes before merge. What this changesThis PR replaces retained chat-page, pane, and transcript rendering with Solid while preserving TypeScript state and lifecycle owners. Example: Open a retained conversation containing “Review the release checklist.”
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 5 items remain Keep open: this maintainer-directed migration remains necessary, but a confirmed test cutover failure and two previously identified UI regressions need correction. Priority: P2 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherThe Control UI combines route data and Gateway session state into retained panes containing transcripts, composers, and plugin surfaces. flowchart LR
A[Chat route] --> B[Page state owner]
B --> C[Retained pane slots]
C --> D[Solid pane renderer]
E[Gateway session owners] --> D
D --> F[Transcript and composer]
D --> G[Plugin surfaces]
Technical reviewBest possible solution: Complete the native cutover with reactive translations, attachment-time chrome calculation, and tests observing native rendering boundaries. Do we have a high-confidence way to reproduce the issue? Current-head CI confirms the obsolete boot probe fails, and source establishes the retained translation and detached-host chrome paths; no target code was executed during this review. Is this the best way to solve the issue? Keeping synchronous domain owners while replacing rendering follows the approved migration; the remaining repairs belong in the existing translation, attachment, and test boundaries. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0e0e87d465c9. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfacePR surface statistics unavailable: the file list is incomplete. 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 HistoryReview history (25 earlier review cycles; latest 8 shown)
Reviewed October 12, 2026, 11:25 PM ET / October 13, 2026, 03:25 UTC (Revision 26). |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Problem and solution
The retained chat page still used Lit page/pane implementations and transitional transcript, markdown, message and tool-card adapters. This cutover renders the landed Solid composer and chat components directly, deletes superseded implementations, and moves the two remaining test adapters out of the production surface.
Plain TypeScript owners retain session, request, presentation, route readiness, eviction and disposal authority. Host tags, CSS classes, routes, selectors, fixed slots, three retained panes and one startup RPC remain intact. Connected frame ranges preserve widget iframe ancestry through reordering and disposal. Chat and optional surfaces remain lazy. No dependency or version change is added.
The port preserves queued-panel recipients, Home/workbench custody, prefetch listeners, scroll ownership and sidebar context replacement. Provider notices retain their DOM node across unrelated pane publications. The MCP harness recognizes the current Gateway listener marker while retaining PID liveness and
/readyzchecks and durable client-error diagnostics. Current-main mobile details, hidden-conversation error notices and companion-focus ownership are carried into the Solid consumers.The sidebar catalog suite runs in the existing isolated UI project: its shared Bun worker hit the 20-minute deadline without a failed assertion, while all 81 cases pass standalone in 6.8 seconds and in the isolated project in 9.1 seconds. Assertions, timeouts and runtime coverage remain intact.
Proof
Final head:
d76a87bf997a7a03e930ef8398b41f4cff000941. Full run: 38496136885.ci:fullruns every UI unit, browser, extension and real-Gateway shard.pnpm tsgo:uialso passedapps/linux/scripts/test-stage-package.mjs; no new ignoresThe only failed CI job is
checks-node-compact-small-16. Both cases are intest/scripts/plugin-sdk-surface-report.test.ts: “joins the registered SDK command’s compiler before reporting success” and “does not let a lowered export budget authorize a shipped name removal.” The exact main baselinef183f386reproduces the latter test failure and the former’s executed command,pnpm plugin-sdk:surface:check: public exports 3759 > 3758, callable exports 2194 > 2193. The Linux-only process-lifecycle test is skipped locally; its checker command was reproduced separately. The completesrc,packages,extensions, checker and test inputs are identical in baseline and CI merge7119fe3b. CI labels the job “unknown” because scheduled main uses different compact-job packing; direct baseline proof establishes inheritance.Landing uses the documented native inherited-failure route after confirmed cancellation of the original auto request. The failed job remains recorded as failed. No local Docker, OrbStack, whole-repository suite or E2E battery was run. All task Testbox leases are stopped and settled.
Performance and size
Paired builds on the same Mac measured main
9f79at 348,753 B startup JavaScript gzip / 8 requests and Solidb6e5at 348,713 B / 8 requests; both had 49,590 B startup CSS gzip / one request. Both builds and strict/differential checks passed.Final CI measures 348,776 B startup JavaScript gzip / 8 requests and 49,703 B startup CSS gzip / one request. Lazy boundaries remain intact and the restored startup budget passes.
UI production LOC: 24,483 → 25,629 (+1,146; 4.7%), 87 paths, against integrated main
f183f386. The no-renames union includes deleted Lit duals and excludes tests/support. Growth comes from explicit JSX/bridge lifetimes, the owner/render-host split and connected custody of widget frames. The MCP diagnostic adds 22 net test/harness lines outside that count.Before / after
Synthetic normal chat, 1440×960, light and dark. Main
0122is left; Solidb245is right. Both raw pairs are byte-identical: zero changed pixels across 2,764,800 compared pixels. All originals and complete sheets were inspected. Later changes preserve these rendering contracts.