Repository navigation
fix(ui): show active work beyond the first history page - #146207
Conversation
|
🦞👀 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: needs maintainer review before merge. Reviewed September 12, 2026, 2:32 PM ET / 18:32 UTC (Revision 3). ClawSweeper reviewWhat this changesThe System busyness overlay uses the Gateway’s current-work listing to display the total active-session count and a bounded list, with browser regression coverage and updated documentation. Merge readiness✅ Ready for maintainer review This repair remains necessary: current main and the latest release retain the first-page counting defect. The focused patch and inspected browser evidence support landing; no actionable correctness or security findings remain. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI’s System busyness overlay periodically requests diagnostics from the connected Gateway. The Gateway selects visible running or queued sessions, and the overlay displays their count and identifiers. flowchart LR
A[Operator opens overlay] --> B[Current-work request]
B --> C[Gateway visibility and activity selection]
C --> D[Total count and bounded page]
D --> E[Active count and session IDs]
E --> F[Periodic refresh]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -3, Tests +74, Docs +1. Total +72 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep activity selection and visibility in the Gateway, and let the overlay display its authoritative total with a clearly bounded session list. Do we have a high-confidence way to reproduce the issue? Yes: place running sessions behind 100 newer idle history rows and open System busyness. Current source establishes the failure, and supplied paired browser evidence demonstrates it; this review did not execute a new reproduction. Is this the best way to solve the issue? Yes: consuming the existing current-work query removes the faulty client-side selection while preserving Gateway ownership, pagination, and visibility checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b205bf5db003. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
Use the Gateway current-work query and total count in the System busyness overlay. Preserve bounded rows and show when more are active. Removes the client history filter and partial session type (production net -3). Paired browser regression, sibling tests, UI build, changed checks, and independent review passed.
cfd14ec to
5f56136
Compare
|
Merged via squash.
|
) Use the Gateway current-work query and total count in the System busyness overlay. Preserve bounded rows and show when more are active. Removes the client history filter and partial session type (production net -3). Paired browser regression, sibling tests, UI build, changed checks, and independent review passed.
What Problem This Solves
Fixes an issue where operators checking System busyness could see no active work while older sessions were still running. The Debug overlay only examined the first page of session history, which could contain entirely idle sessions.
Why This Change Was Made
The overlay now uses the Gateway's existing current-work query, matching Activity's running and queued session selection, including archived and global sessions. It uses the returned total count and labels the bounded list when more than 100 sessions are active. This removes the client-side history filter and its partial session type; the Gateway continues to own visibility, activity selection, and pagination.
Production: +11/-14, net -3 lines. Tests: net +74. Docs: +1. No configuration, protocol, persistence, or permission changes.
User Impact
Operators can see the full current-work count without paging through session history. The overlay lists the first 100 session IDs, displays “Showing 100 of 101” when appropriate, and clears both the list and notice when work ends.
Evidence
The existing Debug browser E2E now seeds 100 newer idle sessions and 101 older active sessions, including global, unknown, archived, and queued rows. On the unchanged baseline, the real rendered overlay showed 0 active and the test failed. After the repair, it shows 101 active, exactly 100 IDs, and the pagination notice; the subsequent empty refresh shows 0 active with no stale rows or notice.
The current-work domain intentionally follows the Gateway's existing session listing, including its exclusion of isolated cron-run history rows.
CI follow-up: the first run hit an unrelated Gateway shard headroom failure. Landed PR #146212 repaired the partition without relaxing limits. After a patch-identical rebase, CI run 34708830042 passed on
5f56136f23789cc843c16ceedce7502654125f26. Its actual test logs include all nine active-list and seventeen projection/performance cases, covering the newer Gateway implementation.