Repository navigation
fix(ui): make sidebar session pagination global - #126708
clawsweeper wants to merge 3 commits into
Conversation
Co-authored-by: jesse-merhi <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Co-authored-by: jesse-merhi <[email protected]>
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 27, 2026, 8:54 AM ET / 12:54 UTC. ClawSweeper reviewWhat this changesMoves the Control UI sidebar’s global session-page control below all grouped sections so loading another global page no longer requires opening Other. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessKeep open: this member-authored PR has the protected Priority: P1 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherThe Control UI fetches a paginated session roster from the Gateway, groups loaded rows for the sidebar, and renders local group disclosure separately. This PR relocates the network-page action outside those presentation groups. flowchart LR
A[Gateway session roster] --> B[Global pagination state]
B --> C[Sidebar grouping]
C --> D[Named session sections]
C --> E[Other section]
C --> F[Global load-more control]
F --> B
Decision needed
Why: The protected maintainer label and a conflicting branch require a maintainer to choose the integration path; source equivalence on current main could not be verified from this partial clone. Before merge
Agent review detailsSecurityNone. PR surfaceSource +95, Tests +103. Total +198 across 4 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Reapply the global paginator at the current session-list projection boundary, preserve the existing global continuation request, and rerun the focused browser regression on the integrated head. Do we have a high-confidence way to reproduce the issue? Yes—source and the added deterministic browser scenario establish that a globally paginated roster can put category rows beyond the first page while the old control was owned by Other. Is this the best way to solve the issue? Yes at the PR head: the paginator belongs to the global roster owner, while group disclosure remains presentation-only; the unresolved question is applying it cleanly to the newer current-main projection owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against cb25a3f3bf8f. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
Co-authored-by: jesse-merhi <[email protected]>
|
Superseded by #131202, landed in dfa21af9d7b9. That repair implements the same central invariant this PR targets: pagination belongs to the complete sidebar roster, outside individual presentation groups. It also unifies the roster limit, keeps one visible global continuation, advances grouped disclosure when a new page arrives, and includes the out-of-page category regression coverage. #126701 remains open only for the separate maintainer decision about whether independent per-category queries are still desired. This conflicting implementation is no longer the canonical fix, so I am closing it unmerged. |
Closes #126701
What Problem This Solves
The Control UI loads sessions through one globally filtered, paginated roster and then groups the loaded rows for display. The shared next-page control was rendered inside Other, so operators had to expand an unrelated section to load sessions that ultimately belonged in named groups such as
Jesse.Why This Change Was Made
The sidebar now renders one Load more sessions control below the complete grouped roster. It advances the existing global session page; appended rows then flow through the existing grouping projection and appear in their persisted groups.
Per-section Show more remains presentation-only and reveals already-loaded rows. No category query, protocol field, storage change, or parallel request path is added.
Production LOC: +20/-20 (net 0) | Tests: +198/-0.
AI-assisted: yes. The implementation, focused regression tests, browser flow, and publication commit were reviewed with the repository
autoreviewworkflow.User Impact
Operators can load the next global session page without opening Other. Newly loaded sessions automatically appear under
Jesseor their other persisted category, while local group disclosure remains independent of network pagination.Evidence
Browser flow
The mocked-Gateway browser E2E starts with one
Jesserow and 59 ungrouped rows in the first global page. It verifies that:{ offset: 60, limit: 60 }with no category predicate;Jesserows are regrouped intoJesse, producing ten visible rows when that group is opened; andTwo screenshots from this flow were inspected locally. Public attachment upload was unavailable under the current external-payload authorization, so obsolete screenshots from the superseded category-query design were removed rather than reused.
Validation
5ceef5189e9896ff5eefca5278c74cfa9a8dceed:node scripts/run-vitest.mjs ui/src/components/app-sidebar.test.ts— 283 tests passed.OPENCLAW_CAPTURE_UI_PROOF=1 node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/session-management.group-pagination.e2e.test.ts— browser E2E passed; both captures inspected.pnpm ui:i18n:verify,pnpm tsgo:ui, andnode scripts/check-changed.mjs— passed.aa85f6d657495f519fdd24a5582e05bc8f5c5561has the same stable patch ID as the prepared behavior commit..agents/skills/autoreview/scripts/autoreview --mode commit --commit aa85f6d657495f519fdd24a5582e05bc8f5c5561— clean; no accepted/actionable findings (patch is correct, confidence 0.98).Pre-fix regression proof: the global continuation was reachable only through Other. The replacement test fails when the paginator is section-owned and passes only when it is global and appended rows are regrouped.