Preflight Checklist
What's Wrong?
the bug is that run_in_background Bash tasks that exceed their timeout are not automatically terminated by the Claude Code harness — they continue consuming resources with no way for the agent to kill them.
a Bash command with a long-running find times out, gets moved to background, and keeps running indefinitely.
What Should Happen?
The agent has no TaskStop or process-kill mechanism for these backgrounded commands.
Error Messages/Logs
Steps to Reproduce
Have an agent run a shell in Claude code
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
Latest
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
No response
Preflight Checklist
What's Wrong?
the bug is that run_in_background Bash tasks that exceed their timeout are not automatically terminated by the Claude Code harness — they continue consuming resources with no way for the agent to kill them.
a Bash command with a long-running find times out, gets moved to background, and keeps running indefinitely.
What Should Happen?
The agent has no TaskStop or process-kill mechanism for these backgrounded commands.
Error Messages/Logs
Steps to Reproduce
Have an agent run a shell in Claude code
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
Latest
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
No response