Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.285 ·

Background shell commands now stop after a time limit

Commands run in the background now stop after 30 minutes by default, up to 2 hours with a longer timeout, and Claude is told to restart them

Group of 2 You'll notice Notable Improvements
JSON All of v2.1.285
You'll noticeTier: how much it should matter to you
4Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Bash ToolArea: what it touches
ImprovementsKind: in v2.1.285,
What probably matters to youSection of the release

Unclear It is not clear what switches these off or whether the time limit applies to everyone.

What

Claude can run a shell command in the background, meaning the command keeps going while the conversation continues. It does this by passing run_in_background to the Bash tool, the tool Claude uses to run terminal commands. Before this release, a background command had no deadline and could only be stopped when the machine ran low on memory. It now has a time limit:

  • timeout with run_in_background sets how long the command may run in the background. The default is 1800000 ms (30 minutes) and the maximum is 7200000 ms (2 hours).
  • When the limit is reached, the command is stopped. Its stop reason reads "stopped after reaching its background time limit". Claude is told to restart it with run_in_background and a longer timeout.
  • The Bash and PowerShell tool descriptions now say that timeout on its own applies to a foreground command, one that Claude waits on. The Bash instructions now include the background default and maximum. Tool results also gain a backgroundedByTurnAbort field.
  • The session state gains backgroundTasksDisabled, backgroundDeadlineDisabled and unsandboxedCommandsDisabled, with matching methods to turn each one off. These let background tasks, the background deadline, or unsandboxed commands be disabled for a session. Unsandboxed commands are commands run outside the protective sandbox.

Why

Long-running jobs started in the background, such as dev servers, watchers or long builds, will now be stopped after 30 minutes unless a longer timeout is given. If you rely on a background job running for longer, expect Claude to ask for or set a longer timeout. Nothing can run past 2 hours in one go.

Read from
Names in the bundletimeout
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Added since A small documentation edit on Agent SDK reference - Python touched a line naming timeout after this was published. For what sets the foreground ceiling, see [Timeout and output limits](/docs/en/tools-reference#timeout-and-output-limits). For the background time limit, see [Time limit for background commands](/docs/en/tools-reference#time-limit-for-back… agent-sdk/python see the edit
Confirmed since Anthropic's documentation has since written up timeout, on Claude Code changelog. * Changed `--bare` to connect only the MCP servers named on the command line, send the model no system reminders, and start no background tasks; under `--bare`, a shell command that reaches its timeout now stops instead of moving to the ba… changelog see the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear what switches these off or whether the time limit applies to everyone.
Anthropic's documentation agreesAnthropic's documentation has since written up timeout, on Claude Code changelog.

See this entry in the whole of v2.1.285 →

Feedback