Skip to content

refactor(ui): render plugins skills and search with Solid - #168758

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

steipete merged 20 commits into
mainfrom
solid2/w-pg-3b

Conversation

@steipete

@steipete steipete commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Plugins, Skills, and Search pages still render through Lit while the Control UI moves to Solid 2. Their asynchronous reads, configuration writes, and retained editors must keep their existing ownership and user-visible behavior through the renderer change.

User Impact

No intentional user-visible change. Routes, tags, classes, editor drafts, and asynchronous connection ownership remain intact. No configuration or data migration is required.

Why This Change Was Made

Port these pages and their rendering helpers to Solid, keep the existing tags/classes/routes, and register ported tags through the shared bridge. Gateway/config/skills owners remain synchronous TypeScript. The view reads their admitted state instead of adding a second store. Temporary Lit islands serve the still-unported form and modal owners. The shared sanitized-HTML helper now uses the implementation landed on main, extended with the existing article/style/click contract; the duplicate Markdown reconciliation adapter is removed. The remaining stateless Lit author/header/library helpers have named Chat or workshop callers.

The simplification pass removes a separate plugin view-model projection, duplicate skill search state, and single-use editor wrappers. Residual production growth is mostly expanded JSX and explicit retained input/credential lifetimes; the three page directories change from 11,441 to 13,244 production lines and from 13,529 to 14,093 test/support lines. This includes renderer-neutral controllers that remain unchanged.

Latest candidate: 014a610ae2ab007d01b531e0508778115119fd9e. CI 38141983323 passes all typechecks, lint, unit tests, and eight E2E shards. Its sole failing case is the unchanged Chat workspace directory race; a detached checkout of CI's exact main parent reproduces it at the same selector and line. Landing uses the authorized native inherited-failure route; no auto-merge.

Evidence

Check Result
Focused typed lint, formatting, Lit ratchet, whitespace Pass
Final bridge lifecycle and context tests 18 pass; 2.90 s wall
Catalog/readme rendering 8 pass; final replay 4.82 s wall
Skill reader shell 4 pass; final replay 5.30 s wall
Credential pointer and focus cases 2 pass; 22.54 s wall
Pending install ownership 3 pass; 152.87 s wall on saturated Mac
Plugin configuration write ordering 1 pass; 6.58 s wall
Plugin editor including Advanced focus regression 20 pass; latest replay 3.97 s wall; new regression reproduced before repair
Seeded hovercard behavior 11 pass; 2.92 s wall after matching sibling unique test-tag registration
Search endpoint and health cases 2 pass; 92.44 s wall on saturated Mac
Search behavior after shared-hook integration 17 pass; 3.87 s wall
Search config after shared-hook integration 9 pass; 3.22 s wall
Skills lifecycle after shared-hook integration 8 pass; 6.75 s wall
Plugin generation ownership after fixture repair 8 pass; 6.67 s wall
Command palette 14 pass; 36.78 s wall
Lit island lifecycle 1 pass; 21.91 s wall
Visual parity 24/24 equal; zero changed pixels, run 38109952398 at 4704513
Final-head CI Types, lint, unit tests and eight E2E shards pass; sole inherited workspace failure below
Final conflict repair Canonical main bridge adopted; 18 focused tests, formatting and independent review pass
Independent review Full port clean at P0–P2 after Advanced editor repair; focused final bridge reconciliation review clean

One Testbox attempt did not admit within approximately 15 minutes while preparing the source snapshot. The task-owned attempt was stopped, no alternate provider was used, and the earlier task lease is stopped. Full proof uses PR CI; no local Docker, whole suites, or UI build was run.

The port preserves retained editor inputs, credential focus return, navigation, connection-scoped requests and configuration write ordering. A browser regression proves Advanced settings keep focus while configuration changes. The shared bridge, HTML helper and fixture imports are reconciled with their current owners on main.

