Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.246 Home All releases olderv2.1.245 v2.1.247newer
Claude Code v2.1.246

Plugins can cancel the running turn, up to 50 times a session

Use it now
Useful3 Signal4
Plugins Notable not in their notes

A plugin hook can now cancel the running turn, once every two seconds and fifty times per session.

$.turn.abort
What

A plugin hook can now stop the turn that is currently running by calling $.turn.abort({ turnId }). Each plugin is limited to one abort every 2000ms, and the whole session is capped at 50 aborts.

Details
  • The call is refused when no turn is running, when the id given is not the running turn, and when that turn is already ending.
  • The two ceilings are named TURN_ABORT_SESSION_COUNT (50) and TURN_ABORT_MIN_INTERVAL_MS (2000).
  • A successful abort writes a line into the plugin UI log, so a turn cut short by a plugin is attributable.
  • Part of the host operation table rather than a separately flagged feature.
Evidence

TURN_ABORT_MIN_INTERVAL_MS

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.246 →