[BUG] Claude code lose track of running subagents
Resolved 💬 4 comments Opened Mar 10, 2026 by kderholtvisma Closed May 20, 2026
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?
If Claude Code start up subagents and right after compact the conversaiotn, it starts to go haywire because and want to continue previous task even though the subagents are running.
Solution now is to tell calude to stop working.
Got it — the agents are still running from the previous session. I'll wait for them to finish.
What Should Happen?
It should ackknowledge it has subagents running and wait for them
Error Messages/Logs
Steps to Reproduce
fill up context and tell it to start subagents.
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.72
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