Repository navigation
improve(ui): make empty-group visibility explicit and personal - #147392
Conversation
Keep automatic personal filtering separate from the saved display choice, scope browser preferences by user and Gateway, and expose When filtering / Always / Never in the existing menu. Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]>
|
🦞👀 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. Reviewed September 13, 2026, 5:04 PM ET / 21:04 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR replaces the sidebar’s empty-group checkbox with three browser-local choices scoped by user and Gateway, migrates existing preferences, and adds desktop and compact-menu coverage. Merge readiness✅ Ready for maintainer review This remains a useful implementation of the linked request; current main still has the ambiguous checkbox behavior. No blocking correctness or security defect was found, and the inspected visual evidence supports the menu changes. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI sidebar groups sessions returned by the Gateway after applying session filters. This preference controls whether empty section headings appear, without changing session access or group membership. flowchart TD
A[Gateway identity] --> B[Personal browser preference]
C[Legacy browser choice] --> B
D[Filter and sort menu] --> B
E[Filtered session rows] --> F[Sidebar section projection]
B --> F
F --> G[Visible groups and sessions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +182, Tests +248, Docs +6. Total +436 across 18 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep one personal visibility policy in the existing menu, with explicit legacy migration and section rendering derived independently from session filtering. Do we have a high-confidence way to reproduce the issue? Not applicable as a new display-policy option; current-main source and documentation establish the existing checkbox limitation. Is this the best way to solve the issue? Yes. Reusing the existing menu and consolidating visibility under one scoped preference avoids competing controls and preserves session filtering. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against edde862d16b2. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Stack the empty-group choice below its label in compact menus, preserving the existing owner-picker width and keyboard layout. Cover clipping and the unchanged sibling owner-roster constraint. Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]>
|
Merged via squash.
|
…law#147392) * improve(ui): make empty-group visibility explicit and personal Keep automatic personal filtering separate from the saved display choice, scope browser preferences by user and Gateway, and expose When filtering / Always / Never in the existing menu. Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]> * fix(ui): retain compact owner-menu width Stack the empty-group choice below its label in compact menus, preserving the existing owner-picker width and keyboard layout. Cover clipping and the unchanged sibling owner-roster constraint. Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]> --------- Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]>
Closes #147356
What Problem This Solves
The sidebar could hide empty groups while its checkbox was off, without explaining the automatic behavior or offering a personal override.
User Impact
The existing Hide empty groups row now shows When filtering, Always, or Never. Choices are personal to the signed-in user and Gateway in this browser; filter changes never rewrite them. Narrow screens use an in-menu choice list with Back.
An existing browser choice is adopted once by the first resolved viewer: on becomes Always, and off becomes When filtering. Other viewers do not inherit it. Preferences remain browser-local, not cross-device. Session access, group membership/order, catalogs, and team-mode agent groups are unchanged.
Why This Change Was Made
One explicit policy replaces the independent checkbox and automatic-filter hiding branches. The preference owner restores the right user before sidebar projection, distinguishes reconnects from account/connection changes, and rejects retired-menu writes. The existing submenu layout is reused; the menu host type contract is separated without a new lint suppression.
Evidence
Before
After
Narrow screen
Worked on by @steipete and @vincentkoc.