Skip to content

refactor(ui): complete portable Solid rendering cutover - #170758

Merged
steipete merged 6 commits into
mainfrom
solid2/w-portable-2
Oct 13, 2026
Merged

steipete merged 6 commits into
mainfrom
solid2/w-portable-2

Conversation

@steipete

@steipete steipete commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Several Control UI surfaces still render through Lit even though their callers already use Solid. This completes the unclaimed portable adapters for sign-in recovery, update confirmation, shell chrome, cold command-palette loading, debug-overlay loading, and dock tabs.

User Impact

These surfaces keep their existing tags, classes, actions, focus behavior, and lazy loading. No configuration or migration is required. The updater still uses the existing confirmation, retry, permission, and target-liveness owners; only its renderer changes.

Why This Change Was Made

Render directly through Solid and delete the superseded Lit renderers. Domain state remains plain TypeScript. Dock layout and dropdown controllers retain their existing caller contracts while dropping Lit types; session-menu actions read the existing Solid application context and Gateway projection. Dock and keyboard CSS become ordinary stylesheets. The topbar and native titlebar retain display: contents, which the old Lit base supplied.

The scope deliberately leaves surfaces whose callers are owned by open route, chat, sidebar, and primitive PRs: native conversation bridging, navigation and assistant toggles, agent scope, session colors, loading skeletons, legacy config nodes, and Custodian's legacy route/wizard adapters. The one-line Web Awesome migration inventory update follows removal of the dock controller's duplicate resizer renderer.

Evidence

Proof Result
UI typecheck pnpm tsgo:ui passed on the integrated head
Cold command-palette tests 16 passed; 130.17 s command wall time
Update-confirmation tests 42 passed; 145.60 s command wall time
Browser sign-in recovery tests 12 passed after main integration; 62.68 s command wall time
Scoped lint and formatting Original port lint/CSS passed; integration formatting passed. Final scoped lint stopped before file linting because plugin-SDK declaration preparation timed out after 300 s; CI lint remains required
Base/head UI builds and strict performance Passed on base and corrected head; no violations
Startup JavaScript gzip Integrated main base 343,639 B; final head 343,743 B (+104 B); budget 374,285 B
Startup CSS 1 request on both; 49,246 B gzip on both
Exact-head CI performance 343,476 B startup JS gzip; 49,246 B startup CSS gzip in 1 request; passed
Visual proof Six synthetic states inspected: topbar, native titlebar, update confirmation, sign-in recovery, dock tabs, cold palette
Production LOC in touched files 4,774 → 4,532 (-242), excluding tests and fixtures
Independent review Original port, CI corrections, manifest/diagnostics, and mobile-action integration scoped-clean through P2
Mobile-action integration Both shell-chrome tests passed; 64.16 s command wall time, 35.16 s test wrapper
Tab reorder focus regression 1 passed; 62.43 s command wall time
Semantic cursor regressions 3 passed; 144.45 s command wall time
Navigation retention regressions 2 passed; 256.09 s command wall time
Broad proof Exact-head ci:full run 38376086366: 51 successful jobs, 21 skipped, zero failures; openclaw/ci-gate passed

Final performance measurements use exact merge base 7ae69497bec4d9c37f170f046a3cbbf954ff19a7 and the integrated head on the same Mac after canonical boot-manifest regeneration. Both pnpm ui:build runs and the strict comparison passed; the +104 B startup change stays below budget and adds no CSS requests. The UI-specific lint invocation initially timed out while preparing unrelated plugin-SDK declarations; the repository source lint configuration (which includes UI) completed successfully for the earlier port. The final two-file integration lint attempt also stopped during unrelated plugin-SDK declaration preparation at its 300-second deadline, before checking the UI files. This is an uncompleted local lint check, not a passing result; all required exact-head CI lint jobs subsequently passed.

Main integration retained the native reconnect availability check in the extracted Solid handler; all 12 sign-in cases pass again on the integrated source.

The original browser-auth test stopped at a short DOM poll before its lazy modal import settled; the same test failed on the base. The updated test uses the existing modal helper, which settles lazy imports before inspecting the dialog. No timeout was increased. The final focused run passes all 12 cases. Existing update-view strict-reactivity warnings come from unchanged update-run-view.tsx / stream-auto-follow.ts code.

CI repair and attribution