Inherited failure: chat-workspace-directory-race.e2e.test.ts → “keeps a newly opened project file selected after an older directory response” times out at line 154 waiting for the reports button after returning to Files. It fails identically in a separately built checkout of CI main parent cb2a3ce3dda69bd6781411bb0b13ec7b9486b08f (27.20 s; local action timeout 10s versus 30s in CI). The workspace state, rail, preview, Files panel, tab handling,test and helper sources are identical between that base and the tested merge. The failure occurs before the deferred response is released. Independent review found no changed port implementation in this path.

Visual parity

These inspected, synthetic-only captures use the same frozen harness and Chromium for the merge base and port at 4704513. Each row is before/after. All 24 capture pairs compare with zero changed pixels. Later repairs affect event/lifecycle handling and equivalent Markdown DOM ownership; these route-state captures remain applicable. The task-only capture workflow is removed before landing.

desktop-light: before on the left, after on the right
desktop-dark: before on the left, after on the right
mobile-light: before on the left, after on the right
mobile-dark: before on the left, after on the right

Release-note context

Internal Control UI renderer migration. Plugins, Skills, and Search preserve their routes and interaction contracts; no config or data migration is required.

QA follow-up

The plugin overview action-error placement regression is repaired separately under the red-main workflow. Reproduction, focused validation, and inspected before/after screenshots.

@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 P2 Normal backlog priority with limited blast radius. 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 changes before merge.

What this changes

This PR ports Plugins, Skills, and Search rendering from Lit to Solid while preserving existing routes, controls, and state owners.

Example: Open /settings/search with Search provider set to Automatic.

  • Before: Lit renders the provider selection and search controls.
  • After: Solid renders equivalent controls using the existing configuration owner.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, approved migration with inspected visual proof and meaningful boundary coverage; no definite patch defect was identified.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected synthetic browser before/after captures exercise the migrated routes across both themes and viewport sizes and support rendering parity; browser tests separately cover editor focus, stale credential reads, and write acknowledgment.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Existing plugin, skill, and search workflows must preserve their behavior during the Control UI renderer migration.
Reason: Maintainer-directed scope and explicit repository migration policy establish the direction without adding settings, permissions, or persisted formats.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this PR open: it implements the approved Solid migration, remains necessary on main, and has no definite introduced defect; the failed required CI check remains unresolved.

Priority: P2
Reviewed head: 014a610ae2ab007d01b531e0508778115119fd9e

Before merge

  • Complete next step - Investigate the Chat workspace reports-button timeout in the current-head CI run and establish whether it requires a patch repair or qualifies as a verified outside failure.

Findings

None.

Agent review details

How this fits together

Control UI routes consume Gateway and configuration state, render management controls, and send user actions through existing controllers.

flowchart LR
Routes --> Bridge
Bridge --> SolidViews
SolidViews --> Controllers
Controllers --> Gateway
Gateway --> Projections
Projections --> SolidViews
Loading

Technical review

Best possible solution:

Complete the Solid cutover with one renderer per DOM region and the existing configuration, request, and modal owners intact.

Do we have a high-confidence way to reproduce the issue?

This is a renderer refactor; source comparisons checked the earlier findings, and no runtime reproduction was attempted.

Is this the best way to solve the issue?

The port follows the established Solid bridge contract, preserves domain owners, and retains Lit adapters only for identified unported callers.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 961bd6b16773.

