Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.246 Home All releases olderv2.1.245 v2.1.247newer
Claude Code v2.1.246

Headless turns can end without stopping per-task work

Under the hood
Useful2 Signal3
Headless Mode

Headless turns can end while leaving per-task work running, re-checking the spend cap every tick.

What

The print/headless driver gained a second way to tear down a turn: instead of stopping everything, it can leave per-task work running and arm a 100ms sweep that re-checks the spend cap and the running tasks each tick. Which of the two paths is taken is decided by a boolean inside the print module with no flag or environment variable at the call site.

Details
  • The sweep disarms itself when nothing is left running, on error, on shutdown, and when the stream closes with a permission question still parked.
  • Telemetry is recorded under per_task_stop_sparing with spared true or false, plus failure codes budget_poll_sweep_throw, liveness_probe_throw and bridge_interrupt_sweep_throw.
Evidence

[print.ts] spared-budget poll sweep failed; poll disarmed (error in error log when reporting is enabled)

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

See this entry in the whole of v2.1.246 →