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.26 Home All releases olderv2.1.25 v2.1.27newer
Claude Code v2.1.26

Hook Interrupt Support

What

Hooks can now interrupt and abort tool execution. When a hook returns a response with the interrupt flag set, the tool's abort controller is triggered, stopping the in-progress operation.

Details
  • Applies to both pre-tool and post-tool hooks
  • When a hook signals interrupt, the tool execution is aborted via abortController.abort()
  • The interrupt is logged with tool name and hook message for debugging
  • This also applies to SDK permission prompts: a deny with interrupt will abort the controller
Evidence

Hook abort on interrupt (search for "Hook interrupt: tool=") and SDK deny+interrupt (search for "SDK permission prompt deny+interrupt: tool=")

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