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.219 Home All releases olderv2.1.218 v2.1.220newer
Claude Code v2.1.219

SDK interrupt can now cancel everything queued in one round-trip

Use it now
Useful4 Signal0
SDK Protocol Notable

Send interrupt with cancel_queued true to stop the current turn and everything queued behind it.

cancel_queuedinterruptcancel_async_message
What

The interrupt control_request takes a new optional boolean cancel_queued that sweeps the whole main-thread queue along with the abort, so a remote UI can offer a "Stop means stop everything" button without walking uuids one at a time.

Details
  • When true, every uuid-stamped main-thread command still queued, and any already dequeued for the imminent turn, is cancelled alongside the abort and emits a terminal 'cancelled' lifecycle
  • The response returns those uuids under a new cancelled array, with still_queued always empty
  • A wrapper that wants per-uuid control leaves the flag false and keeps using cancel_async_message
  • Absent or false preserves the existing interrupt_receipt_v1 behaviour exactly
Usage
{"type":"control_request","request":{"subtype":"interrupt","cancel_queued":true}}
Evidence

When true, the interrupt also cancels every uuid-stamped main-thread command still in the queue

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