{"version":"2.1.333","anchor":"turn-preempt-reason-restart-and-a-plan-limit-check-using-t","canonical_anchor":"turn-preempt-reason-restart-and-a-plan-limit-check-using-t","heading":"SDK turn interruptions document a new 'restart' reason, and usage-limit checks project cost","tier":"internal","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/turn-preempt-reason-restart-and-a-plan-limit-check-using-t","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### SDK turn interruptions document a new 'restart' reason, and usage-limit checks project cost\n\nThe SDK message for an interrupted turn now documents a 'restart' reason, and a usage-limit check now projects a run's token cost against the limit\n\n**Unclear.** It is not clear whether Claude Code actually sends the 'restart' reason yet or only describes it.\n\n**What**\n\nThe Agent SDK, the toolkit for building apps on top of Claude Code, has a message called `turn_preempted` that reports why a turn was cut short. Its description previously listed only `rapid_followup`. It now also lists `'restart'`, described as a message marked `may_restart_turn` that was waiting while a model request in the turn had shown nothing but thinking.\n\nSeparately, a check against your usage window now estimates what a run will cost, as a percentage of the limit per million tokens, and compares that with the limit. Before, it looked only at the percentage already used.\n\n**Why**\n\nApps built on the SDK that handle interrupted turns may need to expect the new `'restart'` reason.\n\n- Area: SDK\n- Names: `turn_preempted`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}