Skip to content

fix(ui): restore person grouping for multiple session owners - #130326

Merged
steipete merged 3 commits into
mainfrom
codex/fix-sidebar-person-grouping
Aug 26, 2026
Merged

steipete merged 3 commits into
mainfrom
codex/fix-sidebar-person-grouping

Conversation

@steipete

@steipete steipete commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where users with sessions owned by multiple people could not select Group by Person or owner sorting because the menu hid those choices despite already displaying the owners.

Why This Change Was Made

The sidebar and Sessions page used a multi-user flag captured in the Gateway handshake. Session ownership is refreshed separately, so the flag could disagree with the current owner roster. Both controls now use the authoritative session-list owner facet already used for sorting and filtering. An unavailable roster preserves the stored preference; an authoritative single-owner roster keeps the single-owner UI dormant.

This removes the presentation dependency on the handshake without changing sharing policy, authorization, configuration, protocol, or storage. Sorting, grouping, and filtering share the same selected-agent owner roster; production code is four lines smaller. The original gate came from #121470 and was reused by #127346.

User Impact

Users can group and sort by the owners shown in their sessions without reconnecting to refresh an unrelated identity flag. The sidebar and Sessions page agree, and reconnects retain the existing selection while the roster remains available.

Evidence

  • Reproduced five failing owner-boundary assertions before the fix, then passed all five after it.
  • Full sidebar and Sessions-page roster suites: 308 tests passed before rebase, 309 passed on final commit 3fc5606f0dc.
  • Isolated Chromium: the multi-owner stale-flag scenario failed before the fix at the missing Person menu option, then passed after it, including grouping, owner sorting, filtering, and reconnect behavior. On final commit 3fc5606f0dc, three browser scenarios passed: multi-owner controls, involving-me filtering, and single-owner dormancy.
  • Structured Codex autoreview: no actionable findings. Formatting and whitespace checks pass.
  • The screenshots below were captured from the same isolated mocked Gateway scenario using synthetic identities; no personal session data is included.

CI passed on commit 3fc5606f0dca16fbe372f2c57b875a73c0dd282a in run 33008668048. The earlier run caught two file-length lint failures; consolidating duplicate owner-facet selection and browser menu actions fixed both without weakening assertions or lint rules. Targeted lint, formatting, and a fresh structured review pass are clean.

An additional remote repeat after rebasing failed during synchronization before tests started; the rebased unit suites were then rerun successfully in the managed PR checkout. A separate source-blind image review was unavailable, so the screenshots were inspected manually alongside the passing Chromium interactions.

The local changed-check run passed its first 15 guards, then stopped in test typechecking because the dependency-less managed worktree resolved an ancestor's transitive pako 1.0.11 instead of the UI package's declared 3.0.1. No dependency files differ in this PR. The exact-head CI check-test-types, check-prod-types, and checks-ui jobs all pass with the proper workspace install.

Before: multiple owners are visible but Person grouping and owner sorting are missing

After: the same owners expose Person grouping and owner sorting

Use the live session-owner roster for Person grouping and People sorting instead of the connection-time identity policy. Preserve preferences while the roster is unknown and retain single-owner dormancy across sidebar and Sessions page.
@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Aug 26, 2026
@steipete steipete self-assigned this Aug 26, 2026
@steipete
steipete marked this pull request as ready for review August 26, 2026 19:50
@steipete
steipete merged commit d9b4133 into main Aug 26, 2026
132 checks passed
@steipete
steipete deleted the codex/fix-sidebar-person-grouping branch August 26, 2026 20:28
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 27, 2026
…w#130326)

* fix(ui): restore person grouping for multiple session owners

Use the live session-owner roster for Person grouping and People sorting instead of the connection-time identity policy. Preserve preferences while the roster is unknown and retain single-owner dormancy across sidebar and Sessions page.

* docs(ui): match the owner sorting label

* refactor(ui): reuse session owner and menu selection paths
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 docs Improvements or additions to documentation maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant