Prompts you type mid-turn hit your prompt-submit hooks at Enter, so rejections show up immediately.
What's wrong with this entry?
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.
- 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.
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.
-
v2.1.234
SessionEnd hooks lose the
bypass_permissions_disabledreasonBoth mention hook
-
v2.1.236
Hooks and Ctrl-C go quiet once shutdown has started
Both mention hook
-
v2.1.236
Shutdown seals transcript writes and gives SessionEnd hooks more time
Both mention hook