{"version":"2.1.326","anchor":"hook-output-naming-a-different-hookeventname-is-ignored-with","canonical_anchor":"hook-output-naming-a-different-hookeventname-is-ignored-with","heading":"Hook output naming the wrong hookEventName is now ignored with a warning","tier":"notice","area":"Hooks","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/hook-output-naming-a-different-hookeventname-is-ignored-with","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Hook output naming the wrong hookEventName is now ignored with a warning\n\nWhen a hook's hookSpecificOutput names a different event than the one it ran for, Claude Code now ignores that output and logs a warning\n\n**Unclear.** It is not clear which prompt is held back when the event names don't match.\n\n**What**\n\nHooks 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.\n\nClaude Code now checks that name against the event the hook actually ran for:\n\n- 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.\n\n- A reply whose decision is \"block\" and whose `hookSpecificOutput` names a different event is treated as a mismatch.\n\n- The check is skipped for `PermissionRequest` hooks.\n\nBefore, `hookSpecificOutput` was used without checking the event name.\n\n**Why**\n\nA 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.\n\n- Area: Hooks\n- Names: `hookSpecificOutput`, `hookEventName`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}