[BUG] Custom statusline with session name displaces 'View Teammates' tmux command for agent teams
Resolved 💬 3 comments Opened May 15, 2026 by ghanekaromkar Closed May 19, 2026
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?
Description
When using agent teams (CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1), the "View Teammates: tmux -L claude-swarm..." command appears in the bottom-right
of the terminal. However, when the session is renamed (e.g., via /rename), the session name gets added to the statusline, making it wider. This
causes the "View Teammates" command to be pushed off-screen or overwritten.
What Should Happen?
"View Teammates" command should always be visible when agent teams are active, regardless of statusline width or session name.
Error Messages/Logs
Steps to Reproduce
Steps to reproduce
- Configure a custom statusline (e.g., one that displays session name, branch, model, cost, etc.)
- Rename the session (e.g.,
/rename my_session) - Create an agent team and spawn background agents
- Observe: "View Teammates" command is NOT visible in bottom-right
- Repeat steps 3-4 in a new session WITHOUT renaming
- Observe: "View Teammates" command IS visible
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.84
Platform
Google Vertex AI
Operating System
Other Linux
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