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.228 Home All releases olderv2.1.227 v2.1.229newer
Claude Code v2.1.228

Self-hosted runners wait for a just-finished background task before shutting down

Use it now
Useful2 Signal3
Self-Hosted Runner Notable not in their notes

Self-hosted runners hold shutdown until a finished background task is read; the grace window is configurable.

SELF_HOSTED_RUNNER_BG_RESULT_GRACE_MS
What

On self-hosted runners, a background task that has finished still counts as in-flight until the next turn reads its result, so drain and shutdown wait for it. The window is capped by SELF_HOSTED_RUNNER_BG_RESULT_GRACE_MS in milliseconds; setting it to 0 or an unusable value falls back to the default, so the hold cannot be turned off.

Details
  • The drain-wait help text documents the new hold and the fallback behaviour.
  • The session runner records that a follow-up turn is pending and logs when the wait runs past the normal retire grace period.
Usage
SELF_HOSTED_RUNNER_BG_RESULT_GRACE_MS=5000 claude
Evidence

SELF_HOSTED_RUNNER_BG_RESULT_GRACE_MS

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.228 →