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.247 Home All releases olderv2.1.246 v2.1.248newer
Claude Code v2.1.247

Durable event uploads are tracked per batch on self-hosted runners

Under the hood
Useful2 Signal4
Cloud Sessions

On your own compute, event batches are tracked so dropped ones fail fast instead of hanging.

What

The cloud worker client now reports every batch of durable session events as it moves through sending, accepted or failed, and maps the requests carried in a batch back to their callers so a request in a dropped batch is rejected with a delivery-specific error instead of staying pending forever. The reporting and drop handlers are optional arguments, and the only caller that supplies them gates them to sessions on your own compute, so an ordinary local or cloud session behaves exactly as before.

Details
  • Both handlers are installed only when the CLAUDE_CODE_REMOTE environment variable is set and CLAUDE_CODE_ENVIRONMENT_KIND is byoc, the setting for bring-your-own-compute runners; local CLI, ordinary cloud and Remote Control sessions keep the previous behaviour and the upload reporter returns immediately, leaving the bookkeeping invisible.
  • The drop handler fires when a batch is discarded on a 4xx response from the server, and the rejection error class reflects how far delivery got.
  • Ephemeral batches are not reported, only durable ones.
  • A handler that throws is caught and logged as a warning reading CCRClient: onDurableEventsDropped threw; batch still dropped: , and the batch's fate is unchanged.
  • The gate as compiled is a zero-argument helper call that could in principle be a differently named check, but no competing definition appears in the file.
Evidence

onDurableEventsDropped, CCRClient: onDurableEventsDropped threw; batch still dropped: , onDurableEventsUpload

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

See this entry in the whole of v2.1.247 →