Provenance checked

  • Shared Solid bridge keeps the original intent (eca633a: Preserve registered tags, caller children, lifecycle, and application context while Solid and Lit coexist.)
  • Promise modal lifecycle keeps the original intent (292b304: Centralize imperative modal settlement and teardown; the renderer callback keeps lifecycle responsibility with that owner.)
  • Plugin credentials keeps the original intent (04ce867: Scope credential inspection and edits to the connection, field, and configuration revision while preserving acknowledged Save and Cancel.)
  • Skills discovery keeps the original intent (b280237: Unify installed and registry discovery while retaining source identity, agent scope, and separate settings controls.)
  • Search settings keeps the original intent (f7dae76: Configure providers and verify model-specific routing through existing configuration and search execution owners.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Applicable migration policy: Root, UI, and scripts AGENTS.md guidance was read and applied; UI policy directs Solid ports through the shared bridge while preserving synchronous domain ownership. The maintainer-notes directory is absent. (ui/AGENTS.md:5, 014a610ae2ab)
  • Current main still needs the page migration: Fetched main still imports the Lit Search page; the introduced patch ports the three page surfaces rather than duplicating a completed cutover. (ui/src/pages/search/route.ts:8, 961bd6b16773)
  • Canonical bridge reconciliation: The final bridge mount implementation matches fetched main; the introduced bridge delta adds the default lit-content class used by the accompanying stylesheet selectors. (ui/src/lit/solid-bridge.ts:336, 014a610ae2ab)
  • Existing configuration writer retained: Credential rendering now receives resolved props, but edits still stage through the field callback and await that edit's runtimeConfig write; cancellation uses the existing field-discard owner. (ui/src/pages/plugins/plugin-settings-controller.ts:61, 014a610ae2ab)
  • Previous findings checked: Advanced settings retain their Lit island across configuration changes and have a typing/focus regression. The slug-pattern file is unchanged from the earlier reviewed revision and contains a single literal backslash, so the prior escaping concern is unsupported. (ui/src/pages/plugins/settings-view.tsx:245, 014a610ae2ab)
  • Inspected visual proof: All four downloaded before/after sheets show matching Plugins, Skills, Search, and loading layouts across desktop/mobile and light/dark themes; the displayed states are synthetic and mostly empty or loading. (47045137bf54)

Likely related people:

  • Peter Steinberger: Raw commit 4fddb19 adds ui/src/lit/solid-bridge.ts:238 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4fddb196362e; files: ui/src/lit/solid-bridge.ts)
  • Patrick Erichsen: Raw commit 04ce867 adds ui/src/pages/plugins/plugin-settings-controller.ts:24 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 04ce86783632; files: ui/src/pages/plugins/plugin-settings-controller.ts)

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Production versus test growth Migrated page directories: production net +1,803 LOC; tests/support net +564 LOC. The verified growth matches the PR's accounting and largely comes from expanded JSX and explicit retained editor lifetimes.

Labels

Label changes:

  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P2: This is an approved renderer migration with normal integration priority and no established urgent user regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • 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 (13 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-11T06:26:03.292Z sha 0697292 :: needs changes before merge. :: [P2] Keep Advanced settings mounted across configuration updates
  • reviewed 2026-10-11T07:25:52.628Z sha 640ea34 :: needs changes before merge. :: [P2] Keep Advanced settings mounted across configuration updates
  • reviewed 2026-10-11T08:57:26.400Z sha d2fe6f2 :: needs changes before merge. :: [P2] Keep Advanced settings mounted across configuration updates
  • reviewed 2026-10-11T09:36:46.519Z sha b18b1bf :: needs changes before merge. :: [P2] Keep Advanced settings mounted across configuration updates
  • reviewed 2026-10-11T11:33:38.977Z sha a3c3b1f :: needs changes before merge. :: none
  • reviewed 2026-10-11T11:46:36.136Z sha 8d10c95 :: needs changes before merge. :: none
  • reviewed 2026-10-11T12:20:28.093Z sha 5af12fa :: needs changes before merge. :: [P2] Use JSX-safe escaping for both library slug patterns
  • reviewed 2026-10-11T13:00:11.656Z sha 2b3818c :: needs maintainer review before merge. :: none

Reviewed October 11, 2026, 9:31 AM ET / 13:31 UTC (Revision 14).

@clawsweeper clawsweeper Bot added 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
# Conflicts:
#	ui/src/pages/search/search-page.config.browser.test.tsx
#	ui/src/pages/search/search-page.ts
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels 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
…-pg-3b

# Conflicts:
#	test/vitest/vitest.gateway-database-workers.config.ts
# Conflicts:
#	ui/src/pages/gateway-source-replacement.test.ts
# Conflicts:
#	config/assertion-safety-baseline.txt
#	ui/src/lit/solid-bridge.test.tsx
#	ui/src/lit/solid-bridge.ts
#	ui/src/pages/gateway-source-replacement.test.ts
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Oct 11, 2026
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 P2 Normal backlog priority with limited blast radius. 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: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant