Commit 8f12201
authored
π€ fix: exclude auto from agent cycling, hide hints, fix color flash (#2635)
## Summary
Four targeted fixes for the agent picker's `Ctrl+.` cycle shortcut and
associated UI hints.
## Background
- **Cycling includes "auto"** β `Ctrl+.` cycles through all
`uiSelectable` agents including "auto". Since auto is a meta-mode (not a
concrete agent), it should only be toggled explicitly via the picker
switch.
- **Auto ignores nothing** β When "auto" is selected, `Ctrl+.` still
works (cycling away from auto) and both the `?` tooltip and the
bottom-of-chat shortcut hint still show the "Cycle/change agents" hint.
All should be suppressed.
- **Color flash** β The picker pill animates `border-color` over 150ms
via `transition-all`, but the textarea border snaps instantly (no
transition). The mismatch produces a visible color flash during agent
switches.
## Implementation
1. **`cycleToNextAgent` (`AgentContext.tsx`)** β Early-return when
active agent is `"auto"` AND auto is available in the discovered agent
list. Filter out `"auto"` from the cycle list so it's never a
destination. Stale persisted "auto" still allows keyboard recovery.
2. **`AgentHelpTooltip` (`AgentModePicker.tsx`)** β Added `isAuto` prop;
conditionally hides the "Cycle agents" hint when auto is selected.
3. **Chat input shortcut hints (`ChatInput/index.tsx`)** β Conditionally
hides the `β. - change agent` bottom hint when auto mode is active.
4. **Picker pill transition (`AgentModePicker.tsx`)** β Changed
`transition-all` β `transition-[background-color]` so only hover-bg
animates; border-color now snaps instantly to match the textarea.
---
_Generated with `mux` β’ Model: `anthropic:claude-opus-4-6` β’ Thinking:
`xhigh` β’ Cost: `$2.30`_
<!-- mux-attribution: model=anthropic:claude-opus-4-6 thinking=xhigh
costs=2.30 -->1 parent d14e21f commit 8f12201
3 files changed
Lines changed: 37 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
106 | 110 | | |
107 | 111 | | |
108 | 112 | | |
| |||
362 | 366 | | |
363 | 367 | | |
364 | 368 | | |
365 | | - | |
| 369 | + | |
366 | 370 | | |
367 | 371 | | |
368 | 372 | | |
| |||
389 | 393 | | |
390 | 394 | | |
391 | 395 | | |
392 | | - | |
| 396 | + | |
393 | 397 | | |
394 | 398 | | |
395 | 399 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
450 | 458 | | |
451 | 459 | | |
452 | 460 | | |
| |||
2430 | 2438 | | |
2431 | 2439 | | |
2432 | 2440 | | |
2433 | | - | |
2434 | | - | |
2435 | | - | |
2436 | | - | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
| 2445 | + | |
| 2446 | + | |
2437 | 2447 | | |
2438 | 2448 | | |
2439 | 2449 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
236 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
237 | 247 | | |
238 | 248 | | |
239 | 249 | | |
| |||
0 commit comments