Skip to content

improve(ui): roster mode leads with agents and uses list rows - #188144

Merged
vyctorbrzezowski merged 9 commits into
mainfrom
brzezowski/sidebar-roster-order
Oct 30, 2026
Merged

vyctorbrzezowski merged 9 commits into
mainfrom
brzezowski/sidebar-roster-order

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Builds on the merged #188141.

What Problem This Solves

In roster mode, agents sit below Pinned and personal sections. Roster session rows also use their own grid, so their state sits in trailing slots instead of the list's leading column.

User Impact

User impact: roster mode now starts with pinned agent tiles and the agent list, followed by Pinned, personal sections, and the remaining sessions. Roster rows read exactly like list rows.

Why This Change Was Made

  • Order: renderSessionListFrame takes bodyFirst, and the roster passes it so the agents lead the frame.
  • Roster rows: rows drop the roster-only grid and trailing team slots, along with the coding and automation glyphs. Running and unread now show on the leading avatar. The child toggle shows its count.
  • Agent headers: the avatar is 28px with a 10px gap to the name. The name uses --text, or --text-strong for the current agent.
  • Pinned tiles: the disc is 48px with a contained 30px emoji. The run ring sits 3px outside the disc, and names are 12px.
  • Emoji agents: an emoji agent sits on a neutral disc, like a photo avatar.

Evidence

Compared against the approved prototype by measuring computed styles element by element across all prototype states. Differences that remain on purpose:

  • A failed cloud badge stays red. The prototype's cascade muted it by accident.
  • Elapsed time on a tagged row keeps the readable muted tone, so it stays above AA contrast.
  • Rows are 32px with a 30px fill and no list gap, so the virtual window no longer adds 2px between rows.
  • Running and failed child toggles are muted, matching the prototype.

Captured on the mocked Control UI, with #188141 on the left and this branch on the right. The flow pins sessions from the list, switches to roster mode (?sidebarAgents=roster), then pins an agent from its menu.

Before After
Roster · dark
Roster · light

Measured in the running mock: roster session rows are 30px, with the lead column at x=30 and titles at x=48. Agent header avatars are 28px and also centered on x=30.

Checks:

  • Unit tests touching the roster and team rows: 20 files, 263 tests passed.
  • sidebar-complete-roster.e2e passed.
  • pnpm tsgo:ui, oxlint and stylelint on the touched files: clean.

Behavior to review: roster rows no longer show the coding and automation glyphs. A session that failed without an attention state no longer shows a trailing triangle, which matches list rows.

Gaps: personal sections and emoji-agent discs on session rows are not in the captures.

Landing verification

The mobile roster now reserves its existing persistent menu width before hover and uses the shared child-toggle width for clearance. This prevents long titles from covering the menu and prevents the menu from overlapping the child toggle. Approved row, header, avatar and icon dimensions are unchanged.

The added coarse/fine-pointer cases use the actual Control UI with synthetic Gateway data, restored roster/pin preferences, drawer opening and menu clicks. Both failed on the overlap before the repair and passed after it. The complete mobile-menu and agent-first suites passed (11 cases), including after updating onto main. Glyph checks, UI production/test typechecks, scoped lint/format and independent review passed. Parent fixes are inherited from #188141; the remaining layer is 11 files.

The emoji-agent avatar styling is scoped to the sidebar, preserving normal chat avatar geometry. Loading the production components stylesheet in the existing reply-attribution test reproduced the desktop regression; the scoped rule passes all 18 reply, 98 owner-avatar and 5 glyph browser cases. No new test case or visual value was needed for this repair.

Current mobile menu evidence (actual Control UI, identical synthetic Gateway data and pointer mode):

Before repair After repair

Final CI

Run 41043896802, on 9fd3543, passed all three UI shards, the selected E2E jobs and the other applicable checks. The remaining failure is only the CSS size budget: 302.7 vs 302.6 KiB gzip and 1563.4 vs 1563.0 KiB raw. Landing uses the explicit CSS-budget exception; neither the approved design nor the budgets were changed. The earlier chat-avatar failure is fixed and its current CI shard passed.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR puts agents before personal session sections and gives roster session rows the shared list presentation.

Example: Roster mode with a pinned Forge agent and a pinned Research conversation.

  • Before: The Pinned conversation section appears before the agent roster.
  • After: The Forge tile and agent roster appear before the Pinned conversation section.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The consolidation is useful, but the mobile layout cutover has a concrete defect and supplied images do not exercise this PR's changed behavior.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Agents appear below personal session sections, and roster session state uses a different visual layout from ordinary list rows.
Reason: The maintainer-authored direction makes agent navigation more prominent while consolidating presentation in existing owners.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this maintainer-authored draft open; the shared-layout cutover introduces a narrow-drawer title overlap that needs repair.

Priority: P2
Reviewed head: 9ca03757b437bc590ae2af1dff6291b19d4cb4c7

Before merge

  • Include roster rows in the shared mobile menu-space rule (P2) - Removing the roster grid also removes its dedicated 44px mobile action column, but rendered roster session rows still carry sidebar-recent-session--team. This shared drawer rule excludes that class. At a 390px viewport with a fine pointer, the coarse-pointer fallback does not apply and the menu remains always visible, so a long pinned or personal-group session title runs beneath the menu until hover or focus reserves space. Include these rows in the existing shared drawer layout when deleting their separate grid, and extend the existing coarse/fine-pointer geometry regression to roster mode.

