[BUG] Agent Teams: teammate roster (in-progress) mode runs at same time as split-pane mode and then in-progress roster stays pinned in lead terminal after shutdown confirmed and panes auto closed
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 running an agent team in split-pane (tmux) mode, the teammate roster shown below the input in the lead session does not clear after the team ends.
The teammate panes close normally and the lead reports the team has been shut down, but the roster (the "↓ to manage" / Enter-to-view list) stays pinned below the input, with every teammate still listed and a running timer. Sending a shutdown request while teammates are parked idle has no effect. The entries only disappear after a full /exit and relaunch.
This started in the last day or maybe 2. In prior versions the teammates cleared on their own when the team ended; the persistent roster is new.
What Should Happen?
in-progress should not show, I'm using "teammateMode": "auto". Additionally after the team is shut down and the teammate panes close, the roster should clear automatically and the lead terminal should return to a normal single-session state with no lingering teammate entries.
Error Messages/Logs
Stop Task
Error: No task found with ID: cost-exec@session-2e5fd4d4
Steps to Reproduce
- In ~/.claude/settings.json set:
"env": { "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" }
"teammateMode": "auto"
- Start a tmux session, then launch
claudeinside it (so split-pane mode is used). - Ask the lead to create an agent team and spawn ~5 teammates on a simple task.
- Let the teammates finish and go idle, then ask the lead to shut down / disband the team.
- Observe: panes close and the lead says the team is shut down, but the teammate roster stays pinned below the input and will not clear. Stopping a teammate returns "No task found with ID: ...". Entries only clear after /exit and relaunch.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.179
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
see image showing 1 pane running whie in-progress also running at the same time. <img width="3122" height="2836" alt="Image" src="https://github.com/user-attachments/assets/1b601e02-6ced-40f8-b552-aa4a68e3e7ed" />
when this teammate will close that in-progress info will still remain while teammates have been confirmed shutdown.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