{"version":"2.1.335","anchor":"new-interrupt-hook-event-fired-on-interrupt","canonical_anchor":"new-interrupt-hook-event-fired-on-interrupt","heading":"New Interrupt hook event, with interrupts marked by who caused them","tier":"use","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/new-interrupt-hook-event-fired-on-interrupt","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### New Interrupt hook event, with interrupts marked by who caused them\n\nHooks can now run when a turn is interrupted, and interrupts can be marked as coming from a user, the session or the system\n\n**What**\n\nA hook is a command you configure to run automatically when something happens in Claude Code. A new hook event, `Interrupt`, fires once when an interrupt ends the main conversation's turn.\n\n- Matching: the hook is matched on the interrupt's source, which is `user`, `session` or `system`, the same way `SessionStart` is matched on its source.\n\n- Input: the hook receives JSON with `hook_event_name` set to `\"Interrupt\"`, a `source`, a `reason` (`stop`, `permission_denied`, `rewind` or `other`) and, where known, `via` (`terminal` or `client`).\n\n- Output: the hook's output and exit code are ignored, so it cannot block or change the interrupt.\n\n- Skipped: it does not run for subagents (helpers Claude Code starts for part of a task), when settings hooks are turned off, or when no `Interrupt` hook is registered.\n\n- Remote switch: the hook stops running only if the switch `tengu_jolly_tulip` is explicitly set to false. Nothing has been read about this switch.\n\n- Control requests: messages that remote and SDK senders use to control a session gain an optional, internal `interrupted_by` field with values `session` or `system`, marking an interrupt that no person asked for.\n\n**Why**\n\nYou can now attach your own actions to interrupts, and tell an interrupt you caused apart from one triggered by the session or the system.\n\n- Flag `tengu_jolly_tulip`: Not enough to say (read for one account on one subscription tier against v2.1.335; this account: no value returned, anonymous baseline: no value returned, compiled default: on) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: Hooks\n- Names: `Interrupt`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}