Findings

  • [P2] Include roster rows in the shared mobile menu-space rule — ui/src/styles/app-sidebar.css:40-43

Tests

  • Missing end-to-end proof: Show this head's roster order, pinned tiles, leading state and child controls in inspected before/after captures, including a 390px drawer with coarse and fine pointers; no base-failing/head-passing regression is supplied.
Agent review details

How this fits together

The Control UI sidebar projects agent activity, session facts, and personal navigation preferences into agent tiles, session rows, indicators, and navigation controls.

flowchart TD
  A[Gateway agent and session facts] --> B[Sidebar projections]
  C[Personal navigation preferences] --> B
  B --> D[Shared session list frame]
  D --> E[Agent tiles and roster]
  D --> F[Pinned and personal session rows]
  F --> G[Shared indicators and actions]
Loading

Technical review

Best possible solution:

Keep the shared row renderer and complete its mobile CSS cutover so roster session titles always clear the visible menu.

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

Source establishes the overlap path: roster rows retain --team, their reserved mobile grid column is deleted, and shared drawer title padding excludes --team; no target code was executed.

Is this the best way to solve the issue?

Reusing the existing frame, row renderer, and leading indicators is a small coherent approach, but the shared mobile stylesheet must include the rows whose separate grid is removed.

Full review comments:

  • [P2] Include roster rows in the shared mobile menu-space rule — ui/src/styles/app-sidebar.css:40-43
    Removing the roster grid also removes its dedicated 44px mobile action column, but rendered roster session rows still carry sidebar-recent-session--team. This shared drawer rule excludes that class. At a 390px viewport with a fine pointer, the coarse-pointer fallback does not apply and the menu remains always visible, so a long pinned or personal-group session title runs beneath the menu until hover or focus reserves space. Include these rows in the existing shared drawer layout when deleting their separate grid, and extend the existing coarse/fine-pointer geometry regression to roster mode.
    Confidence: 0.94

Overall correctness: patch is incorrect
Overall confidence: 0.93

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 65aa7f41642c.

Provenance checked

  • Roster ordering and personal pins changes intended behavior with a stated reason (054ac7a: Personal pins were given full sidebar rows independent of rail shortcuts; this PR retains that placement owner and explicitly changes its order relative to agents.)
  • Roster grid and trailing state changes intended behavior with a stated reason (8c2996e: Team mode introduced per-agent session groups and aggregate trailing signals; the PR explicitly replaces roster session presentation with the shared list presentation.)
  • Retained leading indicators keeps the original intent (2ba399e: Mounted glyphs preserve animation timelines through live updates; this PR continues using the same retained leading-indicator owner.)
  • Agent headers and pinned tiles changes intended behavior with a stated reason (0884553: Agent-first navigation introduced compact agent summaries and separate pinned tiles; this PR deliberately adjusts their size, spacing, and contrast.)

Testing

Proof path: none.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test:ui:e2e ui/src/e2e/mobile-sidebar-session-menu.e2e.test.ts ui/src/e2e/sidebar-roster.e2e.test.ts ui/src/e2e/sidebar-pinned-agents.e2e.test.ts
  • pnpm tsgo:ui
  • pnpm exec stylelint --config config/stylelint.config.mjs ui/src/styles/app-sidebar.css ui/src/styles/sidebar-agent-roster.css
  • git diff --check

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit c501233 adds ui/src/styles/sidebar-agent-roster.css:23 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c5012333049e; files: ui/src/styles/sidebar-agent-roster.css)
  • Peter Steinberger: Raw commit ff2c841 adds ui/src/components/sidebar-agent-roster.tsx:139 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ff2c84117f60; files: ui/src/components/sidebar-agent-roster.tsx)

PR surface

Source -114. Total -114 across 7 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 7 69 183 -114
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 69 183 -114

Labels

Label changes:

  • add P2: The introduced layout regression affects session-title readability in the narrow sidebar with a fine pointer.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: The introduced layout regression affects session-title readability in the narrow sidebar with a fine pointer.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 30, 2026, 2:42 AM ET / 06:42 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review October 30, 2026 08:56
Base automatically changed from brzezowski/sidebar-session-row-rhythm to main October 30, 2026 10:26
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/sidebar-roster-order branch from 4d4a7d7 to 0d1080d Compare October 30, 2026 10:30
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Mobile roster verification at 390px with a mouse: the title previously covered the persistent menu; after the repair, the menu and child toggle remain clear. Actual Control UI with synthetic Gateway data and saved roster/pin preferences, opened through the drawer. The same coarse-pointer case also passes. No styles or rendered output were injected.

Before:

After:

@vyctorbrzezowski
vyctorbrzezowski merged commit 87d8c16 into main Oct 30, 2026
102 of 105 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/sidebar-roster-order branch October 30, 2026 11:04
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
…aw#188144)

Place the agent roster before session sections and reuse the list-row presentation. Preserve the approved design while keeping mobile menus clear of long titles and child toggles, and restrict emoji-avatar styling to the sidebar so chat alignment stays intact.

Reviewed and validated on 9fd3543. All applicable tests and static checks passed in CI run 41043896802; only the CSS-size budget failed. Landing uses the explicit CSS-budget exception without changing the design or limits. Before/after evidence is embedded in the PR.

Co-authored-by: Vyctor H. Brzezowski <[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 P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant