Skip to content

refactor(ui): move meetings, memory import, profile, and debug to Solid - #168805

Merged
steipete merged 30 commits into
mainfrom
solid2/w-pg-2c
Oct 11, 2026
Merged

steipete merged 30 commits into
mainfrom
solid2/w-pg-2c

Conversation

@steipete

@steipete steipete commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Ports Meetings, Import Memory, Profile, and Debug from Lit to Solid 2 while preserving routes, registered host tags, CSS classes, E2E selectors, and Gateway contracts.

Solution

Each ported tag has one implementation registered through defineSolidBridge; its Lit class is deleted. Existing synchronous domain owners and shared projections retain authority. Memory import and rollback retain their captured connection and agent, account-wizard callbacks retain their rendered step, and Debug releases old request/subscription lifetimes before replacement.

The pages use the landed Solid icons and settings primitives. Shared changes materialize SettingsRow.control once, consolidate custom-element JSX contracts at their owners, expose the existing GitHub connections component, and allow a native leading action in the retained wizard helper. Stateless Lit helpers remain only for existing Lit consumers. Profile observes the existing config projection so a live upload-policy change hides its controls; handlers still recheck live policy before acting. An attempted import retains its frozen recovery key through a temporarily unavailable agent roster. No new store, dependency, or protocol.

Lane production TypeScript (four page directories plus solid-dom.ts): 6,312 → 7,124 lines (+812). Coupled shared changes reuse the landed primitives and their tag contracts. Tests/support in the lane: 6,447 → 6,798. Growth is explicit JSX/prop typing and overlay request/disposal lifetimes formerly hidden in Lit controllers, plus temporary stateless helpers for remaining Lit consumers. Simplification removed duplicate adapters, state objects, forwarding wrappers, JSX declarations, and a one-use generic test helper.

Evidence

Check Result
pnpm test ui/src/pages/debug/view.test.ts --maxWorkers=1 18 passed; 3.75s wall
pnpm test ui/src/pages/debug/debug-overlay.test.ts --maxWorkers=1 7 passed; 3.82s wall
pnpm test ui/src/pages/meetings/meetings-page.test.ts --maxWorkers=1 29 passed; 6.22s wall, including both-tab retry recovery
pnpm test ui/src/pages/memory-import/memory-import-page.test.tsx --maxWorkers=1 14 passed; 8.20s wall, including lost-result recovery through roster loss
pnpm test ui/src/pages/profile/profile-page.test.tsx --maxWorkers=1 27 passed; 11.62s wall, including live upload-policy invalidation
pnpm test ui/src/pages/profile/identity-section.test.tsx --maxWorkers=1 7 passed; 5.49s wall
pnpm test ui/src/pages/profile/profile-hero.test.tsx --maxWorkers=1 2 passed; 14.97s wall
pnpm test ui/src/pages/profile/model-accounts.test.tsx --maxWorkers=1 12 passed; 4.36s wall, including stale wizard-step activation
pnpm test ui/src/pages/profile/personal-instructions.test.tsx --maxWorkers=1 18 passed; 58.06s wall
pnpm test ui/src/lib/solid-dom.test.tsx --maxWorkers=1 2 passed; 4.51s wall
pnpm test ui/src/pages/gateway-source-replacement.test.ts --maxWorkers=1 12 passed; 9.62s wall in an isolated candidate with current main dependencies
Shared menu hover test (Chromium + WebKit, single file) 20 + 20 passed; Chromium wrapper 12.74s, WebKit Vitest 8.29s. Waits for the existing color transition before asserting the final color.
Type-aware focused lint, format, diff checks Passed; final conflict-resolved source-replacement test passes lint
pnpm ui:i18n:baseline Passed; only raw-copy source-path baseline changes
Independent review Full branch and later corrections reviewed through P2; final full review against actual merge parent clean
CI before conflict merge 38153847905, head eb9dd19933c89: complete success, including production/test types, all UI unit shards, executed E2E shards, build/performance, and CI gate
Full CI 38164676112, head de3d8f5faef16: fully green
Final CI 38174213981, head ddee2ea38afe8: green; ordinary exact-head native admission.
Build/performance Both revisions built on the same CI host; reviewed green head measured startup 420,710 B gzip, 8 requests (configured baseline 450,000 B).
Visuals 108 states × desktop/mobile × light/dark = 432 captures per revision, 864 total; inspected synthetic-only comparison sheets
Testbox One attempt never admitted; stopped after >21 minutes. No active lease.

The WebKit hover failure was a transitional alpha value. An equivalent animation-wait test repair landed on main and is retained unchanged; its 20 WebKit tests pass locally. No menu production code changes.

The Model Providers E2E expectation now matches the actual reported Gateway catalog error, following main’s landed behavior change; Retry, configured-model retention, and recovery assertions remain.

Earlier CI findings were fixed: stale assertion-ledger entries, type-only cycles and duplicate JSX declarations, a whitespace-dependent Debug assertion, and Profile settlement/upload-policy behavior. The main conflicts adopt the landed Usage test helper and Capture Settings router callback, and remove the obsolete Debug test/unused Lit constructor. The incoming Capture Settings back-navigation fix is covered by 29 page tests and 3 browser reader tests. The unchanged shared installation lacks @openclaw/proc-safe, newly required by main's launcher. An isolated checkout with private dependency links reproduced the Activity baseline failure and passed the final memory/reconnect tests; its 76 changed source paths match this candidate byte-for-byte. No local Docker, whole suite, typecheck, or full E2E was run.

Screenshots

All-state comparisons, part 1 · Part 2 — 26 inspected sheets, all image URLs verified.

The overview images show before on the left and after on the right. Full comparison sheets cover all 432 pairs; 420 are pixel-identical or differ only by one intensity level. The remaining differences include live ping/timestamps and capture timing. Desktop/light Debug loading froze before its unchanged fade-in; three skeleton nodes were asserted, and mobile/dark captures show them.

Baseline: 53b8118647525c9e855a6d276ed3eef5dfef9464. Candidate: 6e597502f88c42e0827a84beeb261c2f7acb775b, supplemented for inline spacing and corrected backfill/loading fixtures. Later type/test/config-subscription corrections preserve the captured steady states. The canonical parity harness could not prepare the local Workboard fixture, so captures use the existing real-route mocked Gateway and source preview.

Desktop light: before and after for Meetings, Import Memory, Profile, and Debug

Desktop dark: before and after for all four pages

Mobile light: before and after for all four pages

Mobile dark: before and after for all four pages

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

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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 migrates Meetings, Import Memory, Profile, and Debug from Lit to Solid while preserving their routes and Gateway contracts.

Example: Open Meetings and select the saved meeting “Design review.”

  • Before: Lit renders the meeting summary, transcript tabs, filters, and download controls.
  • After: Solid renders the same meeting reader and controls through the existing host tag.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Strong visual evidence and green checks support the migration, but the unresolved shared-owner finding still blocks merge.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected desktop/mobile and light/dark before/after screenshots exercise the four rendered pages through the reported real-route mocked-Gateway setup; focused lifecycle tests and green exact-head checks support the migration, while the screenshots remain evidence of their declared capture revision.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: No new user-facing capability is requested; existing Control UI pages need to remain functional during the planned renderer migration.
Reason: Maintainer-authored migration work follows the explicit repository direction and preserves existing routes, controls, and Gateway contracts.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this PR open: the Solid migration is useful and supported by visual evidence, but the previously reported duplicate controlled-input owner remains unresolved.

Priority: P2
Reviewed head: ddee2ea38afe8870c3cad72fbc312e2795d8242d

Before merge

  • Reuse the existing controlled-input owner (P1) - Every Meetings filter and transcript-search input now uses this duplicate liveValue implementation, although ui/src/lib/reactive/live-value.ts already supplies the selection-preserving contract used by Device settings. All added production callers are supported input elements; textarea support is exercised only by the helper test. Keeping separate implementations with different effect phases violates the repository's explicit one-owner and existing-capability rules. Import the existing helper in Meetings, delete this duplicate and its controlled-value test, and retain sanitizedHtml. This previously reported finding remains unresolved.

Findings

  • [P1] Reuse the existing controlled-input owner — ui/src/lib/solid-dom.ts:4-10

Tests

  • Low-value test ui/src/lib/solid-dom.test.tsx: Remove the controlled-value case with the duplicate liveValue implementation; its textarea extension has no production caller in this PR.
Agent review details

How this fits together

Control UI routes mount page components that consume Gateway state, send existing RPCs, and render meeting archives, memory-import controls, profile settings, and diagnostics.

flowchart LR
  A[Browser navigation] --> B[Existing routes]
  B --> C[Solid bridge hosts]
  C --> D[Solid page views]
  D --> E[Existing domain owners]
  E --> F[Gateway RPCs]
  F --> E
Loading

Technical review

Best possible solution:

Complete the migration with Meetings consuming the existing shared liveValue helper and retain sanitizedHtml for sanitized markup.

Do we have a high-confidence way to reproduce the issue?

Source inspection confirms two liveValue implementations and production consumers split between them; no target code or tests were executed.

Is this the best way to solve the issue?

The Solid bridge migration follows the repository's chosen direction, but adding another controlled-input implementation is unnecessary because the existing helper supports every added production caller.

