[BUG]

Status Open
Maintainer reply None cached
Activity 0 comments · opened Jul 28, 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?

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_

View original on GitHub ↗