{"version":"2.1.333","anchor":"sessionload-hook-event-excluded-from-hook-origin-check-too","canonical_anchor":"sessionload-hook-event-excluded-from-hook-origin-check-too","heading":"Session-load hooks now get the same origin check as prompt-submit hooks","tier":"internal","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/sessionload-hook-event-excluded-from-hook-origin-check-too","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Session-load hooks now get the same origin check as prompt-submit hooks\n\nHooks for the session.load event now go through the same early step as prompt.submit hooks when Claude Code checks where a hook came from\n\n**Unclear.** It is not clear what this changes in practice for hooks that run on these events.\n\n**What**\n\nA hook is a command that runs automatically when a set event happens in Claude Code. Claude Code checks where each hook came from, for example whether it is built in or was added by a plugin.\n\nIn that check, the `session.load` event now takes the same early step that the `prompt.submit` event already took. The check that decides whether prompt hooks are not built in now also depends on one more condition.\n\n**Why**\n\nHooks from plugins may behave a little differently at these two events.\n\n- Area: Hooks\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}