Skip to content

improve(ui): make empty-group visibility explicit and personal - #147392

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/auto-enable-filter-mode-settings-safely
Sep 13, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/auto-enable-filter-mode-settings-safely

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • 464 focused sidebar, projection, and preference-controller tests passed. The menu-choice regression fails on the original checkbox implementation and passes with the change.
  • Eight Chromium production-bundle scenarios passed across the empty-group and existing owner-picker suites: personal filters, explicit overrides, keyboard navigation, large owner rosters, RTL, narrow-screen Back, selection, and reload. Geometry checks prevent clipping/overlap and preserve the established compact width.
  • Hosted CI caught a compact owner-picker width regression. The follow-up limits widening to desktop and stacks this preference’s value in compact mode; the unchanged sibling regression now passes.
  • UI and core-test typechecks, i18n, changed-file guards, and final targeted lint/style checks passed. The initial changed-check run found the controller line limit; a type-only host-contract split resolves it, with no suppression.
  • Independent P0–P2 autoreview found no actionable defects in the feature or the compact-width follow-up. The host-contract extraction is type-only and passed UI typecheck and lint.
  • Screenshots use the real Control UI with isolated synthetic Gateway data; no live user data or settings were changed.

Before

Before: full session menu with the ambiguous Hide empty groups checkbox

After

After: full session menu with a personal empty-group policy and three-choice flyout

Narrow screen

Compact menu keeps the label and current choice readable

Narrow-screen empty-group choices with Back

Worked on by @steipete and @vincentkoc.

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]>
@clawsweeper

clawsweeper Bot commented Sep 13, 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.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 13, 2026 20:38
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: L maintainer Maintainer-authored PR labels Sep 13, 2026
@clawsweeper clawsweeper Bot added 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. labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 5:04 PM ET / 21:04 UTC (Revision 2).

ClawSweeper review

What this changes

The 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
Reviewed head: 949e785c26879f553e39af921b5d12a80be0f390

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with clear visual proof, meaningful migration coverage, and no identified blocking defect.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The inspected before/after Control UI screenshots directly show the new desktop choices and readable compact drill-in menu; reported Chromium scenarios supplement them with selection, filtering, and reload coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The inspected before/after Control UI screenshots directly show the new desktop choices and readable compact drill-in menu; reported Chromium scenarios supplement them with selection, filtering, and reload coverage.
Evidence reviewed 8 items Current main still needs the requested capability: Current main independently hides zero-match sections under personal filters and hides empty custom groups under a boolean preference; it does not provide the Never override.
Existing documented behavior: Main documents automatic filtered hiding even when the existing checkbox is off, matching the limitation described by the paired request.
Preference ownership and migration: The controller scopes choices by normalized Gateway URL and resolved user, preserves identity during transport retries, retires changed connections, and adopts the legacy boolean once. Tests cover both legacy values, user/Gateway separation, reconnects, stale actions, and denied storage.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Source +182, Tests +248, Docs +6. Total +436 across 18 files.

View PR surface stats
Area Files Added Removed Net
Source 12 342 160 +182
Tests 5 259 11 +248
Docs 1 8 2 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 18 609 173 +436

Review metrics

Metric Value Why it matters
Preference transition 1 boolean becomes 3 modes; 1 legacy migration The PR explicitly documents how existing choices transfer into user-and-Gateway-scoped browser storage.
Production versus test growth Production +182 lines; tests and test support +248 lines Production growth supports scoped preference ownership and menu choices, while coverage exercises migration, filtering, and compact layout.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #147356
Summary: This PR implements the explicitly paired personal empty-group display request; the issue remains open pending resolution of the PR.

Members:

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

Technical review

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

Labels

Label justifications:

  • P3: This is a bounded sidebar usability improvement with no change to session access, execution, or message delivery.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The inspected before/after Control UI screenshots directly show the new desktop choices and readable compact drill-in menu; reported Chromium scenarios supplement them with selection, filtering, and reload coverage.
  • proof: sufficient: Contributor real behavior proof is sufficient. The inspected before/after Control UI screenshots directly show the new desktop choices and readable compact drill-in menu; reported Chromium scenarios supplement them with selection, filtering, and reload coverage.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The inspected before/after Control UI screenshots directly show the new desktop choices and readable compact drill-in menu; reported Chromium scenarios supplement them with selection, filtering, and reload coverage.

Evidence

What I checked:

  • Current main still needs the requested capability: Current main independently hides zero-match sections under personal filters and hides empty custom groups under a boolean preference; it does not provide the Never override. (ui/src/components/app-sidebar-session-projection.ts:209, edde862d16b2)
  • Existing documented behavior: Main documents automatic filtered hiding even when the existing checkbox is off, matching the limitation described by the paired request. Public docs: docs/web/control-ui/sessions-and-sidebar.md. (docs/web/control-ui/sessions-and-sidebar.md:105, edde862d16b2)
  • Preference ownership and migration: The controller scopes choices by normalized Gateway URL and resolved user, preserves identity during transport retries, retires changed connections, and adopts the legacy boolean once. Tests cover both legacy values, user/Gateway separation, reconnects, stale actions, and denied storage. (ui/src/components/sidebar-empty-groups-controller.ts:50, 949e785c2687)
  • Presentation boundary: Preference reconciliation runs before the sidebar caches its projected sections. The projection filters empty headings, leaves populated sections intact, excludes catalog placeholders from this policy, and preserves explicitly supplied team-mode sections. (ui/src/components/app-sidebar-session-navigation.ts:245, 949e785c2687)
  • Inspected visual proof: Inspected all four downloaded PR-body images: the former checkbox, the desktop three-choice flyout, the compact stacked label/value, and the compact choices with Back. They visibly demonstrate the changed menu in the real Control UI with synthetic data. The body additionally reports eight Chromium production-bundle scenarios and 464 focused tests; these were not rerun during this read-only review. (949e785c2687)
  • Paired request and review continuity: The supplied body explicitly links the open same-author request Personal empty-group display policy in the session sidebar #147356. The previous completed review recorded no findings or published rank-up moves. The current body explains the subsequent compact-width correction and retains before/after proof. (949e785c2687)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vyctor H. Brzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 (1 earlier review cycle)
  • reviewed 2026-09-13T20:46:08.771Z sha d2c2b14 :: needs maintainer review before merge. :: none

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]>
@roboclaw-bot
roboclaw-bot merged commit aabd6b4 into main Sep 13, 2026
129 of 131 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/auto-enable-filter-mode-settings-safely branch September 13, 2026 21:41
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
…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]>
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 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: L 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.

Personal empty-group display policy in the session sidebar

1 participant