Full review comments:

  • [P1] Reuse the existing controlled-input owner — ui/src/lib/solid-dom.ts:4-10
    Every Meetings filter and transcript-search input now uses this duplicate liveValue implementation, although ui/src/lib/reactive/live-value.ts already supplies the selection-preserving contract used by Device settings. All added production callers are supported input elements; textarea support is exercised only by the helper test. Keeping separate implementations with different effect phases violates the repository's explicit one-owner and existing-capability rules. Import the existing helper in Meetings, delete this duplicate and its controlled-value test, and retain sanitizedHtml. This previously reported finding remains unresolved.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 2bc837de4d54.

Provenance checked

  • Meetings archive and reader keeps the original intent (6ce5c1d: Provide an archive reader with filtering, saved summaries, transcript search, downloads, and capture settings.)
  • Memory import lifecycle keeps the original intent (4319ddb: Provide reviewed, agent-scoped memory discovery and import with fingerprinted plans and recoverable writes.)
  • Profile identity saves keeps the original intent (2634c04: Unify save admission, stale-result checks, busy settlement, and refresh behavior without changing profile semantics.)
  • Debug overlay polling keeps the original intent (be3d22b: Keep diagnostic sections independently single-flight, preserve fresh vitals, and avoid hidden or minimized work.)
  • Shared settings presentation keeps the original intent (eca633a: Share presentation primitives across Solid and remaining Lit consumers; materializing control content once preserves that ownership.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test ui/src/pages/meetings/meetings-page.test.ts --maxWorkers=1
  • pnpm test ui/src/lib/solid-dom.test.tsx --maxWorkers=1
  • git diff --check

What I checked:

  • Unresolved introduced duplication: The introduced helper duplicates the existing selection-preserving liveValue owner; Meetings imports this copy for its filter and transcript-search inputs. (ui/src/lib/solid-dom.ts:4, ddee2ea38afe)
  • Existing shared capability: Current main already provides liveValue for input and select elements, and Device settings consumes it; every production caller added by this PR is supported by that contract. (ui/src/lib/reactive/live-value.ts:4, 2bc837de4d54)
  • Prior finding checked against the head: The duplicate helper, its test, and the Meetings consumer are unchanged from the previous reviewed head; the latest commit changes only the model-catalog E2E expectation. (ui/src/lib/solid-dom.ts:4, ddee2ea38afe)
  • Applicable repository policy: Root policy requires one owner per responsibility and reuse of existing capabilities; UI policy and the Solid migration guidance require preserved host tags, scoped state, and deletion of replaced Lit classes. No maintainer-notes directory exists in this checkout. (AGENTS.md:23, ddee2ea38afe)
  • Inspected visual evidence: Inspected all four prepared overview images showing before/after Meetings, Import Memory, Profile, and Debug in desktop/mobile and light/dark states; the PR credits its real-route mocked-Gateway and source-preview capture setup. (6e597502f88c)
  • Reviewed head remains open and mergeable: Live REST metadata confirms the reviewed head is still open and mergeable with a clean merge state; supplied complete check metadata reports no failed checks. (ddee2ea38afe)

Likely related people:

  • Peter Steinberger: Raw commit 74828ac adds ui/src/lib/reactive/live-value.ts:4 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 74828acd5033; files: ui/src/lib/reactive/live-value.ts)

PR surface

Source +818, Tests +343, Other -3. Total +1158 across 75 files. Added test files: 3.

View PR surface stats
Area Files Added Removed Net
Source 47 6001 5183 +818
Tests 27 1619 1276 +343
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 3 -3
Total 75 7620 6462 +1158

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a planned UI migration with a narrow ownership repair remaining and no demonstrated urgent user-facing regression.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦞 diamond lobster and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • 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 execution lanes are retired.

History

