claude-code - 💡(How to fix) Fix [BUG] Custom statusline with session name displaces 'View Teammates' tmux command for agent teams

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

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.

Error Message

Error Messages/Logs

Root Cause

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.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

  1. Configure a custom statusline (e.g., one that displays session name, branch, model, cost, etc.)
  2. Rename the session (e.g., /rename my_session)
  3. Create an agent team and spawn background agents
  4. Observe: "View Teammates" command is NOT visible in bottom-right
  5. Repeat steps 3-4 in a new session WITHOUT renaming
  6. 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

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Custom statusline with session name displaces 'View Teammates' tmux command for agent teams