Skip to content

[BUG] #81986

Description

@PAB55

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions