Allow Claude to stop background agents.
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?
[BUG ]You need to provide a mechanism for stopping background agents. I had 5 agents running background processes that were continuously fighting over the same file to write to it. One would have it locked, the rest would retry. I recognized what was happening and asked Claude shutdown the agents. Claude informed me it couldn't. Over the next 15 minutes, my token usage went from about 20% to 100%. And there was nothing I could do to stop it. This has happened twice now. Not good!
What Should Happen?
When I instruct Claude to stop background processes it has the ability to do so.
Error Messages/Logs
Steps to Reproduce
Start a process that manipulates a file on your local drive. Allow 5 agents to write to it at the same time.
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
12345
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 ↗