Repository navigation
fix(ui): release closed chat panes after queued updates - #147240
Conversation
Track the progress-card controller connection lifecycle so queued Lit updates cannot reacquire a store subscription after disconnect. Reconnect the same host once and preserve normal gateway ownership. Adapts the production fix from 698d838 with a main-compatible real Lit regression. Co-authored-by: vyctorbrzezowski <[email protected]>
|
🦞👀 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. |
Initialize the progress-card controller before direct update hooks, matching its existing disconnect cleanup and preserving the no-request-before-history assertions.
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 2:12 PM ET / 18:12 UTC. ClawSweeper reviewWhat this changesThe PR prevents queued UI updates from restoring progress-card subscriptions after a chat pane closes and adds disconnect/reconnect regression coverage. Merge readiness✅ Ready for maintainer review The repair remains necessary on current main and v2026.9.4, and no actionable patch defect was found. The related Workboard stack remains unmerged; this focused, member-authored PR should remain open. Priority: P2 Review scores
Verification
How this fits togetherControl UI chat panes and dashboard widgets subscribe to a shared progress-card store fed by Gateway requests and events. The controller ties each view’s subscriptions to its connection lifecycle so removed views can be released. flowchart LR
A[Chat pane or dashboard widget] --> B[Connection lifecycle]
B --> C{View connected?}
C -->|Yes| D[Progress-card subscriptions]
E[Gateway requests and events] --> D
D --> F[Progress display]
C -->|No| G[Release subscriptions]
G --> H[Ignore queued updates]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +10, Tests +72. Total +82 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep subscription acquisition and release under the existing controller’s connection lifecycle, preserving one subscription on reconnect. Do we have a high-confidence way to reproduce the issue? Yes, source establishes a clear path: queue an update on a connected host, remove it, then flush the update; current main can reacquire the released listener. The PR reports a failing-base regression, but this read-only review did not execute it. Is this the best way to solve the issue? Yes. The guard repairs the subscription owner directly, follows the existing sibling lifecycle pattern, and preserves reconnect behavior without introducing configuration or another store. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 667069055284. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* commit '28887b564210326174413d0d8ade72b38268d5f3': (1827 commits) fix(qa): bind coverage IDs to producer assertions (#144000) fix(linux): explain FreeBSD desktop setup prerequisites (#147211) fix(memory): split embedding batches rejected for an input array item cap (#139541) test: isolate timing metadata persistence from inherited settings (#147112) refactor(status): retire test-only helper publication (#147071) improve: reduce workspace agent lookup work for large fleets (#147144) refactor(macos): share connect credential selection (#144214) fix(plugins): restore Slack onboarding after core updates (#147109) refactor: share ANSI compatibility matching (#146998) fix(test): settle Models catalog before picker open (#147215) test(ui): reuse panel tab drag fixture (#147250) fix(install): use system Node for FreeBSD CLI setup (#147204) fix(cli): explain MCP probes with no enabled servers (#147216) docs: require UI screenshots in chat and PR (#147263) docs(skills): clarify remote gog OAuth setup for Gateway hosts (#145945) test: replace idle account catalog waits with synchronization (#147228) feat(qa): preserve maturity decision context (#147219) feat(macos): clarify agent activity in native chat (#147197) fix(runtime): complete Bun compatibility follow-ups (#147085) fix(ui): release closed chat panes after queued updates (#147240) ...
) * fix(ui): release closed chat panes after queued updates Track the progress-card controller connection lifecycle so queued Lit updates cannot reacquire a store subscription after disconnect. Reconnect the same host once and preserve normal gateway ownership. Adapts the production fix from 698d838 with a main-compatible real Lit regression. Co-authored-by: vyctorbrzezowski <[email protected]> * test(ui): connect the progress history fixture lifecycle Initialize the progress-card controller before direct update hooks, matching its existing disconnect cleanup and preserving the no-request-before-history assertions. --------- Co-authored-by: vyctorbrzezowski <[email protected]>
What Problem This Solves
Fixes retained chat panes after repeated session-cache eviction or split-pane closure when a queued update runs after disconnect.
User Impact
Closed and evicted panes can release their progress-card subscriptions instead of remaining reachable from the application store. Reconnecting a pane restores one subscription.
Why This Change Was Made
Lit can flush an already queued update after
disconnectedCallback. The progress-card controller now tracks its connection lifecycle, matching the existing subscriptions controller, so that late update cannot reacquire a released store listener.Credit: @vyctorbrzezowski's production fix in 698d838, from #144755. This is a narrow extraction because the source PR is an unrelated unmerged feature stack, and its regression depends on a component absent from main. The original PR and its parents remain untouched. The production hunk is preserved with one lifecycle-invariant comment; the regression uses a real Lit host on main.
Evidence
844c9f4eaefec1a2159ecb2b512a95caf6bef529retain zero retired split-pane or media-pane markers. The three expected cached pane owners stay at three; the live history-image owner and Blob stay at one. These replay the same scenarios and runtime as the originala891c3fb955e129f3baf109b62d5d30a4492ce01capture across different source freezes; the focused RED/GREEN regression supplies the direct causal control.Heap proof covers lifecycle retention. It does not establish deployed Team behavior, end-to-end latency, native GPU memory improvement, or a verified total-process RSS cap.