Claude Code v2.1.221 ·
Esc cancel has a scope that leaves background tasks alone
Pressing Esc to cancel a turn no longer kills your background tasks.
You'll noticeTier: how much it should matter to you
4Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
Background TasksArea: what it touches
ImprovementsKind: in v2.1.221,
What probably matters to youSection of the release
What
Cancelling a turn locally no longer tears down non-durable registry tasks.
Details
interrupt takes a second options argument and forwards scope.- Local cancels pass
{ scope: "turn-cancel" }; remote cancels pass nothing. - On the receiving side, the branch that tears down non-durable registry tasks is skipped when the scope is
turn-cancel. - The SDK consumer-error path also interrupts with this scope.
Evidence
turn-cancel
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.221 →