Skip to content

fix(ui): make sidebar session pagination global - #126708

Closed
clawsweeper wants to merge 3 commits into
mainfrom
openclaw/sessions-only-show-when-filtered-by-me
Closed

clawsweeper wants to merge 3 commits into
mainfrom
openclaw/sessions-only-show-when-filtered-by-me

Conversation

@clawsweeper

@clawsweeper clawsweeper commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

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 autoreview workflow.

User Impact

Operators can load the next global session page without opening Other. Newly loaded sessions automatically appear under Jesse or their other persisted category, while local group disclosure remains independent of network pagination.

Evidence

Browser flow

The mocked-Gateway browser E2E starts with one Jesse row and 59 ungrouped rows in the first global page. It verifies that:

  1. exactly one Load more sessions control is rendered outside all session sections;
  2. clicking it requests the existing global continuation { offset: 60, limit: 60 } with no category predicate;
  3. the nine appended Jesse rows are regrouped into Jesse, producing ten visible rows when that group is opened; and
  4. the global paginator disappears after the final page.

Two 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

  • Prepared behavior commit 5ceef5189e9896ff5eefca5278c74cfa9a8dceed: node scripts/run-vitest.mjs ui/src/components/app-sidebar.test.ts — 283 tests passed.
  • Prepared behavior commit: 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.
  • Prepared behavior commit: pnpm ui:i18n:verify, pnpm tsgo:ui, and node scripts/check-changed.mjs — passed.
  • Current PR head aa85f6d657495f519fdd24a5582e05bc8f5c5561 has 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.

@clawsweeper

clawsweeper Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@clawsweeper
clawsweeper marked this pull request as ready for review August 20, 2026 15:19
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime size: M maintainer Maintainer-authored PR labels Aug 20, 2026
@clawsweeper

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. 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 Aug 20, 2026
@clawsweeper

clawsweeper Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 27, 2026, 8:54 AM ET / 12:54 UTC.

ClawSweeper review

What this changes

Moves the Control UI sidebar’s global session-page control below all grouped sections so loading another global page no longer requires opening Other.

Regression provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open: this member-authored PR has the protected maintainer label and GitHub reports a merge conflict. The patch is a focused renderer-level repair, but it needs rebasing onto the current session-list rewrite and exact-head browser proof before a landing verdict.

Priority: P1
Reviewed head: aa85f6d657495f519fdd24a5582e05bc8f5c5561
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch and regression design are credible, but merge conflict resolution and proof on the exact integrated head remain necessary.
Proof confidence 🌊 off-meta tidepool Not applicable: The repository context identifies this as a member-authored PR, so the external-contributor proof gate does not apply; the body nevertheless describes a mocked-Gateway browser E2E with captures.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The repository context identifies this as a member-authored PR, so the external-contributor proof gate does not apply; the body nevertheless describes a mocked-Gateway browser E2E with captures.
Evidence reviewed 6 items Renderer owner boundary: The PR renders a single load-more control after all sidebar sections only when the existing global roster has another page.
Caller and callee: The sidebar derives the control’s visibility from the existing session result’s hasMore flag, and the controller continues the existing sidebar refresh with its current status filter.
Behavior regression coverage: The added browser E2E asserts the control is outside sections, verifies the continuation request has offset 60 and limit 60 without a category predicate, then confirms regrouped rows are visible.
Findings None None.
Security None None.

Live Verification

Command: 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

Result: FAIL (failed) — step 1 expect_output 1 passed: expected terminal output was not visible within 30 seconds: "1 passed"

RUN  v4.1.10 /tmp/clawsweeper-live-proof-126708-YjJi6O/target

[vitest] still running with no output for 30000ms (run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/session-management.group-pa
gination.e2e.test.ts --passWithNoTests=false).

Assertions:

  • FAIL expect_output: 1 passed

How this fits together

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

Decision needed

Question Recommendation
Should the current-main single-projection session-list owner absorb this global paginator repair after resolving the branch conflict? Rebase and retain the repair: Resolve the renderer conflict onto current main, then rerun the global-pagination browser E2E on that exact head.

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

  • Resolve merge risk (P1) - GitHub reports the branch as dirty, and the local partial clone could not materialize current-main UI blobs while network resolution was unavailable; the patch has not been proven against the later single-projection session-list rewrite.
  • Complete next step (P2) - A maintainer must choose the conflict-resolution integration path before the focused regression can validate the exact landing head.
Agent review details

Security

None.

PR surface

