Skip to content

fix: Activity running counts stay at zero as work starts - #172907

Merged
roboclaw-bot merged 3 commits into
mainfrom
openclaw/tender-krill
Oct 15, 2026
Merged

roboclaw-bot merged 3 commits into
mainfrom
openclaw/tender-krill

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Real Gateway + Chromium: reproduced the zero count on the base, then verified 0 → 12 running → 0, with 13 open sessions, after the fix. Uses real runtime execution claims and lifecycle events; no mocked count responses or model inference.
  • Component regression: reproduced the missing badge while the accessible count had updated; verified appearance/removal without remounting the person row.
  • 51 focused tests passed, including unseen-session start, finish, and archive transitions.
  • UI typecheck, targeted lint (0 warnings/errors), and formatting passed.
  • 171 planner/capacity tests passed after the CI fixture repair; root-test typecheck, targeted lint and formatting passed. The initial CI run failed the inventory-dependent assertion; this repair retains strict parallel-capacity checks with fixed inputs rather than changing production policy.
  • Independent P0–P2 reviews of the count fix and CI fixture repair: no actionable findings.
  • Full CI caught a missing timestamp in the new test fixture; corrected it and passed the exact UI-test typecheck, all 32 roster-event tests, targeted lint, and formatting.
  • Exact-head CI run 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

Before: twelve running sessions missing from Activity

After

After: Activity shows twelve running sessions

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]>
@clawsweeper

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

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 15, 2026 07:39
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]>
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 15, 2026 07:57
@roboclaw-bot
roboclaw-bot disabled auto-merge October 15, 2026 08:02
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 15, 2026
@clawsweeper

clawsweeper Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: The sidebar shows 13 open conversations without a running badge.
  • After: The sidebar shows 12 running conversations and removes that badge when work finishes.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, focused production repair with direct visual evidence and meaningful regressions; the remaining CI failure is independently inherited.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected screenshots show the changed sidebar displaying 12 running and 13 open sessions after the fix; the supplied Chromium/real-Gateway scenario traces lifecycle events through production count owners and verifies 0 → 12 → 0.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Activity can conceal running conversations and retain stale open totals when changes occur outside its sampled session page.
Reason: The collaborator-authored repair restores existing count behavior without adding settings, changing defaults, or introducing another state owner.

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

Before merge

None.

Findings

None.

Agent review details

How this fits together

Gateway 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]
Loading

Technical review

Best 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

  • Whole-roster count reconciliation keeps the original intent (69b2627: Reuse certified row facts and avoid redundant aggregate reads when contributions are unchanged; the new guard preserves that optimization only where the prior contribution is known.)
  • Running badge visibility keeps the original intent (e80558a: The sidebar migration preserved existing workload badges in Solid 2; the later Users filter change carried the condition forward, and this PR restores its reactive behavior.)
  • Selected CI capacity assertions keeps the original intent (dae49e5: Assert runner capacity according to retained concurrency; this PR removes inventory-dependent placement assumptions while strengthening the existing fixed-input parallel-capacity test.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 69b2627 adds ui/src/lib/sessions/session-list-query.ts:93 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 69b262734d2c; files: ui/src/lib/sessions/session-list-query.ts)

PR surface

Source +3, Tests +392. Total +395 across 7 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 2 25 22 +3
Tests 5 457 65 +392
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 482 87 +395

Review metrics

Metric Value Why it matters
Production versus test changes Production +25/-22 lines; tests and test inventory +457/-65 lines. The larger test delta covers distinct aggregate invalidation, retained DOM visibility, real Gateway delivery, and planner capacity contracts.

Labels

Label changes:

  • add P2: Incorrect Activity counts obscure running work but do not prevent execution or lose session data.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster 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:

  • P2: Incorrect Activity counts obscure running work but do not prevent execution or lose session data.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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 15, 2026, 4:21 AM ET / 08:21 UTC.

@roboclaw-bot
roboclaw-bot merged commit 372d648 into main Oct 15, 2026
115 of 118 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/tender-krill branch October 15, 2026 10:19
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

steipete added a commit that referenced this pull request Oct 15, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
…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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
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.
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 P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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