Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.299 ·

Prompts stopped by hooks now come with a reason

When a UserPromptSubmit hook or prompt.submit handler stops a prompt, Claude Code now records which kind of stop it was

You'll notice Improvements
JSON All of v2.1.299
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
HooksArea: what it touches
ImprovementsKind: in v2.1.299,
ImprovementsSection of the release
What

When a UserPromptSubmit hook or a prompt.submit handler stops your prompt, Claude Code now tags why, where before the block message was the only sign. The reasons are:

  • blocked_by_hook
  • no_verdict
  • stopped_by_hook
  • dropped_by_hook
  • not_passed_on
  • rewrite_unplaceable

The last one means a hook rewrote the prompt but the rewrite could not be put in place. In that case the prompt now ends there.

Why

Tools built on the SDK (the kit for building on Claude Code) and usage reports can now tell why a prompt was stopped.

Read from
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up prompt.submit, on Use the mods API. Apart from `$.prompt.submit` and `$.command.run`, this handling of calls and background work after an interruption requires Claude Code v2.1.304 or later. plugins/mods/api see the edit
Confirmed since Anthropic's documentation has since written up UserPromptSubmit, on Intercept and control agent behavior with hooks. * `UserPromptSubmit` and [`UserPromptExpansion`](/docs/en/hooks#userpromptexpansion): Claude Code blocks the prompt with a message naming the hook and the timeout, and the session continues. Before v2.1.208, Claude Code ended the query wit… agent-sdk/hooks see the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up UserPromptSubmit, on Intercept and control agent behavior with hooks.
Anthropic's release notes agreeAdded $.prompt.media so a prompt.submit hook of a mod installed by managed settings can read the bytes of an image or document attached to…

See this entry in the whole of v2.1.299 →

Feedback