Skip to content

refactor(ui): port shared session components to Solid - #168931

Merged
steipete merged 18 commits into
mainfrom
solid2/w-cmp-1
Oct 11, 2026
Merged

steipete merged 18 commits into
mainfrom
solid2/w-cmp-1

Conversation

@steipete

@steipete steipete commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

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/sessions keep 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=0 avoids 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).

Check Result Local seconds
session-menu-solid.test.tsx 2 passed; identity regression fails before fix 85.32
session-menu.test.ts 60 passed 134.26
session-menu.communication.test.ts 6 passed 62.64
session-menu.involvement.test.ts 4 passed 33.90
session-hovercard.test.ts 90 passed; old Solid retention fails while Lit passes 23.53
session-progress-card-refresh.test.tsx 7 passed 168.25
session-background.test.ts 28 passed; inherited-context cases fail before fix 5.99
lib/reactive/context.test.ts 1 passed 9.14
Focused oxlint, formatting, git diff --check Passed —
Control UI Lit migration ratchet Passed —
Independent review Passed twice, including the integrated main candidate; no actionable P0–P2 findings —
Final CI All selected E2E, type, lint, ratchet and other jobs passed; one inherited palette readiness failure in UI unit shard, downstream WebKit follow-on unrun —
Before/after visual proof Six inspected synthetic browser scenes; five pixel-identical, compact menu has minor raster/opacity differences with unchanged layout and controls —

Integrated 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 redundant preserveChildren option 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. No ui/src/lib/sessions changes. 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:

Check Result Local seconds
session-menu.test.ts 60 passed 9.04
session-hovercard.test.ts 90 passed 4.52
solid-bridge.test.tsx 14 passed 3.17
session-progress-hovercard-provider.browser.test.ts 5 passed; rich participant/channel pointer regressions, sidebar/Markdown keyboard refresh, live-child lifecycle 4.5
Six synthetic component screenshots (5 cases) Passed; inspected 4.48
Focused lint, formatting, whitespace Passed —
session-progress-card-refresh.test.tsx after final owner integration 7 passed 4.20
lib/reactive/context.test.ts after final owner integration 1 passed 3.31
Fresh independent integration reviews No actionable P0–P2 findings —

One 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 describe declaration; 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 commit 2899226120bfb; Two static browser/terminal bindings now explicitly assign prop: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.

Desktop menu: Lit before on the left, Solid after on the right

Compact menu: Lit before on the left, integrated Solid after on the right

Compact archive page: Lit before on the left, Solid after on the right

Hovercard and progress: Lit before on the left, Solid after on the right

Background preview: Lit before on the left, Solid after on the right

Group defaults: Lit before on the left, Solid after on the right

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 base 23ad242958a4 and tested merge 6846ffdd. The isolated case and full 27-case file pass locally; neither replay is claimed as a fix. Baseline replay could not load its missing newer proc-safe dependency; the release-age guard was retained. The exact cold-readiness cause remains uncertain. Merged as 481813822c018ab7772578058b43eb0b8e500bd8 through 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.

@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 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.

  • Before: The Lit dialog shows the selected folder, environment, Save, and Cancel.
  • After: The Solid dialog preserves those selections, controls, and layout.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The migration has meaningful visual and boundary evidence with no concrete source finding, but the current UI test failure remains unattributed.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored refactor is outside the contributor proof gate; six inspected synthetic browser comparisons support visual parity, and supplied production-component harnesses cover focus and lifecycle behavior without claiming live Gateway proof.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes
Reason: Recorded maintainer authorship approves the migration direction, and the port preserves existing host tags and shared owners.

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
Reviewed head: 0dcd02e7c9ff8f5057bcd569e258cecb60f88cae

Before merge

  • Complete next step - Inspect checks-ui (1/3) on the reviewed head and fix any PR-caused failure or establish its outside cause with matching base evidence.

Findings

None.

Tests

  • Missing end-to-end proof: The failed UI shard skipped its planned WebKit overlay and focus coverage.
Agent review details

How this fits together

These 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
Loading

Technical review