Main integration preserves #170771's mobile creation action through the existing LitContent adapter. The caller keeps its original visibility and permission guards. The shell regression exercises the real Lit link renderer, URL, click callback, reactive removal, and retained search button. The pre-fix gap was confirmed in source (the Solid bridge had neither the property nor its render slot); the focused test ran once after repair.

Final integrated head: 428b6fb8cd87e9045be4350f595d9e6afa98ca6e, merging main 7ae69497bec4d9c37f170f046a3cbbf954ff19a7. It includes the regenerated boot manifest and phase-only PowerPoint diagnostics. Full CI run 38376086366 passed on this exact head: all three UI unit shards, all nine mocked UI E2E shards, both real-Gateway shards, lint/types, performance, and the aggregate gate. The earlier PowerPoint timeout did not recur: the case passed in 168.076 s, with Gateway readiness at 151.179 s and its final behavior verdict at 166.761 s. This passing run does not establish the earlier timeout’s root cause. Full CI completed in 20m 49s.

Correction head: fc4b4915f270a768d843f128adfa72904706832c; full CI run 38364946373 has completed. All UI unit, typecheck, and performance checks passed. UI E2E shards 2/9 and 8/9 retain four exact-base failures (deep-reply reveal, dark/light position rail, reconnect preview). The Details case now passes.

Real-Gateway shard 2/2 has an unattributed PowerPoint replay timeout at 180 seconds. The same case passed on the exact base in 176.49 seconds and on the latest scheduled main in 89.26 seconds; its attachment-owner source is unchanged. This is not being classified as inherited, and the final head adds fixed phase names and elapsed timings to identify where the deadline is spent. Assertions, deadlines, operations, and cleanup remain unchanged. This diagnostic change is not claimed as a timeout fix. Current-head real-Gateway shard 2/2 subsequently passed, while the earlier timeout remains unexplained.

Run 38359509341 exercised merge preview 9133b2c9a523f5130a63ee397aa16427625dadde (main b3586f1aba06e2a3d5c869daa207deeed748ff68 plus PR head 050b91eebc78053c03866903e0ee682120935c93). The correction batch removes the obsolete topbar assertion allowance and palette owner/view re-export cycle. Its test repairs replace the removed Lit render spy with retained-DOM assertions, remove a Lit-specific forced blur after synchronous Solid flush, and load the actual dock stylesheet through the existing Node fixture helper. No production behavior changes were needed for these test repairs.

All five chat E2E failures were compared by test name and failure location, not shard name:

Failing case Main evidence
Deep earlier reply reveal Exact-base run 38359351756, job 115169930339: same screenshot timeout at line 177
Position rail, dark and light Exact-base run 38359351756, job 115169930519: same two 120-second timeouts
Reply preview after reconnect Exact-base run 38359351756, job 115169930664: same click timeout at line 186
Subagents Details Scheduled-main run 38359584345, job 115170476531: same descendant-dialog timeout at line 78

The Details test passes on the literal branch base, but the CI merge includes main's 2c705154ec84 (#170707), which portals Details outside its header host. The unchanged test still searches below that host. Inspection of the exact merge source confirms the same stale-locator cause as scheduled main. These failures are inherited; they were not treated as successful tests.

The boot manifest was regenerated through pnpm ui:boot-manifest:gen after the module renames. WebKit still discovers the renamed tab-strip suites: its existing resolveUiTypeScriptPath mapping resolves the old allowlist strings to .tsx.

Screenshots below show before on the left and after on the right. They use only synthetic data, isolated Chromium, and loopback-only requests. No Gateway or live account was used; no remote test lease was created.

Mobile topbar — before (left), after (right)

Native titlebar — before (left), after (right)

Update confirmation — before (left), after (right)

Browser sign-in recovery — before (left), after (right)

Dock tabs — before (left), after (right)

Cold command palette — before (left), after (right)

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 13, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T09:29:56.558023Z 428b6fb New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 050b91eebc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -1,16 +1,24 @@
import { render } from "lit";
import { render } from "@solidjs/web";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep the renamed tab-strip tests in the WebKit allowlist

Because both panel-tab-strip suites moved from .ts to .tsx while webkitTestFiles in ui/vitest.config.ts:130-131 still contains the old exact paths, createUiBrowserVitestConfig(..., "webkit") now selects files that no longer exist. Chromium still discovers the .browser.test.tsx suite through its glob, but WebKit silently loses the tab focus, reorder, and layout coverage introduced by this port; update the allowlist as part of the rename.

