You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
HooksArea: what it touches
ImprovementsKind: in v2.1.334,
ImprovementsSection of the release
What
Compaction is when Claude Code summarises the earlier part of a conversation so it fits in what the model can read. A PreCompact hook is a command you set up to run before compaction, and it can block it.
Claude Code now has a message for the case where it compacts anyway: "Conversation too long, so it was compacted despite a PreCompact hook's block."
Why
If you write PreCompact hooks, this tells you a block from your hook is not final. When the conversation is too long, compaction can still go ahead.