You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
HooksArea: what it touches
Internal ChangesKind: in v2.1.326,
ImprovementsSection of the release
Unclear It is not clear whether a mismatched reply is rejected or only produces a warning.
What
Hooks are your own scripts that Claude Code runs at set points, such as before a tool call. A hook's reply can include a hookSpecificOutput section, which carries a hookEventName saying which event the reply is meant for.
Claude Code now checks that name against the event the hook actually ran for:
If they differ, the hookSpecificOutput is ignored, a warning is logged telling you to set hookEventName to the right event, and the original prompt is suppressed.
A reply whose decision is "block" and whose hookSpecificOutput names a different event is treated as a mismatch.
Before, hookSpecificOutput was used without checking the event name.
Why
A hook that returns the wrong hookEventName will stop having its specific output applied. If a hook seems to have stopped working, check the warning and the event name it returns.
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear whether a mismatched reply is rejected or only produces a warning.