Repository navigation
refactor(ui): port shared session components to Solid - #168931
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 shared session menus, backgrounds, dialogs, and hovercard presentation from Lit to Solid while retaining existing data and action controllers. Example: Open defaults for the Design group using /workspace/garden-plan and New worktree.
Review scores
ProductKind: Refactor · Worth it: Yes Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open: it advances the maintainer-directed Solid migration, and the central session-component port remains absent from current main; no discrete introduced bug was found. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThese Control UI components consume application and Gateway facts, render session surfaces in the browser, and return user actions to existing controllers. flowchart LR
A[Gateway state] --> B[Application owners]
B --> C[Solid bridges]
C --> D[Session views]
D --> E[Browser DOM]
E --> F[Action controllers]
F --> A
Technical reviewBest possible solution: Complete the shared Solid cutover while preserving existing session ownership, actions, and presentation contracts. Do we have a high-confidence way to reproduce the issue? This is a renderer migration; source inspection and supplied boundary regressions support parity, and no target code was executed during this review. Is this the best way to solve the issue? Solid bridges replace the registered Lit implementations while existing controllers retain decisions and state, matching the repository's migration architecture. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8fe6ac836200. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +3300, Tests +971, Docs 0, Other +21. Total +4292 across 56 files. Added test files: 7. View PR surface stats
Review metrics
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 (10 earlier review cycles; latest 8 shown)
Reviewed October 11, 2026, 11:24 AM ET / 15:24 UTC (Revision 11). |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
The first remembered-settings fixture in #168931 failed after 1031ms before reaching its worktree-name assertions. The one-second polling assumption dates to #152370; the palette still uses the same Lit owner. Holding the preference response reproduces the enabled-control failure. Resolve readiness from the fixture's rendered controls and keep both assertions. The existing test deadline still detects stalled loading. Production behavior and lazy imports are unchanged. Validation: all 27 cases pass under Node and the Bun UI project; UI typecheck, build, focused lint/format and line ratchets pass. The selected ui-pages test typecheck reports the same 17 Activity/Usage errors on the clean base. Independent review found no actionable P0-P2 findings.
The session menu moved to the Solid appearance picker (openclaw#168931), which still rendered "No icon" only in the Icons grid. Apply the same emoji-row clear choice there, keeping one tab stop. Refs openclaw#168688
* refactor(ui): port shared session components to Solid * fix(ui): preserve Solid session lifecycle and interop * fix(ui): settle hovercard focus after markdown updates * style(ui): brace hovercard regression callbacks * fix(ui): preserve live children in session providers * fix(ui): render hovercard content before mounting its portal * fix(ui): retain hovercard updates with shared bridge lifecycle * fix(ui): consolidate Web Awesome tab declarations * fix(ui): activate static browser and terminal viewports explicitly
The first remembered-settings fixture in openclaw#168931 failed after 1031ms before reaching its worktree-name assertions. The one-second polling assumption dates to openclaw#152370; the palette still uses the same Lit owner. Holding the preference response reproduces the enabled-control failure. Resolve readiness from the fixture's rendered controls and keep both assertions. The existing test deadline still detects stalled loading. Production behavior and lazy imports are unchanged. Validation: all 27 cases pass under Node and the Bun UI project; UI typecheck, build, focused lint/format and line ratchets pass. The selected ui-pages test typecheck reports the same 17 Activity/Usage errors on the clean base. Independent review found no actionable P0-P2 findings.
First-parent upstream 19fe879..0bc7491 (100 commits, including openclaw#169090 entry-writer postimages, openclaw#169201 transcript projection facts, openclaw#169113/openclaw#169107/openclaw#169125 session-actor admission, openclaw#169110 bounded worker heaps, openclaw#169130 inter-session provenance, openclaw#168931 Solid session UI). Conflicts: - session-accessor.sqlite-entry-mutation.ts: openclaw#169090 moved postimage publication into writeSessionEntry and replaced the revision-equality no-op check with postimages.changed. Took upstream's form; kept our recipient-authority advance on visibility narrowing (same transaction, after the write, before the no-op return). - session-accessor.sqlite-entry-store.ts: import union (upstream dropped withProjectedParticipants/SessionEntryWindowFacts imports; ours adds the recipient-authority advance). Overlay vs upstream is now 2 lines. - openclaw-tools.types.ts: import union (our RequestCompactionToolOpts, upstream's SessionsYieldRuntimeClaim). - plugin-sdk-surface-report.mts: upstream raised the budgets to 3672/2133; ours stays +11/+4 on top (3683/2137). - worker-access-inventory.md: regenerated on the merged tree. Auto-merged files that carry continuation overlay (21) keep the overlay byte-for-byte (interdiff of the +/- lines vs upstream before and after). Refs #1475 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…#168689) * fix(ui): offer the clear-icon choice in the emoji section too Emoji and glyph icons share one session icon slot, but the "No icon" choice was only rendered at the start of the glyph section. Users who picked an emoji had to clear it from the Icons row. Render the same choice first in the emoji row as well, keeping a single tab stop. Refs #168688 * fix(ui): offer the clear-icon choice in the Solid emoji section too The session menu moved to the Solid appearance picker (#168931), which still rendered "No icon" only in the Icons grid. Apply the same emoji-row clear choice there, keeping one tab stop. Refs #168688 * test(ui): drop duplicate Solid clear-choice table The registered session menu test already covers the Solid picker's clear choice, selection and single tab stop; it fails without the Solid change. Refs #168688
…openclaw#168689) * fix(ui): offer the clear-icon choice in the emoji section too Emoji and glyph icons share one session icon slot, but the "No icon" choice was only rendered at the start of the glyph section. Users who picked an emoji had to clear it from the Icons row. Render the same choice first in the emoji row as well, keeping a single tab stop. Refs openclaw#168688 * fix(ui): offer the clear-icon choice in the Solid emoji section too The session menu moved to the Solid appearance picker (openclaw#168931), which still rendered "No icon" only in the Icons grid. Apply the same emoji-row clear choice there, keeping one tab stop. Refs openclaw#168688 * test(ui): drop duplicate Solid clear-choice table The registered session menu test already covers the Solid picker's clear choice, selection and single tab stop; it fails without the Solid change. Refs openclaw#168688
What Problem This Solves
The shared session UI still depended on Lit element lifecycles while the Control UI moves to Solid 2.
User Impact
No intentional visual or interaction change. Session menus, backgrounds, progress hovercards, and reusable session/person renderers keep their existing host tags, classes, actions, focus behavior, and session ownership.
Why This Change Was Made
Replace the registered session menu, background, and progress-hovercard provider with Solid bridge owners, deleting their Lit classes. Add Solid rendering counterparts for progress, hovercard attribution, person activity, appearance, and group defaults. Session data/attention controllers and
ui/src/lib/sessionskeep their existing authority and synchronous behavior.Native event listeners preserve Web Awesome's embedded-control event order. Stable components preserve focused rows, open participant tooltips, owner search, and Markdown across live updates. Backgrounds inherit context or honor an explicit override and admit image reads only after attachment. Existing stateless Lit helpers remain for callers that have not migrated.
Changed production files: 5,672 → 8,972 LOC (+3,300); tests/support: 3,363 → 4,334 (+971); parity harness/docs: 720 → 742 (+22). Growth is temporary Lit/Solid presentation overlap for unported callers; policy and domain owners are shared. Main’s shared avatar renderers and in-place bridge adoption replace this lane’s temporary adapters.
Evidence
Local commands used one worker;
OPENCLAW_VITEST_FS_MODULE_CACHE=0avoids a diagnosed shared-host filesystem-cache rename stall. Durations below are reported runner wall time (the progress/hovercard rows retain outer command wall time where measured).session-menu-solid.test.tsxsession-menu.test.tssession-menu.communication.test.tssession-menu.involvement.test.tssession-hovercard.test.tssession-progress-card-refresh.test.tsxsession-background.test.tslib/reactive/context.test.tsgit diff --checkIntegrated main through
2695b46dd136a. The provider retains its mounted portal across updates and relies on main’s non-reentrant Solid-owned bridge mounting and in-place child adoption; the redundantpreserveChildrenoption is removed. Its browser regression proves a live child connects once and keyboard focus survives Markdown replacement. Session views use main’s owned Solid avatar renderers. Noui/src/lib/sessionschanges. Later mechanical merges preserve main’s centralized JSX declarations, component-owned elapsed-time props, optional context helper, and widened legacy progress heading-menu input.Focused proof rerun after integration:
session-menu.test.tssession-hovercard.test.tssolid-bridge.test.tsxsession-progress-hovercard-provider.browser.test.tssession-progress-card-refresh.test.tsxafter final owner integrationlib/reactive/context.test.tsafter final owner integrationOne Testbox attempt stopped during source-capsule preparation before upload; no runner or lease was allocated. Heavy validation uses PR CI under the task's host limits. The previous attempt exposed the rich-card loop and the missing tooltip
describedeclaration; both are repaired in the current head. The latest integration also adopts main’s native click fix for the Files action hosted outside its Solid panel. The provider fixture hides its lookup-only sidebar so combined browser runs cannot intercept synthetic pointer input. The UI unit shard cancellation from that attempt is not counted as a pass. The previous head passed all UI unit and E2E shards. The inherited duplicate Web Awesome tab declarations are repaired by the integrated upstream commit2899226120bfb; Two static browser/terminal bindings now explicitly assignprop:active={true}: the pinned compiler skipped their former bare attributes. A compiler comparison and Chromium probe prove inactive/hidden before and active/visible after (3.46 seconds). Upstream focus repair and Windows test-caller correction are also integrated. Merged through the native inherited-failure exception; see final CI disposition below.Visual proof
Left: Lit baseline at
49ca813772fa7375850231053500dec0e1c43f41. Right: Solid candidate. Six scenes were captured through one synthetic browser-unit fixture with the same viewport, theme, typography, data, and layout. The refreshed integration captures preserve all six layouts; five pairs have zero changed pixels and the compact menu has small raster/opacity differences. The dialog capture waits for the public shown event. The updated compact-menu comparison is below. No app E2E, real Gateway, or private data was used.Additional focused proof from the earlier CI repairs: all 60 session-menu unit cases and 90 dual-renderer hovercard cases pass; all six browser people-search cases pass after a red-before/green-after compact-focus repair. The group-defaults keyboard flow and two icon-picker tests pass. A browser provider regression reproduces focus loss after Markdown refresh and passes with post-settle focus restoration.
Final CI disposition
At
0dcd02e7c9ff, all E2E, production/test type, lint, ratchet, security and other selected checks passed except one palette unit readiness wait:palette-only remembered settings > never borrows or consumes the foreground draft’s one-use worktree name. The failure is before the name assertions, in the unchanged fixture’s one-second enabled-control wait. Eleven relevant test/preference/submission source blobs match the actual CI base23ad242958a4and tested merge6846ffdd. The isolated case and full 27-case file pass locally; neither replay is claimed as a fix. Baseline replay could not load its missing newerproc-safedependency; the release-age guard was retained. The exact cold-readiness cause remains uncertain. Merged as481813822c018ab7772578058b43eb0b8e500bd8through the documented inherited-failure exception, preserving the failed CI result. The failed unit shard did not run its follow-on WebKit coverage. The native receipt recorded concurrent main movement and verified the actual landed commit.