{"version":"2.1.337","anchor":"hook-source-reported-on-prompt-submit-end-events-abort-stam","canonical_anchor":"hook-source-reported-on-prompt-submit-end-events-abort-stam","heading":"Hook results now name the plugin or skill whose hook acted","tier":"internal","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/hook-source-reported-on-prompt-submit-end-events-abort-stam","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Hook results now name the plugin or skill whose hook acted\n\nPrompt-submit endings and hook-blocked events now carry a hook source naming the plugin or skill behind the hook, plus related reporting changes\n\n**Unclear.** It is not clear which message type carries the new `hook_source` field.\n\n**What**\n\nA hook is a script or command that runs automatically at a set point, for example when you submit a prompt. When a hook blocks or stops something, Claude Code now records where that hook came from.\n\n- The message sent when a prompt submission ends now carries `hook_source` when one is set.\n\n- `UserPromptSubmit` hook blocks and stops now carry `hookSource`.\n\n- The hook-blocked event format gains an optional `hook_source` field. Its value is `plugin:<name>`, `plugin`, `skill:<name>` or `skill`.\n\n- A `no_verdict` result is now reported only when the hook fails or times out. Before, it always carried the reason the prompt ended.\n\n- Interrupt messages now carry a cancellation stamp instead of setting `interruptedMessageId`.\n\n**Why**\n\nPrograms built on the Agent SDK, which lets developers drive Claude Code from their own code, may see these new fields. They can use them to show which plugin or skill blocked a prompt or an action. Code that read `interruptedMessageId` from interrupt messages should check for the new form.\n\n- Area: Hooks\n- Names: `hook_source`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}