AGENTS.md reference: ui/AGENTS.md:L3-L5

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The WebKit allowlist is mapped through resolveUiTypeScriptPath(file, here) in ui/vitest.config.ts. I executed that resolver for both old .ts entries and verified that it selects the existing panel-tab-strip.test.tsx and panel-tab-strip.browser.test.tsx files. The rename therefore retains WebKit coverage; no allowlist change is needed.

Comment thread ui/src/app/bootstrap.ts
subscribeWarmBootConnection,
} from "./bootstrap-warm-boot.ts";
import { startBrowserAuthRecovery } from "./browser-auth-recovery.ts";
import { startBrowserAuthRecovery } from "./browser-auth-recovery.tsx";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Regenerate the boot manifest for renamed startup modules

This startup import now targets browser-auth-recovery.tsx, and main.ts similarly replaces kbd-styles.ts with kbd.css?inline, but ui/config/control-ui-boot-modules.json:1174,1374 still assigns the deleted .ts files to the shared boot capture and contains neither replacement. Production chunking therefore builds its measured boot groups from dead keys, leaving the replacement modules outside their captured group and potentially changing startup requests; run pnpm ui:boot-manifest:gen and commit the generated manifest.

AGENTS.md reference: ui/AGENTS.md:L62-L65

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 67b1aae by running the canonical pnpm ui:boot-manifest:gen generator. Same-Mac exact-base/head builds and strict performance pass: startup JavaScript is 343,396 → 343,615 B gzip (+219 B), with startup CSS unchanged at 49,153 B in one request.

@steipete
steipete merged commit 99bc045 into main Oct 13, 2026
144 of 147 checks passed
@steipete
steipete deleted the solid2/w-portable-2 branch October 13, 2026 10:31
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
)

* refactor(ui): port remaining portable Lit renderers to Solid

* refactor(ui): align portable views with Solid lint contracts

* fix(ui): repair portable Solid migration CI coverage

* fix(ui): refresh portable boot manifest and trace media proof
steipete added a commit that referenced this pull request Oct 15, 2026
* refactor(ui): consolidate page rendering and trim speculative recovery

Reuse the canonical retained Lit-content owner for the composer, resolve
New Session defaults through one owner, filter palette choices once, and
render stacked/total usage bars through one rectangle path. Supported
rendering, features, authorization and both migration paths remain intact.
Remove duplicate warm-prefetch alias-clock validation and the debug panel's
within-animation remeasurement/retargeting; keep their existing owners.

Best-effort tradeoffs accepted:
- Remove the companion post-rejoin history barrier from #125107. The
  synthetic initial-read/rejoin timing window has no cited human incident;
  a racing row appears on the next refresh/reopen/reconnect. Keep stable
  IDs, durable history, live wizard state and ambiguous-turn non-replay.
- Remove old-Gateway system.info error classification from #114971. Core
  methods already share version and advertisement/read admission (#160982);
  unexpected unknown-method errors now remain visible and retry normally.
- Remove warm-prefetch alias-clock comparisons from #137947's synthetic
  scenario. An unopened cached transcript may lag; foreground open still
  revalidates its cursor and retains account/identity/deletion ownership.
- Remove debug body-size retargeting from #162315's synthetic E2E. A size
  change within the 160ms animation settles at finish; ordinary animation,
  reduced motion, drag/resize and same-mode continuity stay. Remove unused
  reconnect() left by the completed #170758 Solid cutover.

Net production reduction: 181 lines; remove 107 mechanism-only test lines.
Focused retained page/owner tests: 216 passed; synthetic capture: 1 passed.
Expanded/minimized Debug frames are byte-identical before/after, inspected
and synthetic. No changelog, schema, protocol, dependency or config change.

* refactor(ui): consolidate sidebar and overlay presentation

Use reactive JSX props for sidebar adapters, share rendered-ancestry observation
between tooltips and hovercards, and consolidate picker placement and fixed menu
rows. Keep the Lit/Solid shipping paths, DOM classes, text, authorization, focus,
resource handling, and asynchronous overlay animation generations unchanged.

Best-effort tradeoffs accepted:
- Same-call show/hide listeners replacing or disconnecting their overlay no
  longer have intent-token fencing; the next ordinary request reconciles state.
- Reopening from a native-close callback no longer triggers compensating reopen;
  the accepted close wins until a later ordinary user request.
- Recursive self-retirement from a hide callback has no separate retirement
  protocol; ordinary disposal and descendant retirement are retained.
- Children created during the parent's native-close callback receive no second
  late-child sweep; normal descendants retire before native mutation.

These removed mechanisms came from synthetic callback cases in #169128, with
no cited human actual-use incident. Preserve ordinary veto and browser input
behavior; remove only the tests that pin the retired synchronous protocols.

* refactor(ui): retain getter calls for new-session links

* test(ui): align companion rejoin request expectation

* refactor(ui): retain main overlay behavior after inconclusive replays

* refactor(ui): retain main agent switcher after inconclusive replay

Drop the agent-menu avatar/property cleanup after the WebKit scroll case failed in bundle CI but passed focused replays at both head and main. Preserve main's implementation under the coordinator's conservative-cut rule; do not claim the browser failure repaired.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 15, 2026
…72582)

* refactor(ui): consolidate page rendering and trim speculative recovery

Reuse the canonical retained Lit-content owner for the composer, resolve
New Session defaults through one owner, filter palette choices once, and
render stacked/total usage bars through one rectangle path. Supported
rendering, features, authorization and both migration paths remain intact.
Remove duplicate warm-prefetch alias-clock validation and the debug panel's
within-animation remeasurement/retargeting; keep their existing owners.

Best-effort tradeoffs accepted:
- Remove the companion post-rejoin history barrier from openclaw#125107. The
  synthetic initial-read/rejoin timing window has no cited human incident;
  a racing row appears on the next refresh/reopen/reconnect. Keep stable
  IDs, durable history, live wizard state and ambiguous-turn non-replay.
- Remove old-Gateway system.info error classification from openclaw#114971. Core
  methods already share version and advertisement/read admission (openclaw#160982);
  unexpected unknown-method errors now remain visible and retry normally.
- Remove warm-prefetch alias-clock comparisons from openclaw#137947's synthetic
  scenario. An unopened cached transcript may lag; foreground open still
  revalidates its cursor and retains account/identity/deletion ownership.
- Remove debug body-size retargeting from openclaw#162315's synthetic E2E. A size
  change within the 160ms animation settles at finish; ordinary animation,
  reduced motion, drag/resize and same-mode continuity stay. Remove unused
  reconnect() left by the completed openclaw#170758 Solid cutover.

Net production reduction: 181 lines; remove 107 mechanism-only test lines.
Focused retained page/owner tests: 216 passed; synthetic capture: 1 passed.
Expanded/minimized Debug frames are byte-identical before/after, inspected
and synthetic. No changelog, schema, protocol, dependency or config change.

* refactor(ui): consolidate sidebar and overlay presentation

Use reactive JSX props for sidebar adapters, share rendered-ancestry observation
between tooltips and hovercards, and consolidate picker placement and fixed menu
rows. Keep the Lit/Solid shipping paths, DOM classes, text, authorization, focus,
resource handling, and asynchronous overlay animation generations unchanged.

Best-effort tradeoffs accepted:
- Same-call show/hide listeners replacing or disconnecting their overlay no
  longer have intent-token fencing; the next ordinary request reconciles state.
- Reopening from a native-close callback no longer triggers compensating reopen;
  the accepted close wins until a later ordinary user request.
- Recursive self-retirement from a hide callback has no separate retirement
  protocol; ordinary disposal and descendant retirement are retained.
- Children created during the parent's native-close callback receive no second
  late-child sweep; normal descendants retire before native mutation.

These removed mechanisms came from synthetic callback cases in openclaw#169128, with
no cited human actual-use incident. Preserve ordinary veto and browser input
behavior; remove only the tests that pin the retired synchronous protocols.

* refactor(ui): retain getter calls for new-session links

* test(ui): align companion rejoin request expectation

* refactor(ui): retain main overlay behavior after inconclusive replays

* refactor(ui): retain main agent switcher after inconclusive replay

Drop the agent-menu avatar/property cleanup after the WebKit scroll case failed in bundle CI but passed focused replays at both head and main. Preserve main's implementation under the coordinator's conservative-cut rule; do not claim the browser failure repaired.
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 ci:full Keep ordinary native-locale CI selection on the next PR run. extensions: qa-lab size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant