Skip to content

feat(ui): unify agent pickers with avatars - #112488

Merged
steipete merged 2 commits into
mainfrom
steipete/amazing-fermat-252f7a
Jul 22, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/amazing-fermat-252f7a

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Agent selection was visually and behaviorally inconsistent across the Control UI. The Agents settings page already used a polished custom dropdown with avatars and names, while page scope, New Session, Skills, Memory Import, Workboard, and Exec Approvals still used native or one-off selectors.

Why This Change Was Made

This introduces one reusable avatar-aware agent picker and migrates every closed Control UI agent-selection surface to it. Callers continue to own their domain values and side effects, including All agents, defaults, unassigned cards, and historical IDs. The sidebar keeps its larger switcher menu but reuses the same avatar and option presentation.

Cron's agent-ID field intentionally remains free-form because it supports arbitrary IDs rather than a closed roster.

The shared picker preserves authenticated avatar loading on Agents settings, uses safe roster avatar URLs elsewhere, keeps Web Awesome keyboard behavior, exposes radio semantics, restores focus on dismissal, supports localized default labels, handles missing historical values honestly, and prevents selection after a control becomes disabled.

User Impact

Every closed web agent picker now shows a consistent avatar or icon beside the agent name. The menus retain their existing selection semantics while gaining consistent spacing, keyboard navigation, typeahead, accessibility labels, and disabled-state behavior.

Evidence

  • Focused Control UI unit coverage: 187 tests passed on Blacksmith Testbox.
  • UI and core-test typecheck plus targeted UI lint passed on Blacksmith Testbox.
  • New Session: 29 browser tests passed.
  • Workboard: 3 browser tests passed.
  • Usage cost analysis: browser test passed.
  • Agent page scope and authenticated avatar timeout browser tests passed.
  • Existing-Chrome live verification confirmed the custom menu renders avatar/icon + text rows and exposes menuitemradio semantics.
  • Before/after screenshots are attached in the PR discussion.

Blacksmith evidence:

AI assistance: implementation and tests were produced with Claude Code, with mandatory Codex autoreview before commit.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XL maintainer Maintainer-authored PR labels Jul 22, 2026
@clawsweeper

clawsweeper Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: feat(ui): unify agent pickers with avatars This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete
steipete force-pushed the steipete/amazing-fermat-252f7a branch from d27867b to 920bdca Compare July 22, 2026 03:39
@clawsweeper

clawsweeper Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: feat(ui): unify agent pickers with avatars This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete

Copy link
Copy Markdown
Contributor Author

Before

Native agent scope picker before

After

Avatar and text agent picker after

@steipete
steipete marked this pull request as ready for review July 22, 2026 03:57
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof for the current head 920bdca9d0ee58381b3560bc9f967e4d3dbe156b:

  • Mandatory Codex autoreview: gpt-5.6-sol, high reasoning, clean with no accepted/actionable findings after fixes.
  • Focused UI tests: node scripts/run-vitest.mjs ui/src/components/agent-select.test.ts ui/src/components/agent-scope-control.test.ts ui/src/pages/agents/view.test.ts ui/src/pages/memory-import/view.test.ts ui/src/pages/skills/view.test.ts ui/src/pages/nodes/view.devices.test.ts ui/src/components/app-sidebar.test.ts ui/src/pages/workboard/view.test.ts — 283 tests passed.
  • Post-rebase New Session proof: node scripts/run-vitest.mjs ui/src/e2e/new-session-page.e2e.test.ts ui/src/pages/workboard/view.test.ts — 72 unit tests and 38 browser tests passed.
  • Blacksmith Testbox typecheck, targeted lint, and focused UI proof: runs 29830690068, 29831407737.
  • Browser matrix: New Session, Workboard, Usage cost analysis, agent page scope, and authenticated avatar timeout passed in runs 29818008201, 29819258518, and 29831407737.
  • Existing-Chrome live verification confirmed avatar/icon + text rows and menuitemradio semantics.
  • Before/after screenshots: feat(ui): unify agent pickers with avatars #112488 (comment)
  • Review artifacts validate as READY FOR /prepare-pr with zero findings.

Known proof gaps: none for the touched Control UI surfaces. Cron remains intentionally unchanged because its agent-ID input is free-form rather than a closed selector.

@steipete
steipete merged commit c780d8b into main Jul 22, 2026
131 checks passed
@steipete
steipete deleted the steipete/amazing-fermat-252f7a branch July 22, 2026 04:11
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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 maintainer Maintainer-authored PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant