{"version":"2.1.334","anchor":"reactive-compact-respects-org-blocked-precompact-hook","canonical_anchor":"reactive-compact-respects-org-blocked-precompact-hook","heading":"PreCompact hooks set by your organisation now stop forced compaction","tier":"notice","area":"Hooks","scope":"org","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/reactive-compact-respects-org-blocked-precompact-hook","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### PreCompact hooks set by your organisation now stop forced compaction\n\nWhen a request is too big to send, Claude Code no longer compacts anyway if a PreCompact hook from your organisation blocks it\n\n**What**\n\nWhen a request is too large to send, Claude Code compacts the conversation (shortens it by summarising earlier parts) and does so even if a `PreCompact` hook blocks it. That no longer applies to blocks from your organisation. If the blocking hook comes from your organisation, the compaction does not run and Claude Code reports `blocked_by_organization`. Blocks from other hooks are still overridden in this case.\n\n**Why**\n\nAn organisation's policy against compaction is no longer overridden, even when the conversation has grown too large to send.\n\n- Area: Hooks\n- Names: `PreCompact`, `blocked_by_organization`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: org\n- Heads-up: yes"}