Repository navigation
refactor(ui): port sibling session pages to Solid - #169300
Conversation
Preserve Custodian, Apps, question, approval, and Skill Workshop behavior through lazy Solid bridges. Keep shared wizard and route templates as stateless Lit adapters until their owners migrate. Consolidate already-eager foundation chunks to reduce startup transfer without expanding the initial module set.
|
🦞👀 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 ports five Control UI pages from Lit to Solid while preserving their routes and existing state owners. Example: Open /apps on a phone using the dark theme.
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 Solid migration remains necessary, but the previously reported P3 timestamp-localization defect is unresolved. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherThe Control UI receives Gateway snapshots and events through existing controllers, projects their state into page components, and sends user actions through the same Gateway operations. flowchart LR
A[Browser routes] --> B[Solid bridges]
B --> C[Page components]
D[Existing state owners] --> E[Reactive projections]
E --> C
C --> D
D --> F[Gateway operations]
Technical reviewBest possible solution: Complete the Solid cutover using the existing reactive formatting owner for locale-sensitive timestamps. Do we have a high-confidence way to reproduce the issue? Source establishes the timestamp defect: retained JSX timestamp expressions observe row data but no locale signal, whereas the former Lit base refreshed the whole view on locale changes; no target code was executed during this review. Is this the best way to solve the issue? The migration follows the existing Solid bridge and projection architecture; changing three formatter imports is the smallest repair and avoids another formatting owner. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 80d82cacade5. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +486, Tests +27, Other -1. Total +512 across 55 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, 12:22 AM ET / 04:22 UTC (Revision 12). |
# Conflicts: # ui/config/control-ui-chunking.ts # ui/src/app/control-ui-chunking.test.ts
Preserve lazy targets and CSS hints while dropping redundant JS preloads. Remove the retired Custodian Lit assertion allowance. Verified paired build startup does not grow, 39 build configuration tests and 44 focused E2E cases pass, and fresh P2 review is clean.
# Conflicts: # ui/src/pages/chat/chat-pane.ts # ui/src/pages/custodian/custodian-surface.ts
# Conflicts: # ui/src/components/mcp-app-view.test.ts
|
Current integration proof: Chinese onboarding renders its translated welcome, typed options, and channel prompt through the native Solid message view. The shared mock Gateway supplies a valid channel snapshot. All eight previously failing setup/locale/reconnect cases now pass without weakening their assertions. Synthetic fixture data only. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
The Control UI build fails on main with MISSING_EXPORT: custodian-surface.tsx (ported to Solid in #169300) imports OptionCard, but 3e8757d had removed that export while it had no consumer. The two changes landed independently, so every bundled UI e2e lane fails in global setup. Export the bridge component again now that it has a consumer. Proof: pnpm tsgo:ui and pnpm ui:build pass; custodian-event-nudge e2e passes against the rebuilt bundle.
* refactor(ui): port sibling session pages to Solid Preserve Custodian, Apps, question, approval, and Skill Workshop behavior through lazy Solid bridges. Keep shared wizard and route templates as stateless Lit adapters until their owners migrate. Consolidate already-eager foundation chunks to reduce startup transfer without expanding the initial module set. * fix(ui): omit preloads for already loaded transitive modules Preserve lazy targets and CSS hints while dropping redundant JS preloads. Remove the retired Custodian Lit assertion allowance. Verified paired build startup does not grow, 39 build configuration tests and 44 focused E2E cases pass, and fresh P2 review is clean. * test(ui): await the custodian welcome request * fix(ui): retire custodian alerts when session authority changes * fix(ui): consume the landed markdown presentation owner * fix(ui): render custodian messages with the native Solid view Consume the landed message group directly and provide a typed empty channel status in the shared mock Gateway. Preserve MCP context-strip assertions through Solid settlement. All eight previously failing Custodian E2E cases, 27 MCP cases, UI types and scoped lint pass; P2 review is clean. * test(ui): isolate onboarding event nudges from channel setup
The Control UI build fails on main with MISSING_EXPORT: custodian-surface.tsx (ported to Solid in openclaw#169300) imports OptionCard, but 1230fac had removed that export while it had no consumer. The two changes landed independently, so every bundled UI e2e lane fails in global setup. Export the bridge component again now that it has a consumer. Proof: pnpm tsgo:ui and pnpm ui:build pass; custodian-event-nudge e2e passes against the rebuilt bundle.
beabbc0 (openclaw#169300) passes PanelRefreshStatus its shared className prop, matching the existing logs view entry.


Problem and change
Ports Custodian, Apps, question, approval, and Skill Workshop from Lit to Solid 2, keeping their registered tags, routes, CSS classes, selectors, and lazy entry points. Each ported tag has one Solid bridge implementation; the old Lit classes are removed. Remaining shared wizard controls and the Workshop agent picker stay behind their existing Lit boundary.
Request admission, generation checks, cancellation, and domain state remain with the existing synchronous owners. Solid consumes their projections. Custodian alert visibility also follows session-authority changes, so stale diagnostics retire when the administrator, profile, or Gateway changes. Custodian uses the current shared MessageGroup, OptionCard, and Markdown owners.
The build omits redundant transitive static JavaScript from dynamic preload hints while preserving lazy targets, other dependencies, CSS hints, and execution order. This keeps the initial module set unchanged and prevents startup growth. No dependency, backend contract, or new domain owner is introduced.
Touched page production source: 4,147 → 4,625 lines (+478). The increase is explicit Solid lifecycle/projection code and JSX replacing Lit decorators and templates.
Validation
The strict performance checker reports the same inherited chat-boot request excess on both sides: 36 requests versus a limit of 35. Startup itself does not grow. The paired comparison uses main
baa363f7e9bf4aca1f810aaef35e2442cf76fcb5and the same toolchain/build identity.Page E2E coverage includes approval-page, question-flow, custodian-channel-onboarding, custodian-event-nudge, and plugins-help. Apps also uses the MCP conversation boundary tests. Skill Workshop has no dedicated E2E file; page behavior tests and routed screenshots cover its port. The shared mock Gateway now returns the canonical typed empty channels status; the event-nudge fixture explicitly supplies an active configured channel to isolate its zero-event-nudge expectation.
Testbox was attempted once. Its lease completed before E2E reuse, so bounded local proof used one worker; no full repository suite or local Docker was run. Lease
tbx_01m4p03v9z8ez1bav3m7bw57svis completed with no active runner.Screenshots
All captures use inspected synthetic mock-Gateway data. The full-resolution before/after pairs are pixel-identical.
The additional Chinese onboarding capture and regression proof are in the linked review comment: #169300 (comment)
Inherited CI disposition
Current-head run 38195673218 completed with exactly three failed jobs and no cancellations. All UI unit-test shards, UI types/lint, and security-fast passed. The remaining failures are independently inherited:
/chatcomposer also fail in scheduled main run 38197887998, which does not contain this PR. Local exact-baseline and tested-merge replays pass all seven pasted-text cases plus the MCP case; those passes do not replace the independent main CI evidence.scripts/pr-lib/wrapper-components.txt; this PR changes neither the inventory nor its assertion.Landing uses the explicitly authorized native inherited-failure/admin route with retained, hashed checkout/failure evidence. It does not claim the CI gate passed or waive review/security requirements.