Agent Teams: Enter key collision between agent selector and input submit
Problem
When using Agent Teams, shift+up/down opens the agent selector panel and enter selects an agent. However, enter also submits input to the currently focused agent (the team lead by default).
This means navigating agents with the keyboard accidentally sends the auto-suggested prompt text to the team lead, triggering an unintended turn that burns tokens.
Steps to Reproduce
- Start a team with multiple teammates (e.g., via a slash command that uses
TeamCreate+Taskspawning) - Teammates are running — status bar shows them at the bottom
- Press
shift+upto open the agent selector - Press
enterto select a teammate to view - The auto-suggested prompt text is also submitted to the team lead
Expected Behavior
enter in the agent selector context should only select the agent, not submit input to the lead. The two actions should be disambiguated — either:
- Agent selector captures
enterexclusively when open - A different key is used for agent selection (e.g.,
taborshift+enter)
Impact
In long-running team sessions (e.g., marathon task workflows), accidental submissions to the lead trigger turns that consume tokens and can cause unintended actions (merge checks, teammate messages, etc.).
Environment
- Claude Code v2.1.34
- macOS (iTerm2)
- Agent Teams enabled via
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