Repository navigation
feat(ui): unify agent pickers with avatars - #112488
Conversation
|
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. |
d27867b to
920bdca
Compare
|
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. |
|
Land-ready proof for the current head
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. |
|
Merged via squash.
|
* feat(ui): unify agent pickers with avatars * fix(ui): close agent picker on draft reset


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
Blacksmith evidence:
AI assistance: implementation and tests were produced with Claude Code, with mandatory Codex autoreview before commit.