{"version":"2.1.105","anchor":"precompact-hook-support","canonical_anchor":"precompact-hook-support","heading":"PreCompact Hook Support","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.105\/e\/precompact-hook-support","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.105","markdown":"### PreCompact Hook Support\n\nConversation compaction now respects a `PreCompact` hook. If the hook blocks, compaction is skipped with the message \"Compaction blocked by PreCompact hook.\" This gives users control over when context compression occurs.\n\n**Evidence**\n\nHook integration (search for `\"Compaction blocked by PreCompact hook\"`)"}