{"version":"2.1.335","anchor":"sessionend-hook-detection-extended-to-modules","canonical_anchor":"sessionend-hook-detection-extended-to-modules","heading":"Claude Code finds more kinds of SessionEnd hooks when it exits","tier":"notice","area":"Hooks","scope":"both","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/sessionend-hook-detection-extended-to-modules","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### Claude Code finds more kinds of `SessionEnd` hooks when it exits\n\nAt shutdown, the check for `SessionEnd` hooks now also counts container hooks, administrator-managed hooks and installed modules\n\n**What**\n\nA `SessionEnd` hook is a command Claude Code runs when a session ends. When Claude Code shuts down, it checks whether any such hook exists. That check used to look only at hooks in your settings. It now also counts:\n\n- hooks for a container\n\n- hooks set at the managed level, meaning by an administrator\n\n- installed modules that run when a session ends\n\n**Why**\n\nModule-based and managed `SessionEnd` hooks are now taken into account when Claude Code exits.\n\n- Area: Hooks\n- Names: `SessionEnd`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: both\n- Heads-up: no"}