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

  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 ↗

4 Comments

github-actions[bot] · 8 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/24245
  2. https://github.com/anthropics/claude-code/issues/18470
  3. https://github.com/anthropics/claude-code/issues/11431

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

ESRogs · 8 months ago

I think this one actually is a dupe of this issue I submitted yesterday: https://github.com/anthropics/claude-code/issues/24245

bjcoombs · 8 months ago

Closing as duplicate of #24245 — same root cause (enter key collision in agent selector). Upvoted the original.

github-actions[bot] · 8 months ago

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.