{"version":"2.1.281","anchor":"control-cancel-request-is-queued-rather-than-written-directl","canonical_anchor":"control-cancel-request-is-queued-rather-than-written-directl","heading":"control_cancel_request is queued rather than written directly","tier":"internal","area":"SDK","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281\/e\/control-cancel-request-is-queued-rather-than-written-directl","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281","markdown":"### control_cancel_request is queued rather than written directly\n\nCancel messages for pending requests now go through the outgoing queue instead of being sent immediately\n\n**Unclear.** The finding does not say whether this changes the order in which the other program receives messages.\n\n**What**\n\nWhen Claude Code is driven by another program, the two exchange messages. When a pending request is cancelled, the `control_cancel_request` message is now added to the queue of outgoing messages. It is sent straight away, with any error logged, only if the outgoing channel has already closed.\n\n**Why**\n\nCancel messages now go out through the same queue as other outgoing messages instead of skipping it.\n\n- Area: SDK\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 0\/5"}