Skip to content

fix(ui): clarify sidebar agent selection and roster actions - #150587

Merged
roboclaw-bot merged 10 commits into
mainfrom
fix/sidebar-agent-menu-copy
Oct 5, 2026
Merged

roboclaw-bot merged 10 commits into
mainfrom
fix/sidebar-agent-menu-copy

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

Closes #150458
Closes #150461
Closes #150463
Closes #150466
Closes #150469

Follow-up of #141476 by @steipete. The Show all avatar design was refined with @vyctorbrzezowski.

Work sessions

What Problem This Solves

Makes the sidebar's agent selection and navigation actions easier to distinguish, without losing main-chat status or recovery controls when viewing all agents.

User Impact

Choose Show all to show agents together in the sidebar; choose a named agent to return to that agent. See all agents opens the Agents page instead of changing the sidebar view. The capabilities and settings actions name their target agent, and Help stays in the account menu.

The Show all tile appears only with multiple agents. It uses their own image, emoji, or generated fallback avatars, with no background circle: two overlap diagonally; three or four use a two-column grid; five or more show three avatars plus the remaining count.

Why This Change Was Made

Both sidebar modes now use the same selector and actions. The workspace mark has the same spacing as the agent identity. Agent headers retain main-chat metadata on a wrapping second row, keeping names and actions readable on touch as well as desktop. Their options menu uses the standard menu surface and icons.

The integration preserves current main's Home projection, memoization, pinned Pages, hidden-run child discovery, and per-parent Retry. Filtered Home metadata uses that existing projection rather than a parallel state map. Displayed main worktrees are included in the live PR watcher, so their badges update without opening their chats. Owner/status filters hide metadata without removing agent navigation, and quiet headers do not gain an empty metadata row.

Evidence

Before is current main at 76922aba447e1e; After is the integrated PR at 455c3d7925c946. These are fresh main-versus-PR captures, not prior PR iterations. Both use the real Control UI with the same synthetic agents, 1200 × 850 viewport, light theme, and matching interaction state; crops show the relevant sidebar/menu context.

Agent menu — five agents

Before — current main After — PR
Before current main: five-agent menu After PR: Show all grouped avatars

Roster — main-chat status

Before — current main After — PR
Before current main: roster headers After PR: roster metadata and controls
Two-agent overlap
Before — current main After — PR
Before current main: two-agent menu After PR: two overlapping agent avatars
  • 315 focused tests passed on the current integration across sidebar people/roster, session navigation/plugin menus, Home memoization, passive PR indicators, and session-tree behavior (32.69 s Vitest; 37.20 s wrapper).
  • 10 bundled UI E2E scenarios passed on the current integration, including keyboard scope changes, image avatars, scaled long labels, and mouse/touch metadata geometry (39.37 s).
  • Prior unchanged-path proof: six Chromium layout tests (2.38 s), three roster event-scope E2E scenarios (37.79 s), and 38 browser tests across nine affected caller suites (63.00 s). No scenarios were dropped during caller migration.
  • UI production types and the full committed-head changed-file gate passed. A fresh independent review of the complete delta against main reported no actionable P0–P2 findings.
  • Current-head CI passed: run 37248223503 at 455c3d7925c9466d0ea6c3bf20e5512bf34ccc6b. While landing was interrupted, main introduced one export conflict; this verified integration retains both the agent-focus helper and main's plugin-navigation renderer.

The test audit consolidates duplicated action/roster setup and repeated keyboard-focus assertions; it keeps the distinct image-loading, same-agent selection, child recovery, and touch-layout scenarios. The obsolete monolithic sidebar test entrypoint stays removed; the cases run through current main's split owners.

Risk and coverage

The affected contracts are agent/sidebar scope, Home metadata filtering and memo invalidation, live PR snapshots, child recovery, and keyboard focus. The previously reported missing per-agent Retry and stale main-worktree PR badge paths are covered by the integrated owner-boundary tests.

This changes UI presentation and navigation only. It adds no Gateway API, configuration schema, persisted state, or migration.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Sep 17, 2026
@clawsweeper

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: XL labels Sep 17, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 4, 2026, 8:44 PM ET / October 5, 2026, 00:44 UTC (Revision 14).

ClawSweeper review

What this changes

The PR unifies the Control UI sidebar’s agent selector, clarifies navigation actions, and preserves main-chat metadata and recovery controls in agent roster headers.

Merge readiness

✅ Ready for maintainer review

The work remains useful and absent from current main. The integrated head addresses the prior concrete findings, and no new blocking defect was found. Maintainer authorship and the protected label also preclude automatic closure.

Priority: P2
Reviewed head: 455c3d7925c9466d0ea6c3bf20e5512bf34ccc6b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, coherent work with inspected visual proof, preserved production owners, and no remaining concrete review finding.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The inspected before/after Control UI captures directly demonstrate the changed selector and roster presentation using matching synthetic agents. Reported integration E2E and owner-boundary tests supplement the visual proof for navigation, filtering, Retry, and PR updates. No stored-data contract changes require migration proof.
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 captures directly demonstrate the changed selector and roster presentation using matching synthetic agents. Reported integration E2E and owner-boundary tests supplement the visual proof for navigation, filtering, Retry, and PR updates. No stored-data contract changes require migration proof.
Evidence reviewed 8 items Current main still needs the change: Fetched main still hides agent tiles in roster mode and presents separate Show one agent, Agent settings, and Help entries. It does not contain the unified selector or grouped Show all avatar tile.
Introduced change and ownership: Reviewed the pinned base-to-head hunks across production code, styles, documentation, and migrated tests. Raw head records match the supplied original-head parents; the stale test merge was not used to infer removal of main behavior.
Prior recovery and subscription findings addressed: Roster headers retain per-parent child-load errors and Retry rendering independently of metadata filtering. The live PR subscription includes displayed Home sessions, with focused regressions covering background PR updates and hidden-run recovery.
Findings None None.
Security None None.

How this fits together

The Control UI sidebar combines configured agents with Gateway session snapshots and browser presentation preferences. Its selector controls agent scope, while roster headers provide conversation navigation, status indicators, and recovery actions.

flowchart TD
  A[Configured agents] --> C[Sidebar agent selector]
  B[Gateway session snapshots] --> D[Shared session projection]
  C --> E[One agent or all agents]
  E --> D
  D --> F[Roster headers and session rows]
  F --> G[Chat navigation and recovery]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +203, Tests +694, Docs +6. Total +903 across 39 files.

View PR surface stats
Area Files Added Removed Net
Source 14 457 254 +203
Tests 22 951 257 +694
Docs 3 25 19 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 39 1433 530 +903

Review metrics

Metric Value Why it matters
Production versus test growth production +203 net lines; tests and test support +694 net lines Production growth supports the shared selector and retained metadata, while most growth covers navigation, recovery, and browser layout regressions.

Technical review

Best possible solution:

Keep one shared agent selector and session projection, with readable roster metadata and independent child recovery.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: current main suppresses named-agent choices in the all-agent menu, and the inspected before capture shows the existing ambiguous actions. No runtime reproduction was executed in this review.

Is this the best way to solve the issue?

Yes. The patch shares the selector across modes and reuses existing session metadata, filtering, subscription, and recovery owners instead of adding parallel state.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 869657375d2d.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This improves existing multi-agent sidebar navigation and status visibility with a limited Control UI blast radius.
  • 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 captures directly demonstrate the changed selector and roster presentation using matching synthetic agents. Reported integration E2E and owner-boundary tests supplement the visual proof for navigation, filtering, Retry, and PR updates. No stored-data contract changes require migration proof.
  • proof: sufficient: Contributor real behavior proof is sufficient. The inspected before/after Control UI captures directly demonstrate the changed selector and roster presentation using matching synthetic agents. Reported integration E2E and owner-boundary tests supplement the visual proof for navigation, filtering, Retry, and PR updates. No stored-data contract changes require migration proof.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The inspected before/after Control UI captures directly demonstrate the changed selector and roster presentation using matching synthetic agents. Reported integration E2E and owner-boundary tests supplement the visual proof for navigation, filtering, Retry, and PR updates. No stored-data contract changes require migration proof.

Evidence

What I checked:

  • Current main still needs the change: Fetched main still hides agent tiles in roster mode and presents separate Show one agent, Agent settings, and Help entries. It does not contain the unified selector or grouped Show all avatar tile. (ui/src/components/app-sidebar-agent-menu.ts, 869657375d2d)
  • Introduced change and ownership: Reviewed the pinned base-to-head hunks across production code, styles, documentation, and migrated tests. Raw head records match the supplied original-head parents; the stale test merge was not used to infer removal of main behavior. (455c3d7925c9)
  • Prior recovery and subscription findings addressed: Roster headers retain per-parent child-load errors and Retry rendering independently of metadata filtering. The live PR subscription includes displayed Home sessions, with focused regressions covering background PR updates and hidden-run recovery. (ui/src/components/app-sidebar-session-navigation.ts:124, 455c3d7925c9)
  • Integration conflict resolved: The current module exports both the agent-menu focus helper and plugin-navigation renderer. A fresh REST read reports the exact reviewed head as mergeable; its blocked state does not establish a remaining source conflict. (ui/src/components/sidebar-menus-render.ts:55, 455c3d7925c9)
  • Inspected visual proof: Inspected all four prepared images: matching before/after five-agent menus and roster headers. They show the grouped Show all tile, clearer action labels, aligned workspace identity, and retained roster metadata. The captured PR body identifies before as 76922ab and after as the reviewed head; its source identity is 241985b9fc3e6388bf8c6daa9cee8b223fb22edbcbcd6fb6be8dc397c8ad74af. (455c3d7925c9)
  • Validation and compatibility scope: The captured body reports 315 focused tests, 10 bundled UI E2E scenarios, production types, and changed-file checks on the integration. These were not rerun during this read-only review. Source changes reuse existing browser settings and introduce no stored-data format, Gateway API, dependency, permission, or migration change; git diff --check passed and the checkout remained clean. (ui/src/components/sidebar-menus-render.ts:136, 455c3d7925c9)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vyctorbrzezowski: 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 (13 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-18T05:53:20.977Z sha 528781e :: blocked before merge. :: none
  • reviewed 2026-09-18T06:22:33.011Z sha d790313 :: blocked before merge. :: [P2] Preserve child-load recovery for every agent header | [P2] Keep main-chat worktrees in the live PR subscription set
  • reviewed 2026-09-24T22:13:41.595Z sha d790313 :: blocked before merge. :: [P2] Restore Retry for every agent's main-chat children | [P2] Watch promoted main sessions for live PR changes
  • reviewed 2026-10-04T15:38:54.351Z sha 8153d1f :: blocked before merge. :: [P2] Restore Retry for every agent's main-chat children | [P2] Watch promoted main sessions for live PR changes
  • reviewed 2026-10-04T16:22:07.951Z sha 6e6769b :: needs maintainer review before merge. :: none
  • reviewed 2026-10-04T16:31:16.825Z sha 6b4fd22 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-04T16:40:42.990Z sha 1a7f594 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-05T00:30:15.530Z sha 1a7f594 :: blocked before merge. :: none

@vyctorbrzezowski
vyctorbrzezowski force-pushed the fix/sidebar-agent-menu-copy branch from 5cd584f to b8249e9 Compare September 18, 2026 03:59
@vyctorbrzezowski vyctorbrzezowski changed the title fix(ui): separate agent choices from sidebar display fix(ui): clarify sidebar agent selection and roster actions Sep 18, 2026
@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Sep 18, 2026
@clawsweeper clawsweeper Bot added 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 rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 18, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Sep 24, 2026
roboclaw-bot and others added 2 commits October 4, 2026 15:30
Use Show all and the existing avatar renderer for the grouped sidebar choice. Consolidate duplicated menu setup and focus checks while preserving every scenario.

Co-authored-by: vyctorbrzezowski <[email protected]>
Preserve current Home projection and child recovery, watch visible main-worktree PR snapshots, and keep the approved Show all design. Retain current test owners and shared rendering contracts.

Co-authored-by: vyctorbrzezowski <[email protected]>
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 4, 2026 16:08
Keep the event-scope E2E fixture on the real multi-agent selector path.

Co-authored-by: vyctorbrzezowski <[email protected]>
@clawsweeper clawsweeper Bot added 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 rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Oct 4, 2026
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 4, 2026 16:18
@roboclaw-bot
roboclaw-bot disabled auto-merge October 4, 2026 16:22
roboclaw-bot and others added 3 commits October 4, 2026 16:24
Use the current action roles and include Show all in keyboard and geometry assertions. Keep selection, archive, pagination, and catalog behavior assertions intact.

Co-authored-by: vyctorbrzezowski <[email protected]>
Avoid treating negative zero from subpixel rounding as a layout defect while keeping the same zero-gap assertion.

Co-authored-by: vyctorbrzezowski <[email protected]>
Integrate current main after landing was interrupted. Retain both the agent-focus owner and main plugin-navigation renderer exports.

Co-authored-by: vyctorbrzezowski <[email protected]>
@roboclaw-bot
roboclaw-bot merged commit c501233 into main Oct 5, 2026
106 checks passed
@roboclaw-bot
roboclaw-bot deleted the fix/sidebar-agent-menu-copy branch October 5, 2026 00:48
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Merged via squash.

shakkernerd added a commit that referenced this pull request Oct 5, 2026
Respect the agent menu's Escape handling in the existing mobile drawer animation check.

Refs #150587.
steipete added a commit that referenced this pull request Oct 5, 2026
Follow the intentional metadata row and padded agent link introduced by #150587. Assert attention containment and vertical separation from actions, and align session indicators to the agent row edge. Retain default name readability, exact control sizes, quiet-header height, nesting, and right-edge checks.

Proof: all four sidebar-agent-first E2E cases passed with --maxWorkers=1 in 11.15s; the original CI file took 4.64s before failing. Inspected light, dark, and touch captures. Changed-file checks passed and independent P0-P2 review was clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 5, 2026
…#150587)

* fix(ui): clarify sidebar agent selection and roster actions

* fix(ui): preserve main-chat metadata in agent roster

* test(ui): preserve literal session kinds in roster cases

* test(ui): avoid shadowed roster fixture variables

* fix(ui): show grouped avatars for the all-agent sidebar

Use Show all and the existing avatar renderer for the grouped sidebar choice. Consolidate duplicated menu setup and focus checks while preserving every scenario.

Co-authored-by: vyctorbrzezowski <[email protected]>

* test(ui): enter global roster through Show all

Keep the event-scope E2E fixture on the real multi-agent selector path.

Co-authored-by: vyctorbrzezowski <[email protected]>

* test(ui): migrate sidebar menu browser callers

Use the current action roles and include Show all in keyboard and geometry assertions. Keep selection, archive, pagination, and catalog behavior assertions intact.

Co-authored-by: vyctorbrzezowski <[email protected]>

* test(ui): measure unsigned sidebar grid gaps

Avoid treating negative zero from subpixel rounding as a layout defect while keeping the same zero-gap assertion.

Co-authored-by: vyctorbrzezowski <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 5, 2026
)

Respect the agent menu's Escape handling in the existing mobile drawer animation check.

Refs openclaw#150587.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 5, 2026
Follow the intentional metadata row and padded agent link introduced by openclaw#150587. Assert attention containment and vertical separation from actions, and align session indicators to the agent row edge. Retain default name readability, exact control sizes, quiet-header height, nesting, and right-edge checks.

Proof: all four sidebar-agent-first E2E cases passed with --maxWorkers=1 in 11.15s; the original CI file took 4.64s before failing. Inspected light, dark, and touch captures. Changed-file checks passed and independent P0-P2 review was clean.
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 P2 Normal backlog priority with limited blast radius. 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: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

2 participants