[BUG] No way to remove agents from the team list of agents at the bottom of the claude code ui (even killing them and doing /clear doesn't remove them)
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?
I was running a team of agents. After they completed, I wanted to get rid of this list at the bottom (below the claude code input line). Even after I killed all the agents except the main one (ie. all team members) by going to each one and pressing k , and ran /clear in the main window, the list of agents remained and I could still navigate to no-longer-existing agent's logs and even type in instructions to them.
<img width="1791" height="276" alt="Image" src="https://github.com/user-attachments/assets/bf209235-7d49-4af4-9862-635e00219a09" />
What Should Happen?
There should be a way to discard these stale agent entries so that they don't take up visual space in my terminal
Error Messages/Logs
Steps to Reproduce
Create a team of agents, then kill all of them
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.178
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