Skip to content

🤖 fix: exclude auto from agent cycling, hide hints, fix color flash#2635

Merged
ibetitsmike merged 3 commits intomainfrom
mike/agent-picker-fixes
Feb 25, 2026
Merged

🤖 fix: exclude auto from agent cycling, hide hints, fix color flash#2635
ibetitsmike merged 3 commits intomainfrom
mike/agent-picker-fixes

Conversation

@ibetitsmike
Copy link
Contributor

@ibetitsmike ibetitsmike commented Feb 25, 2026

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-alltransition-[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

@ibetitsmike
Copy link
Contributor Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3630271f7c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3630271f7c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@ibetitsmike
Copy link
Contributor Author

@codex review

Addressed both P2 comments: cycleToNextAgent now checks autoAvailable before suppressing cycling, so stale persisted "auto" doesn't block keyboard recovery.

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Breezy!

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@ibetitsmike ibetitsmike added this pull request to the merge queue Feb 25, 2026
@ibetitsmike ibetitsmike removed this pull request from the merge queue due to a manual request Feb 25, 2026
@ibetitsmike ibetitsmike changed the title 🤖 fix: exclude auto from agent cycling, hide hint, fix color flash 🤖 fix: exclude auto from agent cycling, hide hints, fix color flash Feb 25, 2026
@ibetitsmike
Copy link
Contributor Author

@codex review

Added a fix to also hide the ⌘. - change agent shortcut hint at the bottom of the chat input when auto mode is active.

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Chef's kiss.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@ibetitsmike ibetitsmike disabled auto-merge February 25, 2026 19:21
@ibetitsmike ibetitsmike added this pull request to the merge queue Feb 25, 2026
Merged via the queue into main with commit 8f12201 Feb 25, 2026
22 checks passed
@ibetitsmike ibetitsmike deleted the mike/agent-picker-fixes branch February 25, 2026 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant