Repository navigation
fix: Activity running counts stay at zero as work starts - #172907
Conversation
Refresh whole-roster totals for unknown session events and keep running-badge visibility reactive. Cover unseen rows, zero transitions, and real Gateway lifecycle events. Co-authored-by: steipete <[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. |
Reuse the independently reviewed planner-only repair from 478a40024202a8e44f371a89fca0f61d796d0942. Keep strict fixed-input parallelism and worker capacity proof while avoiding a full-inventory-dependent job count. Co-authored-by: VACInc <[email protected]> Co-authored-by: steipete <[email protected]>
Co-authored-by: steipete <[email protected]>
|
Codex review: needs maintainer review before merge. What this changesThis PR refreshes whole-roster counts for unseen session changes, makes running badges reactive, and stabilizes a CI capacity test. Example: Test Person has 13 open conversations, and 12 conversations outside the loaded agent begin running.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR fixes a current Activity count bug with inspected before/after screenshots and focused regression coverage; no actionable patch defects were found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway session events enter the Control UI's managed-list reconciler, which schedules authoritative aggregate reads; the sidebar count adapter supplies those totals to reactive person badges. flowchart LR
A[Gateway session events] --> B[Managed list reconciler]
B --> C[Shared refresh coordinator]
C --> D[Gateway sessions list]
D --> E[Owner count adapter]
E --> F[Reactive person badges]
Technical reviewBest possible solution: Land the count repair using the native handling for the independently verified inherited CI failure. Do we have a high-confidence way to reproduce the issue? Current-main source retains both failure paths, and supplied before/after browser evidence supports the reported scenario; no target code was executed during this review. Is this the best way to solve the issue? The patch repairs both owning boundaries directly while preserving authoritative Gateway totals, known-row fast paths, and shared refresh pacing. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a065e6a28257. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +3, Tests +392. Total +395 across 7 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 15, 2026, 4:21 AM ET / 08:21 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Keep the independent resource-ownership expectations aligned with the real-Gateway test added by #172907. Assert its existing serial phase, single worker, and disabled file parallelism; production routing is unchanged. The full ownership guard now passes all 13 cases, compared with three failures before this correction.
…2907) * fix: Activity running counts stay at zero as work starts Refresh whole-roster totals for unknown session events and keep running-badge visibility reactive. Cover unseen rows, zero transitions, and real Gateway lifecycle events. Co-authored-by: steipete <[email protected]> * test: decouple selected capacity proof from live inventory Reuse the independently reviewed planner-only repair from 478a40024202a8e44f371a89fca0f61d796d0942. Keep strict fixed-input parallelism and worker capacity proof while avoiding a full-inventory-dependent job count. Co-authored-by: VACInc <[email protected]> Co-authored-by: steipete <[email protected]> * test: supply timestamp in owner count fixture Co-authored-by: steipete <[email protected]> --------- Co-authored-by: steipete <[email protected]>
Keep the independent resource-ownership expectations aligned with the real-Gateway test added by openclaw#172907. Assert its existing serial phase, single worker, and disabled file parallelism; production routing is unchanged. The full ownership guard now passes all 13 cases, compared with three failures before this correction.
What Problem This Solves
Fixes: Activity can show zero running sessions after a person's work starts outside the loaded session page or agent.
User Impact
User impact: running-session badges appear as work starts and disappear when it finishes, without reloading Activity. Open-session totals also refresh when unseen sessions are archived. No configuration or migration is required.
Why This Change Was Made
Whole-roster totals cannot use a sampled page's exclusion proof when the previous row is unknown. Those events now request the existing coalesced refresh. A separate untracked condition in the person-row renderer also kept a badge initially at zero from appearing; it now uses a reactive visibility boundary. Known-row fast paths and bounded refresh pacing are preserved.
CI also exposed a selected-runner test that depended on unrelated full-inventory packing. The existing planner-only repair moves its strict parallel-capacity proof to fixed inputs across both backends, preserving coverage, runner mapping, worker limits and wall-time budgets. No production CI capacity policy changes are included.
Reported by and implemented for @steipete. CI fixture repair reused from the independently verified planner fix, with credit to @VACInc.
Work sessions
Evidence
38703068512: all selected jobs passed except the inherited Windows partition-overlap assertion and its aggregate gate. The failing test, Windows command lists, and planner inputs are unchanged from CI’s main parent; pinned main planner execution reproduces the same tooling/infra/plugins overlap. This is qualified for native inherited-failure admission, not reported as green CI. Full baseline Vitest startup was blocked by local dependency/compiler preparation; the baseline evidence is the directly executed planner boundary.Before
After