Agent Teams: Enter key collision between agent selector and input submit
Status Fixed / completed
Maintainer reply None cached
Activity 4 comments · opened Feb 9, 2026 · closed Feb 9, 2026
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
4 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
I think this one actually is a dupe of this issue I submitted yesterday: https://github.com/anthropics/claude-code/issues/24245
Closing as duplicate of #24245 — same root cause (enter key collision in agent selector). Upvoted the original.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.