Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.242 ·

SDK interrupt() can cancel queued messages and reports which ones

SDK interrupt can now cancel queued messages and tells you which ones it cancelled.

Use it now Notable No documentation found New Features
JSON All of v2.1.242
Use it nowTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
AgentsArea: what it touches
New FeaturesKind: in v2.1.242,
What probably matters to youSection of the release
What

In the Agent SDK, interrupt() now accepts an options object. Passing cancelQueued: true also cancels messages waiting in the queue, and the resolved value includes a cancelled list of message ids alongside the existing still_queued. Previously it took no arguments.

Details
  • cancelQueued: true adds cancel_queued: true to the control request sent to the CLI.
  • Available to any SDK caller on this build, with no flag.
  • The surrounding SDK transport and query code was re-bundled from lazily loaded module wrappers into plain top-level classes, with no behaviour change.
Usage
const result = await query.interrupt({ cancelQueued: true });
console.log(result.cancelled, result.still_queued);
Evidence

cancel_queued

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

Read from
Names in the bundlecancelQueued

See this entry in the whole of v2.1.242 →

Feedback