[BUG] Agent Teams: Right-arrow key to navigate between workers fills lead context autocomplete
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When using the experimental Agent Teams feature with multiple workers running tasks,
pressing the right arrow key to navigate between worker contexts in the TUI also
triggers the lead context's prompt input box autocomplete/ghost text suggestion to
fully populate. The right arrow keypress is being consumed by both the worker
navigation system and the autocomplete system simultaneously.
What Should Happen?
When using the experimental Agent Teams feature with multiple workers running tasks,
pressing the right arrow key to navigate between worker contexts in the TUI also
triggers the lead context's prompt input box autocomplete/ghost text suggestion to
fully populate. The right arrow keypress is being consumed by both the worker
navigation system and the autocomplete system simultaneously.
Error Messages/Logs
N/A — no error messages, purely a UI/input handling bug.
Steps to Reproduce
- Enable the experimental Agent Teams feature
- Start a session and spawn multiple worker agents with active running tasks
- Ensure the worker navigation panel is visible below the prompt in the TUI
- In the lead context, begin typing a prompt so that autocomplete/ghost text
appears in the input box (do NOT accept it)
- Press the right arrow key to navigate between worker contexts below the prompt
- Observe: the autocomplete suggestion in the lead context input box is
automatically accepted/populated
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.50 (Claude Code)
Platform
AWS Bedrock
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
This was previously reported as #24297 but was incorrectly auto-closed as a
duplicate of #24245. These are distinct bugs:
- #24245: The Enter key in the Ctrl+T teammate selection panel accidentally
sends an auto-suggested message
- This bug: The right arrow key during worker navigation fills autocomplete
in the lead context input box (no message is sent)
The trigger key, UI surface, and resulting behavior are all different. The
auto-duplicate bot appears to have matched them on surface-level keywords
("team mode" + "autocomplete") without distinguishing the mechanics.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