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 idle detection now waits for background tasks and undelivered notifications

You'll notice
Useful3 Signal2
Headless Mode

Headless runs no longer look finished while background tasks or undelivered notifications remain.

What

In print/headless mode, the check that decides a session has gone idle previously only looked for no active turn and nothing in flight. It now also requires no live background tasks, no active team context, and no pending task notification, so a headless run with background work or an undelivered task notification no longer looks finished.

Details
  • Idle is computed from the current task list plus outstanding waits and the current time, and reported under the existing cli_idle_gate_report_idle event.
  • Extra diagnostics on this path are only emitted when the environment variable CLAUDE_CODE_BG_TASKS_REPORT_RUNNING is set.
  • The plugin and agent registry refresh function now takes an options bag that it forwards to the agent-definition loader.
Evidence

cli_idle_gate_report_idle

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 →