Repository navigation
refactor(ui): move terminal, browser, and desktop panels to Solid - #168786
Conversation
Work in progress for the page migration lane. Renderer and controller cutover is prepared; canonical Solid bridge registration and its dependent runtime proof follow once the primitive bridge lands on main.
Work-in-progress checkpoint while the primitive bridge lands. Preserve synchronous controller input ownership and imperative completion, migrate the test harnesses, and prepare temporary CI-only synthetic captures after Testbox did not admit a runner. The capture hooks will be removed after evidence is retained.
Keep tab, viewport, and picker ARIA associations unique across split panes. Preserve the bridge-owned test inputs and cover embedded plain-controller viewport reservations.
|
🦞👀 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 maintainer review before merge. What this changesThis PR moves Terminal, Browser, Desktop, and shared panel tabs from Lit to Solid while preserving their controllers and host tags. Example: Open Browser and Desktop together in embedded panels, then load Terminal.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-directed migration open for normal landing; no actionable defect remains in the reviewed head, and exact-head CI passed. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl UI panel hosts receive Gateway clients and presentation inputs, retain synchronous controllers, and render controls around terminal and noVNC-owned DOM islands. flowchart TD
A[Control UI shell and routes] --> B[Registered panel bridges]
B --> C[Synchronous panel controllers]
C --> D[Solid panel renderers]
D --> E[Shared tabs and dock controls]
C --> F[Gateway and transport clients]
D --> G[Terminal and noVNC DOM islands]
Technical reviewBest possible solution: Land the unified Solid renderers with the existing controller, transport, and retained-DOM ownership contracts. Do we have a high-confidence way to reproduce the issue? This is a renderer refactor; source inspection and supplied browser evidence establish the relevant behavior without running target code. Is this the best way to solve the issue? The change follows the approved bridge migration, preserves synchronous domain owners, and replaces the panel renderers without creating competing implementations. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 85018936a338. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
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 (8 earlier review cycles)
Reviewed October 11, 2026, 9:50 AM ET / 13:50 UTC (Revision 9). |
|
@clawsweeper re-review The repaired head is |
|
🦞👀 Re-review progress:
|
The tab-strip assertion added in #168786 (89564fa) reads a root-relative path while the CI command runs in ui/. Resolve the filesystem path from import.meta.dirname so the same assertions run from either directory. Keep the existing stylesheet assertion unchanged. Linux proof: 29/29 focused tests, 5s command wall at maxWorkers=1. The affected full UI shard passes in 148s; test types and typed/boundary lint pass. Independent P2 review has no actionable findings.
Hourly 38119289515 job 114410626720 stopped the real-Gateway desktop resize proof at test-node/node-admission. The rejected RPC was node.pair.approve: INVALID_REQUEST, unknown requestId. SSH validation and cleanup succeeded. f92efac (openclaw#163862) intentionally made the Gateway approve initial local node capabilities. The fixture retained a competing manual approval and could consume a request that the Gateway had already resolved. This predates the supplied regression window: hourly 38101298609 at 3193cda has the same failure. Linux parent/child proof: 8339d09 passed 50 admissions; f92efac failed admission 3. The original failing head 9561277 reproduced the RPC rejection on admission 17. Remove the fixture's node.pair.list/approve path and retain its existing approved, paired, connected, sessionHost and device-identity checks. Update the two caller comments to name the Gateway's ownership. No production behavior, assertions, retries, deadlines, or skips change. Linux proof (historical refs for attribution and negative control): - Fixed helper: 50 admissions passed in 156.75s. Reverting only the helper reproduced the rejection on admission 4 in 18.89s. - Ten complete desktop proofs passed, including 20 node/SSH carrier runs; 65.46-83.24s per bootstrap. Original CI test-node wall was 39.49s. - Desktop proof-helper suite: 50 tests passed in 32.91s using pnpm test test/scripts/desktop-resize-proof.test.ts --maxWorkers=1. - Changed checks passed in 414.09s; changed-file oxlint, boundary oxlint, oxfmt and independent P0-P2 review passed. - Full general E2E: 239 passed, 28 failed, 12 skipped files across all four shards; 38 of 39 failed tests reproduce on the unchanged base. The Telegram menu timeout did not reproduce in its targeted baseline. - Full UI and prebuilt real-Gateway inventories were exercised. The worker-initial-setup failure reproduces on the unchanged base. A delegation approval-card timeout did not reproduce alone or in the full baseline file order. Missing WebKit in the fallback environment was corrected; its two native bundle parity cases passed afterward. The full-suite and changed-check candidate tree matches the final staged tree: 789591f5c143c86c3376de0d84f7782bb3f8ec2b. openclaw#168786: in-flight overlap, unrelated. This change avoids its rendering hunks. Broader baseline failures and the two unreproduced timeouts are retained in the lane evidence, not hidden or treated as passing proof.
…enclaw#168786) * refactor(ui): checkpoint Solid terminal browser and desktop port Work in progress for the page migration lane. Renderer and controller cutover is prepared; canonical Solid bridge registration and its dependent runtime proof follow once the primitive bridge lands on main. * Merge remote-tracking branch 'origin/main' into solid2/w-pg-5a * refactor(ui): wire panel controllers to the Solid bridge Work-in-progress checkpoint while the primitive bridge lands. Preserve synchronous controller input ownership and imperative completion, migrate the test harnesses, and prepare temporary CI-only synthetic captures after Testbox did not admit a runner. The capture hooks will be removed after evidence is retained. * fix(ui): scope Solid panel references to each mounted view Keep tab, viewport, and picker ARIA associations unique across split panes. Preserve the bridge-owned test inputs and cover embedded plain-controller viewport reservations. * Merge remote-tracking branch 'refs/remotes/wpg5a/main' into solid2/w-pg-5a * refactor(ui): share the Solid panel commit lifecycle * test(ui): prepare panel runtime and parity proof * test(ui): retain terminal runtime proof through the Solid bridge * Merge remote-tracking branch 'origin/main' into solid2/w-pg-5a * refactor(ui): integrate panel views with Solid bridge ownership * fix(ui): preserve Solid panel lifecycle and rendering contracts * fix(ui): retain legacy rendering at migration boundaries * fix(ui): preserve panel contracts across main integration * fix(ui): correct panel JSX element types * fix(ui): share tab element contracts with migrated chat * fix(ui): bind browser wheel input through native events * test(ui): await panel bridge before accessibility queries * test(ui): declare panel fixture lifecycle overrides * chore(ui): integrate repaired main validation * fix(ui): preserve shared panel contracts across main Co-authored-by: Peter Steinberger <[email protected]>
The tab-strip assertion added in openclaw#168786 (6d48380) reads a root-relative path while the CI command runs in ui/. Resolve the filesystem path from import.meta.dirname so the same assertions run from either directory. Keep the existing stylesheet assertion unchanged. Linux proof: 29/29 focused tests, 5s command wall at maxWorkers=1. The affected full UI shard passes in 148s; test types and typed/boundary lint pass. Independent P2 review has no actionable findings.




















































What Problem This Solves
Ports the terminal, browser, and desktop panels from Lit to Solid while the remaining Lit shell callers continue using their registered tags.
User Impact
The existing routes, host tags, CSS classes, dock controls, and selectors remain. Terminal sessions retain their independent DOM islands and server-session lifetime. noVNC keeps ownership of its canvas and input subtree through connection and control handoffs.
Why This Change Was Made
Synchronous TypeScript controllers remain the state owners. The canonical Solid bridge and shared committed-DOM lifecycle publish their state to Solid. Each registered panel has one implementation. The remaining Lit tab-strip callers use a thin adapter to the same Solid renderer; their event and ref receivers are preserved.
Conditional terminal empty-state content uses the same registered primitive through its custom-element boundary so nested rendering cannot flush before the parent attaches. The migration now covers actual connection boundaries: detached bridge mounting, native browser geometry after nested rendering, reactive first browser refreshes, retained noVNC surfaces, and Web Awesome tab insertion/focus. There is no new dependency or domain store.
Release-note context: internal Control UI renderer migration, preserving terminal/server-session and desktop/viewer lifetimes.
Evidence
Local tests were single-file invocations with
--maxWorkers=1; the supported direct UI runner was also used when wrapper startup stalled. Earlier panel/restore fixtures were compared with the base (29 and 19 passing tests). Final exact-head job durations: production types 235 s; UI unit shards 364 / 366 / 351 s; UI E2E 256 s; the formerly failing core test-type stripe 406 s. These are whole-job durations including setup.One Testbox lease did not admit within about 15 minutes and was stopped without running tests. No alternate provider was used. Heavy suites/typechecks/builds are delegated to PR CI. The bounded synthetic captures used isolated Vite servers, mock Gateway data and a scripted real RFB exchange; no live Gateway or private data was used. Temporary CI capture tooling has been removed from the change.
Three candidate browser captures reported a recoverable Chromium ResizeObserver loop warning. All three settled and passed; the existing observer policy is retained.
Visual baseline:
53b8118647525c9e855a6d276ed3eef5dfef9464. Candidate:0b3c295dbb29326a2cc6225c53256eeb71bcf7f5.Counts compare the integrated candidate against main parent
cb2a3ce3dda69bd6781411bb0b13ec7b9486b08f, include all affected UI files, and exclude temporary proof tooling. Production growth comes from explicit registrations, light-DOM style scoping, and rendering/lifecycle boundaries replacing Lit decorators. Consolidating the shared tab strip removes its duplicate implementation.Validation repairs and integration
Migrated JSX now uses the pinned Solid attribute/property contracts, and retained Lit test callers await the public bridge completion. The shared tab renderer intercepts explicit activation before Web Awesome selection and binds wheel input through a non-passive native listener. The shared declarations also serve the landed chat leaf components; their new-tab controls may supply a DOM node.
The last conflict resolution preserves that DOM-node contract. Review then reproduced a mixed-panel CSS cascade bug: later shared styles could override embedded positioning. The shared default now uses lower specificity, with a Chromium regression that fails before the repair and passes after it. The one remaining review claim was rejected because the ownership helper deliberately normalizes
.tsxto.ts; its three tests pass unchanged.The inherited duplicate-scan coverage failure for
worker-heap-flag.mjswas fixed upstream incd6509510b12dand integrated. That main repair passes isolated coverage and full duplicate checks (0.418 s / 15.393 s).Screenshots
Every image pairs the Lit baseline and Solid candidate in columns, with light/dark rows. All captures use synthetic fixtures and were inspected before upload. All 52 uploaded images were verified to load in the PR.
Terminal: 14 desktop/mobile comparisons.
Browser and focused document: 16 comparisons.
Desktop: 12 comparisons.
Desktop sources and remaining states: 10 comparisons.
Mixed embedded layout regression: desktop/mobile, light/dark.