Review history (25 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-11T16:50:14.216Z sha c36070f :: needs changes before merge. :: [P1] Reuse the existing controlled-input owner
  • reviewed 2026-10-11T17:30:50.563Z sha 02825b0 :: needs changes before merge. :: [P1] Reuse the existing controlled-input owner
  • reviewed 2026-10-11T18:01:59.953Z sha 0be3b3d :: needs changes before merge. :: [P1] Reuse the existing controlled-input owner
  • reviewed 2026-10-11T18:30:42.661Z sha 0be3b3d :: needs changes before merge. :: [P1] Reuse the existing controlled-input owner
  • reviewed 2026-10-11T18:53:54.861Z sha de3d8f5 :: needs changes before merge. :: [P1] Reuse the existing controlled-input owner
  • reviewed 2026-10-11T19:36:15.083Z sha aa8aab9 :: needs changes before merge. :: [P1] Reuse the existing controlled-input owner
  • reviewed 2026-10-11T20:08:22.820Z sha fee3c5c :: needs changes before merge. :: [P1] Reuse the existing controlled-input owner
  • reviewed 2026-10-11T20:40:11.774Z sha b953f3e :: needs changes before merge. :: [P1] Reuse the existing controlled-input owner

Reviewed October 11, 2026, 5:16 PM ET / 21:16 UTC (Revision 26).

@openclaw-barnacle openclaw-barnacle Bot reopened this Oct 11, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Oct 11, 2026
# Conflicts:
#	ui/src/pages/profile/personal-instructions.ts
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Oct 11, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Oct 11, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Oct 11, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Oct 11, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 11, 2026
@steipete
steipete merged commit d64ce70 into main Oct 11, 2026
102 checks passed
@steipete
steipete deleted the solid2/w-pg-2c branch October 11, 2026 21:42
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Oct 11, 2026
#169368 removed projections it found unused on its base, but the board
and dashboards port (#168871) and the debug port (#168805) landed first
and import them. Main's UI typecheck and build failed on the missing
modules and exports.

Restore only the four thin projections those callers use
(projectBoardProvider, projectProgressCard, projectSessionList,
projectGatewayEventLog); the event-projection and lease machinery stays
removed.
steipete added a commit that referenced this pull request Oct 12, 2026
The debug overlay port (#168805, d64ce70) moved its implementation to TSX;
point stale-chunk fault injection at the emitted module instead of the erased
TypeScript re-export facade. This restores all five System busyness frame
cases without changing production code or weakening their assertions.

Model the Meetings summary-generation RPC with a held, typed interim result.
The old fixture returned an invalid empty object, causing the Solid reader to
throw on session.title and retain its previous tab. Keep all original Summary,
speech, interim-notes, and final-notes assertions.

Strengthen Board's existing inactive-app regression to reject teardown. The
production repair landed concurrently in #169441 (ad69564); adopt that
smaller owner fix and preserve this independent regression assertion. Record
all three migration lessons.

Proof: 164/164 tests across every Board and Meetings unit/browser file;
Board MCP E2E 5/5, lazy recovery 21/21, Meetings E2E 4/4. Original Board and
Meetings failures reproduced before the repairs. UI typecheck, targeted
lint/format, assertion safety and line-budget checks pass. Independent review
has no actionable findings. Base/head builds pass; strict performance has the
same inherited chat-boot request violation (36 > 35). Testbox did not admit
within about ten minutes, so proof ran locally with one worker.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
…id (openclaw#168805)

* refactor(ui): draft Solid meetings, memory import, profile, and debug pages

* refactor(ui): complete Solid page bridges and lifecycles

* fix(ui): retire debug polling before remounting content

* refactor(ui): make migrated page state types explicit

* test(ui): retire Lit assertion entries and bubble input events

* fix(ui): settle Solid page state and reuse migration adapters

* fix(ui): preserve typed callback and JSX namespace contracts

* fix(ui): preserve spacing in migrated page content

* test(ui): assert debug offline messages independently

* fix(ui): reuse shared custom element type contracts

* fix(ui): observe profile upload policy changes

* fix(ui): use shared viewer avatar declaration

* test(ui): settle menu hover transitions in WebKit

* test(ui): expect reported model catalog errors
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
openclaw#169368 removed projections it found unused on its base, but the board
and dashboards port (openclaw#168871) and the debug port (openclaw#168805) landed first
and import them. Main's UI typecheck and build failed on the missing
modules and exports.

Restore only the four thin projections those callers use
(projectBoardProvider, projectProgressCard, projectSessionList,
projectGatewayEventLog); the event-projection and lease machinery stays
removed.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
The debug overlay port (openclaw#168805, 5a27399) moved its implementation to TSX;
point stale-chunk fault injection at the emitted module instead of the erased
TypeScript re-export facade. This restores all five System busyness frame
cases without changing production code or weakening their assertions.

Model the Meetings summary-generation RPC with a held, typed interim result.
The old fixture returned an invalid empty object, causing the Solid reader to
throw on session.title and retain its previous tab. Keep all original Summary,
speech, interim-notes, and final-notes assertions.

Strengthen Board's existing inactive-app regression to reject teardown. The
production repair landed concurrently in openclaw#169441 (43865da); adopt that
smaller owner fix and preserve this independent regression assertion. Record
all three migration lessons.

Proof: 164/164 tests across every Board and Meetings unit/browser file;
Board MCP E2E 5/5, lazy recovery 21/21, Meetings E2E 4/4. Original Board and
Meetings failures reproduced before the repairs. UI typecheck, targeted
lint/format, assertion safety and line-budget checks pass. Independent review
has no actionable findings. Base/head builds pass; strict performance has the
same inherited chat-boot request violation (36 > 35). Testbox did not admit
within about ten minutes, so proof ran locally with one worker.
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. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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