Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.321 ·

Stopping a turn can leave background tasks running

A stop, cancel or Esc can now end the current turn without stopping running background agents and workflows

Group of 4 Use it now Internal Changes
JSON All of v2.1.321
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
SDKArea: what it touches
Internal ChangesKind: in v2.1.321,
What probably matters to youSection of the release

Unclear What happens to background tasks after a stop that no person made is not shown.

What

A turn is one round of Claude working on your request. Background tasks are agents and workflows that keep running on their own while you continue.

  • The Stop request gains an optional spare_background_tasks setting. When true, it ends the turn and leaves background agents and workflows running. Running observers still stop.
  • Cancelling a remote session can pass spareBackgroundTasks, so agents are recorded as finished rather than as stopped by you.
  • Pressing Esc in the local interface now passes spareBackgroundTasks, so interrupting a turn should not kill background tasks.
  • In headless mode (running without the interactive screen), a stop not made by a person leaves background tasks unmarked, behind the switch tengu_swift_bear. When spare_background_tasks is set, a person's stop no longer counts against background tasks either.

Why

You can stop Claude's current answer without losing work running in the background, and tools built on Claude Code get finer control over what an interrupt ends.

Read from
Feature flag
tengu_swift_bear Not enough to say

Nothing here resolved what this flag was doing on this version, so nothing here should be read as on or off.

This account: no value returned · anonymous baseline: no value returned · compiled default in v2.1.321: on

These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.

Read once, for one account on one subscription tier, against v2.1.321. It isn't a statement about your account. What a flag value here can and cannot tell you

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 doubtWhat happens to background tasks after a stop that no person made is not shown.
The name it cites is new in this buildNew in this build: tengu_swift_bear

See this entry in the whole of v2.1.321 →

Feedback