Repository navigation
refactor(ui): own progress card subscriptions in Solid - #174247
Conversation
Use the existing store projection in chat and the board widget. Retain parked-pane cache custody and reset lifetimes, and remove the host-driven progress controller.
|
🦞👀 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 maintainer review before merge. What this changesThis PR moves chat and board progress-card subscriptions into Solid-owned projections and deletes the host-driven controller. Example: Hide the progress card for agent:research:notes, background the tab, reset the session, then return.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-directed Solid cutover removes a redundant controller while preserving the existing store boundary, and no actionable introduced bug was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI projects Gateway-scoped progress-card state into retained chat panes and board widgets, while the existing store owns requests, caching, refresh, dismissal, and lifetimes. flowchart LR
Gateway[Gateway events and RPC] --> Store[Progress card store]
History[Cached chat history] --> Store
Store --> Projection[Solid projection]
Projection --> Chat[Retained chat pane]
Projection --> Board[Board widget]
Chat --> Card[Progress card view]
Board --> Card
Technical reviewBest possible solution: Retain the existing Gateway-scoped store and complete the Solid subscription cutover through the normal current-head CI gates. Do we have a high-confidence way to reproduce the issue? This is a refactor rather than a reported defect; source inspection and supplied mounted tests establish the relevant lifecycle contracts without a new reproduction run. Is this the best way to solve the issue? Reusing projectProgressCard is appropriate: both consumers migrate together, the obsolete controller is removed, and synchronous domain ownership remains in the existing store. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4008c32e3097. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -38, Tests +140. Total +102 across 11 files. Added test files: 0. 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 16, 2026, 9:59 AM ET / 13:59 UTC. |
|
Merged via explicitly authorized admin squash with prior CI and scoped validation.
|
…174885) ## What Problem This Solves Fixes: the QA scenario catalog test fails on main because the progress card scenario still names a file that #174247 deleted. ## User Impact No user-visible change. Hourly Extension Tests and the full CI extension shard go green again for this test. ## Why This Change Was Made #174247 removed `ui/src/components/session-progress-card-controller.ts` and moved progress card subscriptions to the store projection in `ui/src/lib/session-progress-cards.ts`. The scenario's `codeRefs` now points at that owner. The test still checks that every reference resolves. ## Evidence - Before, on main `f76d912f5d7`: `pnpm exec vitest run extensions/qa-lab/src/scenario-catalog.test.ts` → 1 failed: `control-ui-progress-card-live-placement codeRefs ui/src/components/session-progress-card-controller.ts exists: expected null not to be null`. Same failure in Hourly Extension Tests run 38982648317. - After: same command → 8 passed. Co-authored-by: Ayaan Zaidi <[email protected]>
* refactor(ui): own progress card subscriptions in Solid Use the existing store projection in chat and the board widget. Retain parked-pane cache custody and reset lifetimes, and remove the host-driven progress controller. * test(ui): return void from progress projection cleanup * fix(ui): avoid shadowing the chat progress owner
…penclaw#174885) ## What Problem This Solves Fixes: the QA scenario catalog test fails on main because the progress card scenario still names a file that openclaw#174247 deleted. ## User Impact No user-visible change. Hourly Extension Tests and the full CI extension shard go green again for this test. ## Why This Change Was Made openclaw#174247 removed `ui/src/components/session-progress-card-controller.ts` and moved progress card subscriptions to the store projection in `ui/src/lib/session-progress-cards.ts`. The scenario's `codeRefs` now points at that owner. The test still checks that every reference resolves. ## Evidence - Before, on main `7fd0ad5d1f9`: `pnpm exec vitest run extensions/qa-lab/src/scenario-catalog.test.ts` → 1 failed: `control-ui-progress-card-live-placement codeRefs ui/src/components/session-progress-card-controller.ts exists: expected null not to be null`. Same failure in Hourly Extension Tests run 38982648317. - After: same command → 8 passed. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Chat and the session-progress board widget still owned progress-card reads through a 194-line
SessionProgressCardController. The controller duplicated the existing store/projection boundary and tied subscriptions to host update callbacks.Both consumers now use
projectProgressCard. The synchronous Gateway-scoped store remains authoritative for hydration, caching, requests, refresh, dismissal, and card lifetimes. Chat keeps an explicit subscription while its rendered frame is parked so reset/delete events retire hidden card lifetimes. A same-store target handoff retains the cache; live admission checks reject reads from superseded conversation or connection scopes. History hydration still runs synchronously before the first Solid mount.The controller and its host wiring are deleted. The two new effects only synchronize store subscriptions with current connection/conversation identity; no domain state moves into signals. Existing tags, markup, CSS, routes, lazy boundaries, and transcript geometry are unchanged.
Evidence
pnpm tsgo:uigit diff --checkci:fullrun 38922703041, attempt 1The mounted tests preserve deferred admission, stale response rejection, reconnect/disposal, unrelated-session redraw suppression, preferences, draft identity, and hidden-card lifetimes. The added test proves no automatic reads while the document is hidden, then a fresh lifetime after reset and reveal.
No visual or startup module changes: no local build, screenshots, parity or E2E suite. The existing CI performance gate supplies startup proof.
Size and idiom census
Touched production files: 4,009 → 3,967 LOC (−42). Controller-pattern references 31 → 27;
createEffect2 → 4 (the two external subscription bindings described above);untrack1 → 4 (initial binding snapshots and live admission); native listeners 8 → 8; DOM queries 4 → 4. Remaining notifications belong to the synchronous pane/domain owners and are outside this focused controller cut.Final validation and landing
The final main integration preserves the progress and context projections and adopts the relocated Solid bridge. The controller stays deleted. The 24 focused projection, history, and mounted bridge cases, UI typecheck, scoped lint, formatting, production Knip, and independent P0–P2 review all passed.
Final head
e276fad49e654768af3e3f1bb50889d62122a8ebpassed ci:full run 38922703041, attempt 1, with no failed or cancelled jobs. Earlier attempts had a real-Gateway setup timeout and a Usage-route timeout; both affected shards passed on the final head. Those historical failures were not used to qualify the final landing.The strict performance job built base and candidate on the same CI machine: 339,555 B startup JavaScript gzip, 7 JS requests, 1 CSS request / 38,786 B. Chat-route JavaScript: 1,645,848 → 1,645,771 B gzip (−77 B), with 31 requests unchanged. Chat CSS remains 130,736 B across 8 requests. Startup stays below the original 374,285 B budget.
The earlier auto request was explicitly cancelled before replacing its head. Native replacement recovery used the final successful run and empty post-CI source delta; it did not reuse failed-head evidence or re-arm auto-merge. Merged as
3c53dafb19bb253d1d002d898660dcc5b56f1d77; the native landing-parent audit matched.