Repository navigation
refactor(ui): migrate model settings to Solid - #168776
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: needs maintainer review before merge. What this changesThis PR migrates Models settings, Model Setup, and account usage from Lit to Solid while retaining existing routes and Gateway contracts. Review scores
ProductKind: Refactor · Worth it: Yes Merge readiness✅ Ready for maintainer review Keep this PR open: it advances the approved Solid migration, preserves existing model-management owners, and has no actionable introduced defect identified. The failed Dashboard assertions are inherited. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl UI settings routes mount model-management views that consume Gateway snapshots and dispatch changes through existing configuration, account, and wizard owners. flowchart LR
Routes[Settings routes] --> Bridge[Solid bridge]
Bridge --> Views[Solid views]
Views --> Controllers[Page controllers]
Controllers --> Owners[Configuration and wizard owners]
Owners --> Gateway[Gateway RPC]
Gateway --> Controllers
Technical reviewBest possible solution: Land the Solid page cutover with existing configuration, authentication, and wizard owners intact. Do we have a high-confidence way to reproduce the issue? This is a renderer refactor rather than a reported product bug; source inspection verifies the cutover and resolution of the earlier controller-suppression finding. Is this the best way to solve the issue? The migration follows UI policy, preserves synchronous domain owners, and retains stateless Lit helpers only where unported consumers still need them. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 841272e230d0. Provenance checked
TestingProof path: shipped entry point. 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 (14 earlier review cycles; latest 8 shown)
Reviewed October 11, 2026, 8:16 AM ET / 12:16 UTC (Revision 15). |
* refactor(ui): checkpoint Solid model settings migration * refactor(ui): migrate model provider and setup rendering to Solid * test(ui): run Gateway setup composition with the Solid compiler * fix(ui): preserve Solid model settings contracts * fix(ui): use canonical model picker element contracts * fix(ui): preserve model settings layout and typing * test(ui): await Gateway detection before consent assertions * fix(ui): type model parity scene callbacks * refactor(ui): keep model controllers within source limits
Delay cached route adoption until initial Gateway synchronization. Extend the existing modal focus handoff to temporarily disabled targets while preserving cancellation and synchronous focus for enabled targets. Reproduces both scheduled-main UI failures in the original E2E files; all 19 cases pass after repair. Chromium modal 23 tests (6.934s), WebKit focus 12 tests (7.359s), lifecycle siblings 83 tests (13.013s), types and scoped guards pass. Fresh managed review found no actionable findings. Before/after screenshots and proof: openclaw#168776 (comment)
First-parent upstream 5ed6a30..cb1b6cd (21 commits, including openclaw#168999 state query reduction and worker moves, openclaw#169075, af03aa0 ACP owner settlement, openclaw#168837 plugin metadata/reload ownership, openclaw#168776, openclaw#168951, openclaw#169039 runtime-only server builds, openclaw#169092 test batch d050, openclaw#168860 memory index publication writes into workers, openclaw#168991 session read lifetimes and reconciliation scheduling, openclaw#169091 tool/replay prompt prefixes, openclaw#168762 Solid chat leaf elements, openclaw#168941). Conflicts: - test/vitest/vitest.unit-fast-paths.mjs: upstream stopped forcing the two ACP translator files into the fast lane; kept that and our reply-turn-admission module-identity entry. - worker-access inventory: regenerated (634 files, 2429 calls). openclaw-state-worker-contract.ts auto-merged: upstream's GitHub publication-source operations next to our continuation custody operations. Refs #1475 Co-Authored-By: Claude Opus 5.5 <[email protected]>
What Problem This Solves
Moves Models settings and Model Setup from Lit to Solid 2. The three registered page/account-usage tags have one Solid implementation behind
defineSolidBridge; their Lit classes are deleted. Both pages share one plain TypeScript login controller. Gateway/configuration owners, routes, tags, CSS classes, and selectors remain unchanged.The port keeps edited fields, account rows, pickers, and action buttons stable through refresh and reconnect. It uses the shared Solid icons/settings components and retains stateless Lit helpers only for unported callers. No dependency or new store is added. The Gateway/UI consent composition stays in its isolated Gateway project, loading the shared Solid compiler only when selected.
Evidence
7af7584f7458; only inherited Dashboard assertions failThe source-mode parity capture uses synthetic data, the same frozen harness and Chromium 153 on macOS. Baseline
2cbc6abdc236, candidatea5db13466282: 40 pairs pass the standard viewport comparison; four login-step pairs are also pixel-identical at their actual dimensions, while the capture harness records an incorrect expected viewport for those popup interactions. Original captures/manifests are preserved. Capture time: 247.01 s before, 160.39 s after. Later main integration reuses the landed layout bridge correction and updates only test/compiler wiring; model markup/styles are unchanged.Testbox was tried once for heavy proof and did not reach allocation within the admission window; PR CI owns those checks. The earlier baseline lease is stopped. No local Docker or full suite was run.
Size and tradeoff
Residual growth is explicit request cleanup and JSX rendering alongside stateless Lit helpers still consumed by unported pages. The two new max-lines suppressions are removed: the controllers now contain 691 and 690 counted lines, with pure presentation and fresh-state initialization moved into their existing data/state modules. Ordinary max-lines validation passes. The simplification pass removed unused renderer wrappers and wizard variants, and rendering no longer lives in the shared login owner. The bridge layout correction is now supplied by main.
Inherited proof
The local watch-graph configuration probe timed out on both the candidate and clean main with identical test source (baseline 146.72 s). Two Markdown table focus assertions also reproduced on the baseline with identical runtime/test bytes (10 passed, 2 failed; 214.88 s); current main has since repaired that owner. The previous CI export-name collision reproduces against its exact protected-base source set and is outside this change. The last completed full CI passed; the current controller-size follow-up is being validated on its new head. No model-page markup or styles changed after the verified capture.
Inspected synthetic screenshots
desktop-light
desktop-dark
mobile-light
mobile-dark
Current-head inherited failure:
ui/src/pages/dashboards/route.test.tsexpectsrowMode: "compact"in three cases, but the Dashboard owner returns"dashboard". The exact CI baselineff6f58a8c32breproduces all three failures in 2.77 s; route, test, and query-owner bytes match the tested merge. All remaining selected jobs pass. Native landing uses the documented inherited-failure exception.Follow-up QA: cached-provider and login-focus regression repair, before/after screenshots, and Chromium/WebKit proof.