Source +95, Tests +103. Total +198 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 3 115 20 +95
Tests 1 103 0 +103
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 218 20 +198

Review metrics

Metric Value Why it matters
Production versus test delta production +20/-20 (net 0); tests +198/-0 The renderer relocation is net-neutral while the added component and browser coverage exercises the global continuation and regrouping boundary.

Stored data model

Persistent data-model change detected: serialized state: ui/src/test-helpers/app-sidebar-cases/session-pagination.ts, unknown-data-model-change: ui/src/test-helpers/app-sidebar-cases/session-pagination.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #126701
Summary: This PR is the candidate fix for the open session-group visibility issue; the merged owner-first roster change is an adjacent, explicitly orthogonal improvement.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

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

Labels

Label justifications:

  • P1: Operators can otherwise miss sessions in named sidebar groups until they discover an unrelated pagination route.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The repository context identifies this as a member-authored PR, so the external-contributor proof gate does not apply; the body nevertheless describes a mocked-Gateway browser E2E with captures.

Evidence

What I checked:

  • Renderer owner boundary: The PR renders a single load-more control after all sidebar sections only when the existing global roster has another page. (ui/src/components/app-sidebar-session-list-render.ts:381, aa85f6d65749)
  • Caller and callee: The sidebar derives the control’s visibility from the existing session result’s hasMore flag, and the controller continues the existing sidebar refresh with its current status filter. (ui/src/components/app-sidebar.ts:487, aa85f6d65749)
  • Behavior regression coverage: The added browser E2E asserts the control is outside sections, verifies the continuation request has offset 60 and limit 60 without a category predicate, then confirms regrouped rows are visible. (ui/src/e2e/session-management.group-pagination.e2e.test.ts:79, aa85f6d65749)
  • Current-main rewrite provenance: Current main contains a later session-list ownership rewrite, fix(ui): stabilize the sidebar session list with a single projection owner, making the reported dirty merge state material to this renderer change. (ui/src/components/app-sidebar-session-list-render.ts:381, 7e8412e080e9)
  • Current-main source gap: The checkout resolves current main to cb25a3f, but its promisor blob fetch failed because github.com could not be resolved; exact current-main source equivalence could not be inspected locally. (cb25a3f3bf8f)
  • Related canonical issue: The PR explicitly targets the still-open session-group visibility report, while the merged owner-first roster work identifies itself as orthogonal to global pagination.

Likely related people:

  • Peter Steinberger: Authored the later single-projection session-list rewrite and several recent sidebar grouping and filtering changes. (role: recent session-list owner; confidence: high; commits: 7e8412e080e9, 3ea90bdcdb30, c77feb00f328; files: ui/src/components/app-sidebar-session-list-render.ts, ui/src/components/app-sidebar.ts, ui/src/components/session-data-controller.ts)
  • Jesse Merhi: Authored a recent sidebar session-row change in the same renderer area. (role: recent adjacent UI contributor; confidence: medium; commits: dea053e32f4c; files: ui/src/components/app-sidebar-session-list-render.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Rebase or transplant the behavior onto current main’s single-projection owner.
  • Run the focused Control UI browser E2E on the resolved head and attach or link redacted after-fix output if available.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (6 earlier review cycles)
  • reviewed 2026-08-20T15:43:17.821Z sha ac652ba :: needs maintainer review before merge. :: none
  • reviewed 2026-08-21T13:02:53.959Z sha aa85f6d :: needs maintainer review before merge. :: none
  • reviewed 2026-08-22T14:43:11.377Z sha aa85f6d :: needs maintainer review before merge. :: none
  • reviewed 2026-08-22T14:58:50.711Z sha aa85f6d :: needs maintainer review before merge. :: none
  • reviewed 2026-08-23T14:55:37.502Z sha aa85f6d :: needs maintainer review before merge. :: none
  • reviewed 2026-08-23T15:42:07.364Z sha aa85f6d :: needs maintainer review before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot removed docs Improvements or additions to documentation gateway Gateway runtime labels Aug 21, 2026
@clawsweeper clawsweeper changed the title fix: named session groups omit members beyond global page fix(ui): make sidebar session pagination global Aug 21, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 23, 2026
@VACInc

VACInc commented Sep 1, 2026

Copy link
Copy Markdown
Member

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.

@VACInc VACInc closed this Sep 1, 2026
@RomneyDa
RomneyDa deleted the openclaw/sessions-only-show-when-filtered-by-me branch October 22, 2026 00:24
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 maintainer Maintainer-authored PR P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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.

Bug: named session groups omit members beyond the global roster page

3 participants