Best 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

  • Session menu organization and actions keeps the original intent (improve(ui): put everyday session actions first #168616: Put everyday actions first while retaining permissions, assignment discovery, compact navigation, and Advanced controls.)
  • Session backgrounds keeps the original intent (afafe74: Personalize backgrounds through existing appearance preferences while preserving private profile scope and readability.)
  • Group defaults keeps the original intent (a928da4: Offer Worktree only for Git folders and preserve saved defaults when repository inspection is unavailable.)
  • Progress hovercard runtime keeps the original intent (8032e6c: Present composite session information and progress while retaining useful content after refresh failures.)
  • Progress presentation keeps the original intent (80b8e79: Use canonical run outcomes for relative activity, terminal counters, markers, and accessible status.)
  • Person-card recent sessions keeps the original intent (17e802b: Keep recent links stable during an open card while updating facts and retiring ineligible identities without backfill.)
  • Hover marquee keeps the original intent (8734609: Avoid redundant measurements while preserving pointer, keyboard, reduced-motion, and reconnect behavior.)
  • Static browser and terminal activation changes intended behavior with a stated reason (89564fa: Keep panel viewports active during the Solid port; this PR explains that explicit true bindings repair bare properties skipped by the pinned compiler.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source +3300, Tests +971, Docs 0, Other +21. Total +4292 across 56 files. Added test files: 7.

View PR surface stats
Area Files Added Removed Net
Source 37 4748 1448 +3300
Tests 16 1186 215 +971
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 22 1 +21
Total 56 5957 1665 +4292

Review metrics

Metric Value Why it matters
Production versus test growth Production +3,300 LOC; tests/support +971 LOC The pinned diff confirms the recorded growth; temporary Lit/Solid presentation overlap is explained by unported callers, while domain and action owners remain shared.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is an approved internal UI migration with normal user-facing regression exposure.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • 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 (10 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-11T08:13:13.518Z sha ffdc26f :: needs changes before merge. :: [P2] Handle workspace reset before the popover stops the click
  • reviewed 2026-10-11T09:27:36.959Z sha ffdc26f :: needs changes before merge. :: [P2] Handle workspace reset before the popover stops the click | [P2] Update the owner-chip test for the shared avatar renderer | [P2] Align the combobox ownership check with the ported browser
  • reviewed 2026-10-11T10:15:32.440Z sha 013a0c4 :: needs changes before merge. :: [P2] Handle workspace reset before the popover stops the click | [P2] Use the normalized path in the combobox ownership expectation | [P2] Repair the added custom-background browser regression | [P2] Repair the added hovercard keyboard browser regression
  • reviewed 2026-10-11T11:41:53.470Z sha c9257fb :: needs changes before merge. :: none
  • reviewed 2026-10-11T12:13:55.390Z sha b54239b :: needs maintainer review before merge. :: none
  • reviewed 2026-10-11T13:23:20.914Z sha 68aabac :: needs changes before merge. :: [P2] [P2] Keep real sidebar chrome out of the pointer fixture
  • reviewed 2026-10-11T14:12:15.671Z sha a971d25 :: needs changes before merge. :: none
  • reviewed 2026-10-11T14:46:21.456Z sha d690f5b :: needs changes before merge. :: none

Reviewed October 11, 2026, 11:24 AM ET / 15:24 UTC (Revision 11).

@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
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Oct 11, 2026
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 11, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 11, 2026
@steipete
steipete merged commit 4818138 into main Oct 11, 2026
113 of 116 checks passed
@steipete
steipete deleted the solid2/w-cmp-1 branch October 11, 2026 15:53
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

steipete added a commit that referenced this pull request Oct 11, 2026
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.
holgergruenhagen added a commit to holgergruenhagen/openclaw that referenced this pull request Oct 11, 2026
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
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
* 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
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
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.
scribe-dandelion-cult added a commit to karmaterminal/openclaw that referenced this pull request Oct 20, 2026
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]>
vyctorbrzezowski pushed a commit that referenced this pull request Oct 22, 2026
…#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
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
…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
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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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