Skip to content

refactor(ui): migrate model settings to Solid - #168776

Merged
steipete merged 15 commits into
mainfrom
solid2/w-pg-3c1
Oct 11, 2026
Merged

steipete merged 15 commits into
mainfrom
solid2/w-pg-3c1

Conversation

@steipete

@steipete steipete commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

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

Check Result
Provider views / page / sign-in 38 / 31 / 14 passed locally
Profile interactions / account usage 14 / 3 passed locally
Setup RPC / picker integration 5 / 3 passed locally
Refresh / reconnect recovery 3 / 12 passed locally
Gateway handler + Solid consent UI 8 passed after awaiting the real RPC result (1,070.40 s including cold compiler preparation)
Bridge context and lifecycle 11 passed after integrating current main
Focused lint / assertion safety / diff Passed
Independent Codex autoreview No actionable P0/P1 findings; all corrections reviewed
Broader UI tests, typecheck, built E2E Migration checks passed on 7af7584f7458; only inherited Dashboard assertions fail
Visuals 44 before/after pairs inspected; zero changed pixels

The source-mode parity capture uses synthetic data, the same frozen harness and Chromium 153 on macOS. Baseline 2cbc6abdc236, candidate a5db13466282: 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

LOC Before After
Page production 9,838 11,501
Shared Solid renderer adapters 0 499
Page tests/support 16,003 16,473

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

Before After
desktop-light before desktop-light after

desktop-dark

Before After
desktop-dark before desktop-dark after

mobile-light

Before After
mobile-light before mobile-light after

mobile-dark

Before After
mobile-dark before mobile-dark after

Current-head inherited failure: ui/src/pages/dashboards/route.test.ts expects rowMode: "compact" in three cases, but the Dashboard owner returns "dashboard". The exact CI baseline ff6f58a8c32b reproduces 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.

@clawsweeper

clawsweeper Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts size: XL labels Oct 11, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 11, 2026
@clawsweeper

clawsweeper Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR migrates Models settings, Model Setup, and account usage from Lit to Solid while retaining existing routes and Gateway contracts.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong visual parity and preserved owners support this migration; temporary renderer overlap adds maintenance cost.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected synthetic Chromium screenshots exercise the actual Models and Model Setup routes and show matching defaults, account usage, login stages, and discovery states before and after the Solid port; they establish rendering parity, not live provider authentication.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes
User problem: No intended user-facing behavior change; this replaces the rendering implementation behind existing model-management workflows.
Reason: The repository explicitly directs Solid migration, and this PR replaces the registered Lit implementations without creating competing configuration or authentication owners.

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
Reviewed head: 7af7584f7458b44217b617f275976db7aee55b51

Before merge

None.

Findings

None.

Agent review details

How this fits together

Control 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
Loading

Technical review

Best 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

  • Guided model setup keeps the original intent (4b904e6: Provide guided model authentication and activation in the Control UI without requiring terminal onboarding.)
  • Async read lifecycle changes intended behavior with a stated reason (refactor(ui): adopt @lit/task for async data lifecycle #115131: Use Lit Task cancellation and stale-completion handling for reads; this PR explains replacing renderer-specific lifecycle machinery during the Solid migration.)
  • Shared connection and activation flow keeps the original intent (11a42b7: Consolidate Models and setup while preserving global defaults, credential scope, unfinished input, and explicit model activation.)
  • Provider account controls keeps the original intent (a81368f: Expose account health, priority ordering, logout, and stable interactions through existing Gateway owners.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit bdf8960 adds ui/src/pages/model-providers/profile-actions-controller.ts:7 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: bdf896095190; files: ui/src/pages/model-providers/profile-actions-controller.ts)
  • Jesse Merhi: Raw commit a81368f adds ui/src/pages/model-providers/profile-actions-controller.ts:3 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a81368f6b1c2; files: ui/src/pages/model-providers/profile-actions-controller.ts)
  • Ayaan Zaidi: Raw commit 09e2b15 adds ui/src/pages/model-providers/profile-actions-controller.ts:6 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 09e2b15466e1; files: ui/src/pages/model-providers/profile-actions-controller.ts)

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Production versus test growth UI production +6,323/−4,157 (net +2,166); UI tests/support +1,216/−547 (net +669). Growth includes JSX rendering, explicit request cleanup, and interaction coverage; temporary stateless renderer overlap is justified by remaining Lit consumers.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is an internal renderer migration with no intended change to user behavior or persisted settings.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only; repair and merge need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (14 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-11T06:10:54.087Z sha a5db134 :: needs changes before merge. :: [P2] Split the oversized controllers and remove the new suppressions
  • reviewed 2026-10-11T07:10:01.781Z sha a5db134 :: needs changes before merge. :: [P2] Split the oversized controllers and remove the new suppressions
  • reviewed 2026-10-11T07:39:33.520Z sha d5f4fb1 :: needs changes before merge. :: [P2] Split the oversized controllers and remove the new suppressions
  • reviewed 2026-10-11T08:03:50.529Z sha d5f4fb1 :: needs changes before merge. :: [P2] Split the oversized controllers and remove the new suppressions
  • reviewed 2026-10-11T08:20:30.309Z sha d5f4fb1 :: needs changes before merge. :: [P2] Split the controllers and remove the new max-lines suppressions
  • reviewed 2026-10-11T08:52:33.233Z sha 04e2a26 :: needs changes before merge. :: [P2] Split the controllers and remove the new max-lines suppressions
  • reviewed 2026-10-11T09:36:03.019Z sha 04e2a26 :: needs changes before merge. :: [P2] Split the controllers and remove the new max-lines suppressions
  • reviewed 2026-10-11T11:43:37.742Z sha 7af7584 :: needs maintainer review before merge. :: none

Reviewed October 11, 2026, 8:16 AM ET / 12:16 UTC (Revision 15).

@openclaw-barnacle openclaw-barnacle Bot added the gateway Gateway runtime label Oct 11, 2026
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Oct 11, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Oct 11, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Oct 11, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
* 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
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
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)
scribe-dandelion-cult added a commit to karmaterminal/openclaw that referenced this pull request Oct 19, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant