Repository navigation
refactor(ui): render the chat sidebar region with Solid - #169394
Conversation
Preserve retained panel, editor and iframe lifetimes and the lazy region boundary. Remaining Lit pane definitions and HTML preview templates use narrow content adapters. Keep dock resize geometry reactive when the layout changes.
|
🦞👀 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 moves chat sidebar, detail-content, file-preview, and editor-menu rendering from Lit to Solid. Example: Open preview.html in the chat Files panel.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this approved Solid migration remains useful, but the previously reported attachment-download feedback regression still blocks merge. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI sidebar consumes pane-owned layout and controller-owned content, renders retained panels, and routes user actions back to those owners. flowchart LR
Pane[Chat pane] --> Bridge[Solid bridge]
Bridge --> Region[Sidebar region]
Region --> Panels[Retained panels]
Controllers[File and attachment controllers] --> Projection[Detail panel projection]
Projection --> Content[Solid sidebar content]
Content --> Controllers
Technical reviewBest possible solution: Keep the existing download controller and publish fresh pending/error values to the Solid view on each invalidation. Do we have a high-confidence way to reproduce the issue? The detail-panel producer, mutable download controller, Solid consumer, and pinned Show implementation establish the delayed/rejected download failure path without executing target code. Is this the best way to solve the issue? The renderer cutover follows the existing ownership and bridge architecture; projecting the controller's mutable fields fixes the regression without adding another state owner. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cdc67ef09e1b. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +240, Tests +22, Other -3. Total +259 across 33 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label 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 (11 earlier review cycles; latest 8 shown)
Reviewed October 12, 2026, 1:01 AM ET / 05:01 UTC (Revision 12). |
|
Merged via squash.
|
) * refactor(ui): render the chat sidebar region with Solid Preserve retained panel, editor and iframe lifetimes and the lazy region boundary. Remaining Lit pane definitions and HTML preview templates use narrow content adapters. Keep dock resize geometry reactive when the layout changes. * chore(ui): refresh the sidebar menu copy inventory * fix(ui): align sidebar migration ownership checks * test(ui): explain the sidebar lazy import failure mock * chore(ui): prune the explained sidebar mock allowance * test(ui): preserve reactive MCP test harness contracts * test(ui): bind the MCP gateway request fixture * fix(ui): keep the MCP catalog JSX contract with its component
What Problem This Solves
Ports the chat sidebar region, detail content, file view, and editor menu from Lit rendering to Solid 2.
User Impact
No intended visual or behavioral change. Existing tags, classes, routes, keyboard controls, file drafts, and retained panel lifetimes remain intact. No dependency or configuration change.
Why This Change Was Made
The Solid region preserves the existing sibling outlet and the bridge used by the Lit chat pane. Keyed panel roots survive hiding and reordering; editor mounts and preview iframes retain their lifecycle boundaries. The header consumes the owned Solid tab strip, icons, and shortcut primitives, and Markdown uses the landed Solid renderer. Narrow legacy-content adapters remain for pane-supplied definitions and the HTML-preview controller. The region registration remains behind its existing lazy loader. Geometry reads and publication use the shared layout-frame scheduler from main.
The directly coupled checks now recognize the Solid divider owner and remove obsolete assertion/mock allowances.
Evidence
Times above are command wall times on the busy shared Mac; test execution itself remains short. Final same-machine startup comparison on merge base
dc1c91230908fand the candidate: 410,610 → 410,620 B gzip (+10 B), with 2 startup CSS requests on both sides. Both strict checks report the identical inherited 36 chat boot requests against a 35-request limit; startup bytes stay below the authorized 450,000 B transition budget. Earlier Testbox proof passed; the last lease did not admit within ten minutes, so the final bounded checks ran locally under the migration fallback.Sidebar production LOC, including shared types: 1,885 → 2,084 (+199). The increase covers explicit JSX, typed props, and the sibling-render lifecycle; the header is split to stay within the file-size limit.
Full CI passed for the exact published head: https://github.com/openclaw/openclaw/actions/runs/38204039735. The current head passed all required checks after integrating the shared layout scheduler and resolving concurrent test/type declarations.
Inspected synthetic before/after screenshots follow.