Claude Code stops background shell commands after a time limit, 30 minutes by default
From Claude Code 2.1.285, Bash and PowerShell commands run in the background stop after their timeout: 30 minutes by default, 2 hours at most. Claude is notified when one is stopped. Long-running background processes no longer run indefinitely.
What does this mean for me?
Action needed
Engineering leadership
Cost, risk, timeline, team impact Worth knowingAgent workflows that run a server, watcher or long build in the background for Claude Code are now capped at 2 hours per command. Make sure teams know, so a job stopped at 30 minutes isn't mistaken for a failure.
Engineer
What to change, what breaks, what to test Action neededBackground Bash/PowerShell commands started with run_in_background now stop at their timeout: 30 minutes by default, 2 hours at most. Ask Claude to set a longer timeout for long jobs, and start anything that must run more than 2 hours outside Claude Code.
General consumer
Using the Claude apps, not the API No impactNothing to do. This only affects shell commands in Claude Code, not the Claude apps.
Claude Code 2.1.285 changes background Bash and PowerShell commands to stop after a time limit. The limit is the command’s timeout when it is started with run_in_background; it defaults to 30 minutes and can be set to at most 2 hours. When a command is stopped, Claude is notified.
Before this release a background command, such as a dev server, a file watcher, or a long build, kept running until it exited or the session ended. Now one that runs longer than its timeout is stopped, even if nothing is wrong with it. A process that needs to run for more than 2 hours can no longer be kept alive as a Claude Code background command at all; start it outside Claude Code instead.
The changelog carries no dates. 2.1.285 was absent when the changelog was fetched on 28 September at 19:14 UTC and present on 29 September, so the date is inferred from that window.
Topics: Coding tools