Terminated (dead) teammates linger in the teammates tray until the session ends
Environment
- Claude Code version: 2.1.201
- OS: macOS 26.5.1 (Darwin 25.5.0)
- Terminal: running inside tmux 3.7b (teammates spawned with
backendType: tmuxas panes)
Description
When agent teammates are spawned (Agent tool) and later shut down cleanly (via shutdown_request → shutdown_approved), the terminated teammates remain listed as dead entries in the teammates tray (the bar below the status bar) for the remainder of the session. After cycling through two teams of three in one session, six dead teammate rows accumulate in the tray with no way to dismiss them.
Steps to reproduce
- Start Claude Code inside a tmux session.
- Ask Claude to spawn 3 teammates (Agent tool, named teammates).
- Ask Claude to shut the team down (
SendMessagewithshutdown_request; teammates approve and terminate — tmux panes close). - Ask Claude to spawn a new team of 3 and shut that down too.
- Observe the teammates tray.
Expected
Dead teammates disappear from the tray after termination (or after a short delay), or can be dismissed manually — e.g. the x key on a selected dead row, similar to stopping a live teammate.
Actual
All terminated teammates stay listed as dead for the life of the session. Verified that this is purely in-memory TUI state: on disk, ~/.claude/teams/<session>/config.json is correctly pruned back to team-lead, all inbox files are drained to [], and the tmux panes are gone. Nothing documented (slash command, keybinding, or setting) clears the dead rows; the idle-row auto-hide/collapse behavior (v2.1.199+) doesn't apply to dead entries.
Suggestion
Either auto-remove dead teammate rows shortly after teammate_terminated, or let the existing tray selection (arrow keys) dismiss a dead row with x.
🤖 Filed with Claude Code on the user's behalf