Repository navigation
improve(ui): adjust session sidebar pagination limits - #186715
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. What this changesThis PR shows 30 sessions without grouping, 15 per native group, and adds 15 per Show more action while keeping pagination choices separate by grouping. Example: View 61 sessions with Group by None.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR delivers the requested sidebar improvement through existing owners, with no actionable correctness or security findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI sidebar projects Gateway session rows into independently paginated sections; its existing owner handles user expansion, cached restoration, and roster-page completion. flowchart LR
A[Gateway session roster] --> B[Session data owner]
B --> C[Sidebar projection]
D[Grouping pagination policy] --> C
C --> E[Rendered session sections]
E --> F[Sidebar owner actions]
F --> B
G[Saved sidebar snapshot] --> F
Technical reviewBest possible solution: Use the shared pagination policy and existing sidebar owner to deliver larger initial windows with grouping-isolated expansion and restoration. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the 10-row behavior, corroborated by the inspected before screenshots; this review did not execute the application or tests. Is this the best way to solve the issue? The patch is a focused implementation of the maintainer’s requested preference change: one policy serves projection and actions, existing maps retain expansion, and existing lifecycle guards reject stale grouping effects. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4d50f6c26235. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +38, Tests +69. Total +107 across 13 files. Added test files: 0. 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 28, 2026, 7:59 AM ET / 11:59 UTC. |
|
Merged via squash auto-merge.
|
Expand the existing session fixture beyond the new 15-row grouped window and update dependent counts. Keep the Show more, drag-and-drop, collapse, reorder, and reload assertions exercised after #186715.
* improve(ui): show more sidebar sessions before paging * test(ui): align sidebar pagination coverage with new limits
Expand the existing session fixture beyond the new 15-row grouped window and update dependent counts. Keep the Show more, drag-and-drop, collapse, reorder, and reload assertions exercised after openclaw#186715.
…law#186772) Restore sidebar browser fixtures to the accepted pagination windows while retaining scrolling, resizing, dismissal, ordering, and full-page retention checks. Refs openclaw#186715, openclaw#186749.
Closes #186714
What Problem This Solves
The Control UI sidebar shows only 10 sessions initially, requiring repeated paging to scan longer lists.
User Impact
Group by None now starts with 30 sessions; other native groups start with 15 each. Show more adds 15, and Collapse restores that grouping's initial window.
Why This Change Was Made
One pagination policy sets the initial window and keeps expanded limits separate by grouping. Cached sidebar restoration and in-flight page loads preserve that separation when grouping changes.
Risk and coverage
The change stays within native session pagination. Catalog and child-session disclosure limits, ordering, filters, pinned sessions, selection, scrolling, and virtualization retain their existing owners.
The existing pagination test covers all four grouping choices, Show more/Collapse, list exhaustion, and remembered limits. Separate tests protect cached handoff, newer paging choices, independent sections, and grouping changes while a roster page is pending. The CI repair updated stale 10-row expectations and consolidated duplicate pagination coverage, removing 15 test lines without changing production code. Against the merge base, the complete change adds 38 production lines and 69 test lines.
Evidence