Idle team agents cannot be cleaned up and accumulate over time
Status Fixed / completed
Reported on v2.1.50
Maintainer reply None cached
Activity 4 comments · opened Feb 22, 2026 · closed Feb 23, 2026
Description:
When using team agent mode in Claude Code, idle team members cannot be cleaned up. They remain hanging and accumulate over time, causing clutter in the interface.
Environment:
- Claude Code version: 2.1.50
- OS: Windows 10
- Terminal: Windows Terminal
Steps to reproduce:
- Start Claude Code with team agents
- Work with multiple agents over a session
- Observe that agents become idle after completing their tasks
- Try to clean up or dismiss idle agents
Expected behavior:
Idle team agents should be cleanable/dismissable, either automatically or through a user action.
Actual behavior:
- Idle agents remain visible in the team list
- No apparent way to clean them up
- They accumulate over time, making the interface cluttered
Impact:
- Clutters the team agent view
- Makes it difficult to track active agents
- Potentially impacts performance with many idle agents
4 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Thank you for the duplicate check. I've reviewed the linked issues and believe this one has a distinct focus:
#26955 - About UI persistence after
TeamDeleteis called (cleanup files but UI remains)#27610 - About
model:inheritcausing unrecoverable zombies (specific to model resolution)#27639 (this issue) - About idle agents having no cleanup mechanism at all
The key difference:
A user-facing solution for this issue would be:
/team-clean-idle)If maintainers still consider this a duplicate, I'm happy to close and 👍 the existing issue.
Closing this issue. After further analysis, this is an orchestration design limitation rather than a bug:
We've worked around this by building our own worktree management tool (forge-warp) that handles the full lifecycle: create → warp → resume → clean.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.