{"version":"2.1.221","anchor":"esc-cancel-has-a-scope-that-leaves-background-tasks-alone","canonical_anchor":"esc-cancel-has-a-scope-that-leaves-background-tasks-alone","heading":"Esc cancel has a scope that leaves background tasks alone","tier":"notice","area":"Background Tasks","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.221\/e\/esc-cancel-has-a-scope-that-leaves-background-tasks-alone","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.221","markdown":"### Esc cancel has a scope that leaves background tasks alone\n\nPressing Esc to cancel a turn no longer kills your background tasks.\n\n**What**\n\nCancelling a turn locally no longer tears down non-durable registry tasks.\n\n**Details**\n\n- `interrupt` takes a second options argument and forwards `scope`.\n- Local cancels pass `{ scope: \"turn-cancel\" }`; remote cancels pass nothing.\n- On the receiving side, the branch that tears down non-durable registry tasks is skipped when the scope is `turn-cancel`.\n- The SDK consumer-error path also interrupts with this scope.\n\n**Evidence**\n\n`turn-cancel`\n\n- Area: Background Tasks\n- Tier: You'll notice\n- Useful: 4\/5\n- Signal: 0\/5"}