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.247 Home All releases olderv2.1.246 v2.1.248newer
Claude Code v2.1.247

Prompts typed mid-turn are checked by prompt-submit hooks at Enter

You'll notice
Useful4 Signal2
Hooks

Prompts you type mid-turn hit your prompt-submit hooks at Enter, so rejections show up immediately.

What

A prompt you type while Claude is still working is now run past your prompt-submit hooks the moment you press Enter, instead of only when the queue drains. If a hook rejects it, the prompt is dropped from the queue straight away and you see the hook's message, or Prompt dropped by a hook if it gave none. No flag guards this.

Details
  • The queued entry is marked as awaiting screening, the hook chain runs against a context built for the turn in progress, and the result is settled back onto the queue entry by its id.
  • Drops are counted against the queued-prompt metric with the reason dropped_by_hook.
  • The notification is raised with requeue-on-preempt set, so it survives being interrupted.
  • If the hook chain throws, the error is logged and the prompt is left to the normal drain path unchanged.
Evidence

Prompt dropped by a hook

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

See this entry in the whole of v2.1.247 →