{"version":"2.1.326","anchor":"hook-ownership-organization-required-plugins-treated-as-the","canonical_anchor":"hook-ownership-organization-required-plugins-treated-as-the","heading":"SessionEnd hooks from organization-required plugins can count as the organization's","tier":"internal","area":"Hooks","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/hook-ownership-organization-required-plugins-treated-as-the","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### SessionEnd hooks from organization-required plugins can count as the organization's\n\nA `SessionEnd` hook from a plugin your organization requires can now count as the organization's, so its time limit is the organization's\n\n**Unclear.** What the further check requires for a hook to count as the organization's is not known.\n\n**What**\n\nA hook is a command Claude Code runs at a set moment, and a `SessionEnd` hook runs when a session terminates. Claude Code decides whether each such hook belongs to your organization, because that decides which time limit applies to it.\n\n- A `SessionEnd` hook from a plugin marked as required by your organization now counts as the organization's when a further check also passes, and its time limit is then read as the organization's.\n\n- When Claude Code cannot work out who owns a hook, the answer is now \"unknown\". Before, a failure counted the hook as the organization's.\n\n**Why**\n\nThis changes whose time limit governs `SessionEnd` hooks.\n\n- Area: Hooks\n- Names: `SessionEnd`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: org\n- Heads-up: no"}