Skip to content

improve(ui): adjust session sidebar pagination limits - #186715

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/sidebar-session-pagination
Oct 28, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/sidebar-session-pagination

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

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

  • The rendered-sidebar regression fails on the base (10 instead of 30) and passes with the change.
  • 140 focused tests pass across session rendering, projection memo, and session feedback.
  • Individual runs: session rendering, 112 tests / 5.29 s Vitest duration (6.71 s command wall); projection memo, 18 tests / 2.02 s (3.48 s command wall). Session feedback's unchanged 10 tests also pass. On CI, the existing 112-case rendered-sidebar suite passed in 30.91 s; it also covers owner lifecycle, child sessions, and pins. Projection memo passed in 9.54 s and session feedback in 7.86 s. The full CI run passed on the merged head.
  • UI typecheck and targeted lint/format/diff checks pass. The test-line ratchet passes at 6,301,589 / 6,302,000 lines; its ceiling is unchanged.
  • Independent Codex review found no actionable P0-P2 findings in the implementation or the subsequent test-only CI repair.
  • Before/after images use the same real Control UI renderer with a synthetic Gateway fixture: None shows 10 -> 30; Delivery and Planning each show 10 -> 15.
Mode Before After
None 10 initial sessions 30 initial sessions
Category 10 sessions per group 15 sessions per group

@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 28, 2026
@clawsweeper

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

@vyctorbrzezowski vyctorbrzezowski changed the title improve(ui): show more sidebar sessions before paging improve(ui): adjust session sidebar pagination limits Oct 28, 2026
@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) October 28, 2026 11:46
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 28, 2026
@clawsweeper

clawsweeper Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: Initially shows 10 sessions and reveals 10 more per action.
  • After: Initially shows 30 sessions, reveals 15 more per action, and collapses back to 30.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, owner-directed improvement with directly inspected visual evidence, meaningful regression coverage, and no actionable findings.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after browser screenshots exercise the actual Control UI sidebar renderer against a synthetic Gateway fixture and visibly establish the 30-row ungrouped and 15-row category windows; rendered regression tests support grouping isolation and pending-page handling.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Scanning a long sidebar requires repeated paging because each initial window contains only 10 sessions.
Reason: The maintainer-authored PR and linked request establish direction for this bounded change to designed behavior, and the implementation preserves the existing pagination boundaries.

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
Reviewed head: 9d0b86b9ea30d9410fbd3e7235c3390a797536a7

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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
Loading

Technical review

Best 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

  • Initial windows, increments, and Collapse threshold changes intended behavior with a stated reason (ff6dc43: Bound long histories to keep the sidebar compact while allowing older sessions to be revealed.)
  • Independent section pagination keeps the original intent (44c3ec1: Prevent one section from consuming another section’s display budget and place controls beside their own rows.)
  • Stable projection membership keeps the original intent (7e8412e: Keep displayed rows stable across run-state changes and preserve a single projection owner.)
  • Saved expansion and newer pagination intent keeps the original intent (5b1b96b: Preserve the cached roster and saved expansion through live handoff while allowing newer user choices to take precedence.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +38, Tests +69. Total +107 across 13 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 9 66 28 +38
Tests 4 133 64 +69
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 13 199 92 +107

Review metrics

Metric Value Why it matters
Production versus test growth Production +66/-28 lines; tests and support +133/-64 lines. The net growth supports one shared policy, grouping-aware handoff, and distinct rendered and asynchronous regression cases without introducing another owner.

Labels

Label changes:

  • add P3: This improves sidebar scanning ergonomics; existing in-product pagination already keeps older sessions reachable.
  • 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 🐚 platinum hermit 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:

  • P3: This improves sidebar scanning ergonomics; existing in-product pagination already keeps older sessions reachable.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 28, 2026, 7:59 AM ET / 11:59 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit fcfe9a6 into main Oct 28, 2026
109 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/sidebar-session-pagination branch October 28, 2026 12:00
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

vyctorbrzezowski added a commit that referenced this pull request Oct 28, 2026
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.
shakkernerd added a commit that referenced this pull request Oct 28, 2026
Restore sidebar browser fixtures to the accepted pagination windows while retaining scrolling, resizing, dismissal, ordering, and full-page retention checks.

Refs #186715, #186749.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 29, 2026
* improve(ui): show more sidebar sessions before paging

* test(ui): align sidebar pagination coverage with new limits
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 29, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 29, 2026
…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.
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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: M 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.

Control UI: show more sessions before paging the sidebar

1 participant