Repository navigation
refactor(ui): port chat pane support to Solid - #173265
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs changes before merge. What this changesThis PR ports chat pane support renderers from Lit to Solid while retaining existing state and lifecycle owners. Example: Open Continue in terminal for a chat session at 1440×1000.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 4 items remain Keep open: this maintainer-directed Solid migration has a Details header regression and two test integrations that the renderer cutover breaks. Priority: P2 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherControl UI chat owners supply session facts, callbacks, and presentation descriptors to pane renderers, which produce headers, conversation layouts, embedded panels, and dialogs. flowchart TD
A[Gateway session facts] --> B[TypeScript pane owners]
B --> C[Solid support views]
C --> D[Chat header and layout]
C --> E[Embedded panel hosts]
C --> F[Dialogs]
E --> B
F --> B
Technical reviewBest possible solution: Complete the Solid cutover while preserving Details header geometry and updating the settings and Discussion-link tests to exercise their current boundaries. Do we have a high-confidence way to reproduce the issue? Exact-head CI records the three failing integrations, and source inspection traces each to an introduced renderer change; no local runtime reproduction was attempted. Is this the best way to solve the issue? Keeping state and mutation authority in the existing TypeScript owners fits the migration, but the added interop wrappers require a complete cutover of structural CSS and test consumers. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3ab06f3597aa. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +469, Tests +394. Total +863 across 41 files. Added test files: 2. View PR surface stats
Review metrics
LabelsLabel 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 Reviewed October 15, 2026, 12:33 PM ET / 16:33 UTC. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 87379d2567
ℹ️ 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".
| return ( | ||
| <> | ||
| <LitContent value={props.header} /> | ||
| {props.notice ? renderChatTopbarNotices(props.notice) : undefined} |
There was a problem hiding this comment.
Preserve the mounted topbar notice
When an error notice is visible, chat-pane-layout-render.ts creates a fresh notice object on every pane render, so this reactive ternary calls renderChatTopbarNotices again and supplies a newly created DOM subtree instead of updating the retained component used by the previous solidContent(...) path. Any unrelated pane update, such as a presence, board, sidebar, or Gateway-state refresh, can therefore replace the notice, collapsing an opened diagnostic <details>, dropping focus, and resetting CopyButton feedback. Mount the notice behind a stable component boundary and pass it live props so its view-owned presentation state survives.
AGENTS.md reference: ui/AGENTS.md:L17-L17
Useful? React with 👍 / 👎.
|
Merged via squash auto-merge.
|
* refactor(ui): port chat status and task suggestion renderers to Solid * fix(ui): preserve forwarded attribution without an avatar * refactor(ui): port retained chat pane support to Solid * test(ui): exercise retained pane content through Solid harnesses * test(ui): remove remaining Lit pane fixtures * test(ui): use account section view props in pane harness * test(ui): cover workspace rail inside pane Files panel * test(ui): mount pane fixtures under a Solid event root * test(ui): return void from pane fixture cleanup * fix(ui): preserve chat pane DOM contracts after Solid port * test(ui): surface search readiness failure diagnostics * test(ui): restore state ownership in model picker fixture * test(ui): publish picker catalogs through the live Gateway * test(ui): diagnose final update report timeouts * test(ui): use distinct warnings in update report fixture
Problem and solution
Chat pane layout and embedded panels still rendered through Lit. This ports the pane/page support renderers to Solid while preserving retained panes, lazy panels, header and model actions, hosted-tab routing, board reset confirmation, and Continue in terminal. Existing tags, classes, routes, selectors, callbacks, and lazy boundaries stay in place; no dependencies are added.
Solid consumes render descriptors from the existing TypeScript owners. Session state, persistence, lifecycle, and mutations remain with those owners. Ref-owned DOM islands retain cleanup and
data-sidebar-panel-hostrouting. The port preserves stream-frame cancellation, composer persistence, pane titles and menu actions, hidden-pane parking, focus restoration, and awaited iframe/MCP retirement. Details remains a direct header child whose node survives unrelated updates; external panel links remain direct anchors.Main independently landed both investigated fixture repairs: the live Gateway model-picker mutation in #172739, commit
6907edb07437410c6ffa6bff33d3ca9bbe5e2cf9, and distinct update warning details in Patrick Erichsen’s #173438, commit59d3a4a36cdb89. Main also owns the command-palette connection diagnostics from #172695. All three E2E files are adopted unchanged from main and absent from this PR's net diff; this PR has no authored CI-repair files. The update-warning fixture honors the report owner's intentional deduplication of identical warning details; all original assertions and timeouts remain.The scope is 49 logical files, above the approximate 40-file target because of directly coupled test-harness conversions and shared JSX declarations. Production growth comes from explicit Solid view modules, render descriptors, and retained DOM-island boundaries. The drop indicator belongs to the separate welcome slice.
Proof
Reviewed head:
2f9494f56c009ed2c7dd6c76ec455c177fd21d1f. Comparison base:f6c0408505eb32d25d794557df153bdc4738a85d.pnpm tsgo:uiand core lint passed. Shared JSX declarations passed replacement-head core test-type jobs. Final repairs passed focused lint/format and independent review through P2; the main integrations were also inspected directly. All three E2E sidequest files now match main and are absent from the net diff.f6c04085 → 2f9494f5production builds and strict checks passed with zero warnings/violations, using Node 26.11.1 and pnpm 12.10.1 on both sides. Startup JS 351,591 → 350,772 B gzip (−819 B), 8 requests each; startup CSS 45,894 B / 1 request, unchanged. Budget 374,285 B / 1 CSS request.pnpm deadcode:knipexited 1 with four inherited unused files:src/agents/workspace-bootstrap-seed-verify.ts,src/claws/provenance-record.ts,src/claws/provenance-write.worker-contract.ts, andsrc/cron/store/run-receipt-drain.ts. Earlier exact-base3150853dreproduced them; currentf6c04085base and2f9494f5head retain identical relevant source, configuration, and dependency inputs. No new baseline rerun or ignores.2f9494f5, includingopenclaw/ci-gateand both real-Gateway shards. Merged asaee0ee2f16208b97d3797f62d2d614690751ffce. Prior failures and adopted main repairs are recorded below.e0728f7f → 87379d25synthetic Continue in terminal captures at 1440×1000; both complete frames inspected. This PR’s migrated view source is unchanged; these are historical captures, not a claim of full current-main visual parity.CI failure investigation
The only substantive failure on
66938d70wasupdate-run.e2e.test.ts > Control UI update run E2E > resumes the same update after restart and keeps its successful report visible. The diagnostic found a succeeded run, one dialog, and the actual headline✅ OpenClaw updated to 2.0.0 (from 1.0.0); 1 warning needs attention.The fixture expected three warnings. The report owner intentionally deduplicates identical details; supplying three distinct fixture messages preserves that production contract. Main’s #173438 repair supplies distinct warning details. Its entire file is adopted unchanged, removing our diagnostic while retaining all assertions and timeouts.Scheduled main run 38794323475 also failed the same case, exact expected headline selector, and 30-second wait. The main repair is adopted rather than requesting an inherited-CI exception for a changed test. Earlier model-picker failures exposed an invalid offline config write while the Gateway was running; main's #172739 repair now uses live
config.patch, and both real-Gateway shards passed on66938d70.Earlier catalog-refresh, Gateway-readiness, and route-fulfillment failures are recorded in PR history; non-recurrence is not claimed as a causal fix. Six earlier
STRICT_READ_UNTRACKEDdiagnostics matched the comparison base.Screenshots
These complete synthetic Continue in terminal frames were captured from
e0728f7f72f7c579f570b1cdb338888653b84c62and87379d2567a41d34400d2be0ab64b068d5f5ce2d. The later fixture repairs and main integration do not change this PR’s migrated view source; these historical captures do not establish full current-main visual parity, and fresh build/performance proof usesf6c04085 → 2f9494f5.