{"name":"hookEventName","slug":"hookeventname","family":"setting","title":"Settings keys","noun":"settings key","description":"Once you quit, hooks stop firing except SessionEnd and Ctrl-C no longer aborts the request.","description_source":"entry","described_by":{"version":"2.1.236","anchor":"hooks-and-ctrl-c-go-quiet-once-shutdown-has-started"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.330","builds":0,"mined_builds":169,"first_cited":{"version":"2.1.236","released_at":"2026-08-19 18:45:14","spans":4}},"aliases":[],"entries":[{"version":"2.1.326","anchor":"hook-output-block-decision-with-a-mismatched-hookeventname","heading":"A hook that blocks while naming the wrong event is flagged as mismatched","line":"Claude Code now flags a hook reply that blocks but names a different event from the one running, except for `PermissionRequest`","released_at":"2026-11-16 18:43:39","reason":"found in this entry's text"},{"version":"2.1.326","anchor":"hook-output-naming-a-different-hookeventname-is-ignored-with","heading":"Hook output is ignored when it names a different hook event","line":"If a hook's reply names a different event than the one it ran for, Claude Code now ignores that reply and logs a warning","released_at":"2026-11-16 18:43:39","reason":"named in this entry, found in this entry's text"},{"version":"2.1.251","anchor":"new-premodelswitch-and-postmodelswitch-hooks","heading":"New PreModelSwitch and PostModelSwitch hooks","line":"New PreModelSwitch and PostModelSwitch hooks let you gate or annotate every model change.","released_at":"2026-08-28 15:34:26","reason":"found in this entry's text"},{"version":"2.1.236","anchor":"hooks-and-ctrl-c-go-quiet-once-shutdown-has-started","heading":"Hooks and Ctrl-C go quiet once shutdown has started","line":"Once you quit, hooks stop firing except SessionEnd and Ctrl-C no longer aborts the request.","released_at":"2026-08-19 18:45:14","reason":"found in this entry's text"}],"entries_total":4,"docs":[{"source":"claude-code","path":"agent-sdk\/claude-code-features","title":"Use Claude Code features in the SDK","documented":false},{"source":"claude-code","path":"agent-sdk\/hooks","title":"Intercept and control agent behavior with hooks","documented":false},{"source":"claude-code","path":"agent-sdk\/python","title":"Agent SDK reference - Python","documented":false},{"source":"claude-code","path":"agent-sdk\/typescript","title":"Agent SDK reference - TypeScript","documented":false},{"source":"claude-code","path":"code-mode","title":"Run tool calls from code with Code Mode","documented":false},{"source":"claude-code","path":"costs","title":"Manage costs effectively","documented":false},{"source":"claude-code","path":"hooks","title":"Hooks reference","documented":false},{"source":"claude-code","path":"hooks-guide","title":"Automate actions with hooks","documented":false}],"docs_total":8,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/setting\/hookeventname","family_url":"https:\/\/changelogs.core-directive.com\/reference\/setting.json"}