Repository navigation
fix(ui): clarify sidebar agent selection and roster actions - #150587
Conversation
|
🦞👀 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 October 4, 2026, 8:44 PM ET / October 5, 2026, 00:44 UTC (Revision 14). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherThe 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +203, Tests +694, Docs +6. Total +903 across 39 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (13 earlier review cycles; latest 8 shown)
|
51be04a to
5cd584f
Compare
5cd584f to
b8249e9
Compare
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]>
Keep the event-scope E2E fixture on the real multi-agent selector path. Co-authored-by: vyctorbrzezowski <[email protected]>
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]>
|
Merged via squash.
|
Respect the agent menu's Escape handling in the existing mobile drawer animation check. Refs #150587.
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.
…#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]>
) Respect the agent menu's Escape handling in the existing mobile drawer animation check. Refs openclaw#150587.
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.
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 at455c3d7925c946. 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
Roster — main-chat status
Two-agent overlap
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.