Skip to content

refactor(ui): own progress card subscriptions in Solid - #174247

Merged
steipete merged 6 commits into
mainfrom
solid2/w-idiom2-chat-progress
Oct 16, 2026
Merged

steipete merged 6 commits into
mainfrom
solid2/w-idiom2-chat-progress

Conversation

@steipete

@steipete steipete commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

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

Check Result
Progress projection, accepted-history progress, mounted bridge tests All 24 cases passed after the final main integration
pnpm tsgo:ui Passed
Scoped lint, formatting, git diff --check Passed
Production Knip Passed
Independent Codex review, P0–P2 No actionable findings
After integrating current main and the locale/poll cut 18 mounted bridge and progress-history tests passed; typecheck and scoped lint passed
Full UI, browser-extension and real-Gateway suites Passed: final-head ci:full run 38922703041, attempt 1

The 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; createEffect 2 → 4 (the two external subscription bindings described above); untrack 1 → 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 e276fad49e654768af3e3f1bb50889d62122a8eb passed 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.

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.
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T15:21:45.989426Z e276fad New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: Host lifecycle callbacks managed subscriptions and card lifetime tracking.
  • After: The Solid-owned subscription observes the reset while parked and displays the new card lifetime after reveal.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused cutover is source-consistent and has useful mounted coverage; changed-path shipped-entry-point evidence is not supplied, and broad CI is still running.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored internal refactor is outside the ordinary contributor proof gate; supplied mounted tests exercise the production store and projections with fixture transports, and no changed-path live trace is supplied.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Progress-card rendering consumers still depended on a redundant host-driven lifecycle adapter after their Solid migration.
Reason: The maintainer-authored direction matches the repository's controller-retirement policy, reduces production code, and preserves existing user behavior.

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
Reviewed head: b4c5c3a2686781a00cbab7627b75a5a586695fea

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No supplied shipped-browser trace exercises chat and board subscription replacement, parked reset, reveal, and disposal; the new cases are preservation coverage without demonstrated base-fail/head-pass evidence.
Agent review details

How this fits together

The 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
Loading

Technical review

Best 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

  • Progress-card store and controller keeps the original intent (7170a62: Unify fragmented status into one durable session progress artifact; this PR retains that authoritative store and removes only its rendering adapter.)
  • Disconnect cleanup keeps the original intent (cbfe536: Prevent queued host updates from reacquiring released subscriptions after disconnect, adapting prior work credited to @vyctorbrzezowski.)
  • Shared progress projection keeps the original intent (da8802b: Restore thin projections required by already-landed Solid consumers after an unused-adapter cleanup removed them.)
  • Cached history hydration keeps the original intent (cc7bd7b: Make saved progress available with cached transcripts before live reconciliation changes layout; hydration still reaches the same store synchronously.)
  • Local dismissal and shared clear keeps the original intent (4e529ba: Keep X local to the pane while retaining an explicit revision-checked shared clear action; both contracts remain.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 6c444b6 adds ui/src/pages/chat/chat-pane-runtime-view.tsx:29 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6c444b632d80; files: ui/src/pages/chat/chat-pane-runtime-view.tsx)

PR surface

Source -38, Tests +140. Total +102 across 11 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 9 231 269 -38
Tests 2 259 119 +140
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 490 388 +102

Review metrics

Metric Value Why it matters
Production versus test LOC Production −38 lines; tests +140 lines Controller removal reduces production code; test growth adds cache-handoff and parked-reset cases and migrates history assertions to the mounted view.

Labels

Label changes:

  • add P3: This is a behavior-preserving lifecycle refactor with no established urgent user-facing defect.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a behavior-preserving lifecycle refactor with no established urgent user-facing defect.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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.

Reviewed October 16, 2026, 9:59 AM ET / 13:59 UTC.

@steipete
steipete enabled auto-merge (squash) October 16, 2026 14:02
@steipete
steipete disabled auto-merge October 16, 2026 14:06
@steipete
steipete merged commit 3c53daf into main Oct 16, 2026
89 checks passed
@steipete
steipete deleted the solid2/w-idiom2-chat-progress branch October 16, 2026 15:39
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with prior CI and scoped validation.

obviyus added a commit that referenced this pull request Oct 17, 2026
…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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
* 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
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
…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]>
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 ci:full Keep ordinary native-locale CI selection on the next PR run. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant