Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
SDKArea: what it touches
Internal ChangesKind: in v2.1.333,
Internal ChangesSection of the release
Unclear It is not clear whether Claude Code actually sends the 'restart' reason yet or only describes it.
What
The 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.
Separately, 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.
Why
Apps built on the SDK that handle interrupted turns may need to expect the new 'restart' reason.
Read from
Names in the bundleturn_preempted
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear whether Claude Code actually sends the 'restart' reason yet or only describes it.