Terminated (dead) teammates linger in the teammates tray until the session ends

Open 💬 0 comments Opened Jul 4, 2026 by BAKocska

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: tmux as panes)

Description

When agent teammates are spawned (Agent tool) and later shut down cleanly (via shutdown_requestshutdown_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

  1. Start Claude Code inside a tmux session.
  2. Ask Claude to spawn 3 teammates (Agent tool, named teammates).
  3. Ask Claude to shut the team down (SendMessage with shutdown_request; teammates approve and terminate — tmux panes close).
  4. Ask Claude to spawn a new team of 3 and shut that down too.
  5. 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

View original on GitHub ↗