Repository navigation
feat(ui): add Solid chat render lifecycle - #168657
Conversation
Add parked owner projections, commit generation fences, and a separate layout frame boundary while existing Lit consumers retain their adapter. Cover setup, reveal, reentrant commits, cancellation, and cleanup through Solid consumers.
|
🦞👀 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 maintainer review before merge. What this changesAdds Solid chat commit callbacks, parked presentation snapshots, and a separate animation-frame layout phase. Example: No product-facing scenario changes yet.
Review scores
ProductKind: Feature · Worth it: Yes Merge readiness✅ Ready for maintainer review Keep this PR open: it provides distinct, owner-directed Solid migration infrastructure absent from current main, with no actionable correctness or security finding. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe lifecycle sits between synchronous chat state owners and Solid rendering, accepting snapshots, presentation state, and callbacks and producing retained DOM data plus commit and frame notifications. flowchart TD
A[Chat state owners] --> B[Owner projections]
B --> C[Parked snapshot]
D[Pane presentation] --> C
C --> E[Solid DOM commit]
E --> F[Commit callbacks]
F --> G[Animation frame callbacks]
Technical reviewBest possible solution: Land the focused foundation after required checks complete, retaining product integration in its planned migration follow-up. Do we have a high-confidence way to reproduce the issue? This is an additive migration foundation rather than a reported bug; source inspection confirms the missing Solid boundary, and no target code was executed. Is this the best way to solve the issue? The implementation fits the recorded migration contract by preserving authoritative owners and separating DOM commit from frame settlement. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 92a5349b3d91. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +193, Tests +242, Docs +28. Total +463 across 4 files. Added test files: 1. 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 10, 2026, 5:28 PM ET / 21:28 UTC. |
|
Landed as Exact-head proof: CI run 38087527732, head
CI did not select the broad chat E2E inventory, real-Gateway E2E, WebKit, or native/platform lanes for this additive change. Prior full chat A/B evidence and its inherited catalog-bootstrap failures remain documented in the PR body; no extra CI runs were dispatched. Aggressive landing per Peter: ClawSweeper review was still pending and had posted no findings at merge time. It is advisory. The normal pinned squash merge succeeded without an admin override or auto-merge. Production LOC: 0 → 193; tests: 0 → 242; documentation: +28. Existing Lit consumers are unchanged. Solid outlet parking integration remains the follow-up after #168612. |
… entries #168576 (shared presentation primitives) and #168657 (Solid chat render lifecycle) land before their page and chat consumers, so Knip reported 18 files and their exports as unused in scheduled run 38095292949. Register them as ui production entries with the existing removal condition (drop each with its first production importer), and stop exporting SettingsSegmentedOption, which is only used in-module. Both deadcode:full passes now report only GatewayApprovalEventPublisherV2, which belongs to #168482.
* feat(ui): add Solid chat render lifecycle Add parked owner projections, commit generation fences, and a separate layout frame boundary while existing Lit consumers retain their adapter. Cover setup, reveal, reentrant commits, cancellation, and cleanup through Solid consumers. * fix(ui): declare render lifecycle callbacks receiver-free
… entries openclaw#168576 (shared presentation primitives) and openclaw#168657 (Solid chat render lifecycle) land before their page and chat consumers, so Knip reported 18 files and their exports as unused in scheduled run 38095292949. Register them as ui production entries with the existing removal condition (drop each with its first production importer), and stop exporting SettingsSegmentedOption, which is only used in-module. Both deadcode:full passes now report only GatewayApprovalEventPublisherV2, which belongs to openclaw#168482.
What Problem This Solves
Provides the renderer boundary needed to port retained chat panes to Solid while preserving commit ordering and hidden-pane parking.
User Impact
Internal migration foundation with no user-visible change. Existing Lit consumers, host tags, CSS classes, and selectors are unchanged. The new lifecycle is exercised through test-only Solid consumers and does not depend on the Lit-to-Solid bridge.
Why This Change Was Made
Adds commit generations and
afterCommit, parked projections that stop observing sources while hidden and catch up on reveal, and a separate animation-frameafterLayoutphase. Callback cleanup is owned through completion, cancellation, parking, and disposal. Domain owners remain plain TypeScript.Wiring the Solid outlet's parked-pane path follows once P2-SHELL lands (#168612). This additive change is based directly on main and includes no bridge or other retired integration-branch work.
Evidence
pnpm test ui/src/pages/chat/solid-render-lifecycle.test.tsx --maxWorkers=1on this main-based branchgit range-diffThe previous full E2E comparison used lane head
fccfe15a2f38and base035089ed0bb81on the same isolated Linux host. Both also reported the same existing startup-JS warning (368.2 KiB against 366.1 KiB). These are prior-base results; current-head types, lint, ratchets, UI unit, and chat E2E proof comes from this PR's CI.No visual route or state is changed, so there are no before/after screenshots for this additive foundation.
Release-note context: additive Solid chat migration infrastructure; no change to the existing Lit chat behavior.