{"version":"2.1.242","anchor":"sdk-interrupt-can-cancel-queued-messages-and-reports-which-o","canonical_anchor":"sdk-interrupt-can-cancel-queued-messages-and-reports-which-o","heading":"SDK interrupt() can cancel queued messages and reports which ones","tier":"use","area":"Agents","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.242\/e\/sdk-interrupt-can-cancel-queued-messages-and-reports-which-o","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.242","markdown":"### SDK `interrupt()` can cancel queued messages and reports which ones\n\nSDK interrupt can now cancel queued messages and tells you which ones it cancelled.\n\n**What**\n\nIn 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.\n\n**Details**\n\n- `cancelQueued: true` adds `cancel_queued: true` to the control request sent to the CLI.\n- Available to any SDK caller on this build, with no flag.\n- The surrounding SDK transport and query code was re-bundled from lazily loaded module wrappers into plain top-level classes, with no behaviour change.\n\n**Usage**\n\n`const result = await query.interrupt({ cancelQueued: true }); console.log(result.cancelled, result.still_queued);` **Evidence** `cancel_queued`\n\n- Area: Agents\n- Names: `cancelQueued`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 2\/5"}