Agent Teams: Enter key collision between agent selector and input submit

Resolved 💬 4 comments Opened Feb 9, 2026 by bjcoombs 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

  1. Start a team with multiple teammates (e.g., via a slash command that uses TeamCreate + Task spawning)
  2. Teammates are running — status bar shows them at the bottom
  3. Press shift+up to open the agent selector
  4. Press enter to select a teammate to view
  5. 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 enter exclusively when open
  • A different key is used for agent selection (e.g., tab or shift+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

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