Repository navigation
build(ui): upgrade Solid to 2.0.0-rc.14 - #169247
Conversation
Use the Peter-approved one-time release-age exception for rc.14 and its native compiler packages. Keep the Vite plugin at next.47 while aligning its Babel compiler, and accept readonly effect tuples at the hosted-tab notifier.
|
🦞👀 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 changesUpgrades Solid packages to rc.14 and adapts existing rendering owners, teardown, types, fixtures, and generated plugin fingerprints. Example: A retained chat region introduces a counter labeled First, increments it to 1, then updates its label to Second.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: the maintainer-approved upgrade remains distinct from main’s rc.13 toolchain, and review found no actionable introduced defect. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI and bundled plugin renderers turn Gateway projections and legacy templates into browser DOM; shared adapters own nested rendering, presentation changes, and disposal. flowchart LR
A[Gateway state] --> B[Existing controllers and projections]
B --> C[Solid components]
C --> D[Retained Lit content boundary]
D --> E[Nested Solid roots]
C --> F[Browser DOM]
E --> F
Technical reviewBest possible solution: Land the approved dependency upgrade with the existing rendering owners and retained lifecycle contracts intact. Do we have a high-confidence way to reproduce the issue? This is dependency maintenance rather than a current-main bug report; upstream source supports the stated rc.14 ownership incompatibility, and the author records failing-before and passing-after boundary cases. Is this the best way to solve the issue? The patch adapts existing owners instead of adding parallel renderers, preserves parked-content behavior, and keeps dependency exceptions narrowly versioned. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d806e9258bcd. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +40, Tests +42, Docs +17, Config +13, Other +1. Total +113 across 22 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 (14 earlier review cycles; latest 8 shown)
Reviewed October 11, 2026, 9:16 PM ET / October 12, 2026, 01:16 UTC (Revision 15). |
Restore the component owner while Channels binds reactive projections and LitContent commits Solid-backed directives. Allow the avatar adapter to publish intentionally under that owner. Accept readonly effect tuples in the catalog test and model fresh Gateway snapshots in the polling fixture.
|
@clawsweeper re-review The current head |
|
🦞👀 Re-review progress:
|
Park the pointer outside the narrow drawer after resizing so a stale chip-click position cannot activate the Pages tooltip and consume the menu Escape. Preserve all menu dismissal, focus-return, and drawer visibility assertions.
|
@clawsweeper re-review Final head |
|
🦞👀 Re-review progress:
|
Defer the next transcript list response before navigating back from capture settings. Preserve the loading-state assertion and release the request at its existing settlement point.
|
@clawsweeper re-review Head |
|
🦞👀 Re-review progress:
|
Merge current main while moving the rc.14 owner restoration into the canonical retained-content boundary. Cover nested Solid/Lit mounting, updates, reconnection, and disposal; retain the explicit owner at markdown media creation.
|
@clawsweeper re-review Current head |
## What Problem This Solves Fixes `check-test-types-core-2` failures inherited by PRs after the MCP App tests switched from Lit to Solid. ## User Impact No user-visible change. This restores typechecking for the existing MCP App lifecycle and context-update regressions without weakening their assertions. ## Why This Change Was Made The fixture migration in #169387 left a raw Solid memo accessor as a component return value and awaited Lit's `updateComplete` on a plain Solid-rendered context-strip element. Render the memo through a JSX fragment in a `.test.tsx` fixture, and wait for the context strip's observable item/empty state with the existing `waitForSolid` helper. All teardown, retained-node, and context assertions remain intact. Checked existing work first: #169247 does not change these tests and its `check-test-types-core-2` job is red; #169304 changes different parts of the MCP App tests and does not repair these errors. ## Evidence Baseline: current `origin/main` at `5889e62f4902b8f3fa4b6eb2cecbbd26f5b8ceb0`, installed with `pnpm install --frozen-lockfile`. Before, `pnpm run tsgo:test:ui` exited 2: ```text ui/src/components/mcp-app-unmount.test.ts(40,5): error TS2345: Argument of type '() => SourceAccessor<Node[]>' is not assignable to parameter of type '() => Element'. ui/src/components/mcp-app-view.test.ts(801,19): error TS2339: Property 'updateComplete' does not exist on type 'Element'. ui/src/components/mcp-app-view.test.ts(804,19): error TS2339: Property 'updateComplete' does not exist on type 'Element'. ui/src/components/mcp-app-view.test.ts(815,19): error TS2339: Property 'updateComplete' does not exist on type 'Element'. [tsgo:ui-components] failed (exit 2) ``` After: - `pnpm run tsgo:test:ui`: all eight graphs passed, including `ui-components`. - `node scripts/run-vitest.mjs ui/src/components/mcp-app-unmount.test.tsx ui/src/components/mcp-app-view.test.ts --maxWorkers=1`: 31 tests passed across the regular and isolated UI projects. Test time: 71 ms for unmount and approximately 5.9 s for view (4.6 s is the existing embedded Apps page scenario). - Changed-file `oxfmt --write` and `oxlint`: passed. - `node --import ./scripts/tsx.mjs scripts/check-line-cap-ratchet.mts --base origin/main`: passed, no new violations or over-cap growth. The existing embedded Apps page scenario emits Lit/reactivity and jsdom CSS warnings; it passes without suppressions or retry changes. - Independent autoreview: scoped clean through P2; no actionable findings. Co-authored-by: Ayaan Zaidi <[email protected]>
|
Merged via squash.
|
## What Problem This Solves Fixes `check-test-types-core-2` failures inherited by PRs after the MCP App tests switched from Lit to Solid. ## User Impact No user-visible change. This restores typechecking for the existing MCP App lifecycle and context-update regressions without weakening their assertions. ## Why This Change Was Made The fixture migration in openclaw#169387 left a raw Solid memo accessor as a component return value and awaited Lit's `updateComplete` on a plain Solid-rendered context-strip element. Render the memo through a JSX fragment in a `.test.tsx` fixture, and wait for the context strip's observable item/empty state with the existing `waitForSolid` helper. All teardown, retained-node, and context assertions remain intact. Checked existing work first: openclaw#169247 does not change these tests and its `check-test-types-core-2` job is red; openclaw#169304 changes different parts of the MCP App tests and does not repair these errors. ## Evidence Baseline: current `origin/main` at `11f576b23cf70615ca4504eb12fdba93591b9c8f`, installed with `pnpm install --frozen-lockfile`. Before, `pnpm run tsgo:test:ui` exited 2: ```text ui/src/components/mcp-app-unmount.test.ts(40,5): error TS2345: Argument of type '() => SourceAccessor<Node[]>' is not assignable to parameter of type '() => Element'. ui/src/components/mcp-app-view.test.ts(801,19): error TS2339: Property 'updateComplete' does not exist on type 'Element'. ui/src/components/mcp-app-view.test.ts(804,19): error TS2339: Property 'updateComplete' does not exist on type 'Element'. ui/src/components/mcp-app-view.test.ts(815,19): error TS2339: Property 'updateComplete' does not exist on type 'Element'. [tsgo:ui-components] failed (exit 2) ``` After: - `pnpm run tsgo:test:ui`: all eight graphs passed, including `ui-components`. - `node scripts/run-vitest.mjs ui/src/components/mcp-app-unmount.test.tsx ui/src/components/mcp-app-view.test.ts --maxWorkers=1`: 31 tests passed across the regular and isolated UI projects. Test time: 71 ms for unmount and approximately 5.9 s for view (4.6 s is the existing embedded Apps page scenario). - Changed-file `oxfmt --write` and `oxlint`: passed. - `node --import ./scripts/tsx.mjs scripts/check-line-cap-ratchet.mts --base origin/main`: passed, no new violations or over-cap growth. The existing embedded Apps page scenario emits Lit/reactivity and jsdom CSS warnings; it passes without suppressions or retry changes. - Independent autoreview: scoped clean through P2; no actionable findings. Co-authored-by: Ayaan Zaidi <[email protected]>
* build(ui): upgrade Solid to 2.0.0-rc.14 Use the Peter-approved one-time release-age exception for rc.14 and its native compiler packages. Keep the Vite plugin at next.47 while aligning its Babel compiler, and accept readonly effect tuples at the hosted-tab notifier. * build(ui): regenerate Solid plugin asset manifests * fix(ui): preserve Solid ownership across effect adapters Restore the component owner while Channels binds reactive projections and LitContent commits Solid-backed directives. Allow the avatar adapter to publish intentionally under that owner. Accept readonly effect tuples in the catalog test and model fresh Gateway snapshots in the polling fixture. * test(ui): keep hover out of sidebar keyboard navigation Park the pointer outside the narrow drawer after resizing so a stale chip-click position cannot activate the Pages tooltip and consume the menu Escape. Preserve all menu dismissal, focus-return, and drawer visibility assertions. * test(ui): hold transcript reload until loading is observed Defer the next transcript list response before navigating back from capture settings. Preserve the loading-state assertion and release the request at its existing settlement point. * fix(ui): avoid publishing video state during teardown Release poster resources without writing to a retiring Solid owner. Live visibility and image-error handlers still clear the poster. The rendered-parent retention regression and media siblings pass. * fix(ui): own nested Solid plugin fallback rendering
What Problem This Solves
Moves the Solid 2 migration from rc.13 to the rc.14 toolchain validated by the original spike, preserving existing rendering and lifecycle behavior under its stricter ownership rules.
User Impact
The Control UI and Canvas, X, and Workboard use exact rc.14 pins. No intended visual or interaction change, route change, or selector change.
Why This Change Was Made
Peter approved a one-time exception to the seven-day dependency cooldown. Every exception is pinned to rc.14, including the native compiler packages, with removal after 2026-10-15T02:13:16Z. Vite stays at next.47: its build works with rc.14. A narrow override aligns its transitive Babel compiler to rc.14. The generated X/Workboard asset fingerprints were rebuilt through the owning builder.
rc.14 now rejects creating reactive primitives implicitly in an effect callback. Channels restores its component owner while binding projections. After merging current main, the canonical retained-content owner now captures the creator for Lit commits, nested Solid roots, and reconnection; Markdown media creation restores its component owner too. The avatar directive explicitly permits its intentional publication under that owner. Readonly tuple annotations follow rc.14's improved inference. The snapshot test now returns fresh JSON-shaped responses rather than mutating objects already wrapped by a store; assertions are unchanged. The Solid lessons document these upgrade contracts and the relevant changes from the official changelog.
Release-note context: approved rc.14 cooldown exception; no dependency-age relaxation for other versions. No new runtime dependency or UI abstraction.
Evidence
Landing status: merged as
f9d2ebefe12f764b2393bba76920d803e374b856, verified onorigin/main. Final exact-head CI 38189001298 passed ford69f671f29e2fb171ba34eec65570f459a0c2ac9, includingopenclaw/ci-gate. Native recovery retired the stale auto intent and landed through the completed-evidence path; auto-merge was not re-armed and no final CI exception was needed.The final integration also fixes two rc.14 regressions: board documents restore the creator owner before a synchronous prepared-session bind, and widget error fallbacks publish only the transition into failure. The latter prevents a render/error/update CPU loop. Dashboard plus board-document tests pass 13/13 (5.84 s); the collapse case passes on rc.13, hung on rc.14 before the fix, and passes afterward. These contracts are recorded in the Solid lessons. Canonical projection restoration from main is included without a parallel implementation. The plugin fallback also restores its component owner while committing opaque Lit templates: the chat lifecycle case failed on rc.14 before this fix, then all 16 cases passed. The 27 plugin/bridge cases pass as well. Main’s parked-content lifecycle and the upgrade’s owner capture are both retained; the 43 combined bridge/dashboard/document tests pass.
Local proof used one worker per test invocation. Testbox was attempted once but never admitted; lease
tbx_01m4p0czh2v9jrvckyj3njh2scis stopped/completed. No remote proof is claimed. No whole-repository suite or local container was run.81a4679dec8b7and current candidate on same MacThe first CI attempt caught the stale asset fingerprints; the next caught readonly tuple and ownership incompatibilities. Each was reproduced and fixed at its owner. The existing fixture repairs add no cases or timers. One new nested-renderer lifecycle test covers rc.14 ownership, prop updates, reconnection, and disposal without sleeps; its runtime is milliseconds within the 8.60 s focused command. A later CI failure exposed a missing one-shot deferral before the transcript library’s second loading assertion. The existing deferred-response helper now holds that request until the assertion completes. The sidebar CI remainder matched the previously documented sidebar hover/Escape fixture interference (be7cc7f). Both rc.13 and rc.14 targeted runs passed before the correction; the fixture now explicitly parks the pointer outside the drawer, without retries or relaxed assertions. This is a bounded fixture repair, not a claim that a passing replay proves the intermittent failure eliminated. Existing browser assertions exercise rendered behavior; this dependency/lifecycle change does not alter visual design.
LOC in changed files against
81a4679dec8b7: 5,649 → 5,761 excluding the generated lockfile; 25,171 → 25,284 including it. Growth is primarily the regression test, pinned cooldown entries, upgrade lessons, and owner capture; existing adapters remain the owners.CI attribution and recovery
Earlier attempts were investigated rather than rerun blindly. All 16 original chat E2E failures reproduced under rc.13 and were accepted by the coordinator. After newer main integrations, the 36 E2E failures, 20 UI unit cases, MCP cleanup error, and four MCP test-type errors were also attributed through focused rc.13 replays. Those results are historical; the final current-head run is green.
The rc.14-specific failures were fixed at their owners: captured ownership for nested Lit/Solid and plugin fallback commits; readonly input types; write-free teardown; synchronous prepared-board binding; and transition-only widget error publication. The existing plugin fallback lifecycle case failed before the fix and all 16 lifecycle cases pass afterward. Main's parked video lifecycle was preserved while avoiding signal writes from cleanup; all 45 focused video/media cases pass.
Two later conflicts came from independently landed changes to generated Workboard fingerprints and video presentation. The plugin builder regenerated the fingerprint, and fresh review/targeted checks covered the combined video lifecycle. Main also fixed the inherited failures; final CI needs no inherited-failure waiver. No lock, retained journal, or outcome ref was removed by hand.