Repository navigation
refactor(ui): render plugins skills and search with Solid - #168758
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 changes before merge. What this changesThis 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.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete 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 Before merge
FindingsNone. Agent review detailsHow this fits togetherControl 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
Technical reviewBest 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
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:
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 (13 earlier review cycles; latest 8 shown)
Reviewed October 11, 2026, 9:31 AM ET / 13:31 UTC (Revision 14). |
# Conflicts: # ui/src/pages/search/search-page.config.browser.test.tsx # ui/src/pages/search/search-page.ts
…-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
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. CI38141983323passes 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
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 thereportsbutton after returning to Files. It fails identically in a separately built checkout of CI main parentcb2a3ce3dda69bd6781411bb0b13ec7b9486b08f(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.
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.