Repository navigation
refactor(ui): move meetings, memory import, profile, and debug to Solid - #168805
Conversation
# Conflicts: # ui/src/pages/profile/identity-section.test.tsx # ui/src/pages/profile/profile-page.test.tsx
|
🦞👀 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 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.”
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete 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 Before merge
Findings
Tests
Agent review detailsHow this fits togetherControl 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
Technical reviewBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2bc837de4d54. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +818, Tests +343, Other -3. Total +1158 across 75 files. Added test files: 3. 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 (25 earlier review cycles; latest 8 shown)
Reviewed October 11, 2026, 5:16 PM ET / 21:16 UTC (Revision 26). |
# Conflicts: # ui/src/pages/profile/personal-instructions.ts
…d2/w-pg-2c # Conflicts: # ui/src/features/github-connections/github-connections.ts
…d2/w-pg-2c # Conflicts: # ui/src/pages/gateway-source-replacement.test.ts
|
Merged via squash.
|
#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.
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.
…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
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.
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.
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.controlonce, 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
pnpm test ui/src/pages/debug/view.test.ts --maxWorkers=1pnpm test ui/src/pages/debug/debug-overlay.test.ts --maxWorkers=1pnpm test ui/src/pages/meetings/meetings-page.test.ts --maxWorkers=1pnpm test ui/src/pages/memory-import/memory-import-page.test.tsx --maxWorkers=1pnpm test ui/src/pages/profile/profile-page.test.tsx --maxWorkers=1pnpm test ui/src/pages/profile/identity-section.test.tsx --maxWorkers=1pnpm test ui/src/pages/profile/profile-hero.test.tsx --maxWorkers=1pnpm test ui/src/pages/profile/model-accounts.test.tsx --maxWorkers=1pnpm test ui/src/pages/profile/personal-instructions.test.tsx --maxWorkers=1pnpm test ui/src/lib/solid-dom.test.tsx --maxWorkers=1pnpm test ui/src/pages/gateway-source-replacement.test.ts --maxWorkers=1pnpm ui:i18n:baselineeb9dd19933c89: complete success, including production/test types, all UI unit shards, executed E2E shards, build/performance, and CI gatede3d8f5faef16: fully greenddee2ea38afe8: green; ordinary exact-head native admission.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.