Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.334 ·

Claude Code tells you when it compacts despite a PreCompact hook's block

A new message says the conversation was too long, so Claude Code compacted it even though a PreCompact hook blocked it

You'll notice Improvements
JSON All of v2.1.334
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.

Read from
Names in the bundlePreCompact
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeFixed the reason being left out when an Agent SDK PreCompact callback hook blocks a compaction

See this entry in the whole of v2.1.334 →

Feedback