Follow Discord
Sweep 24 Nov 2026 · 22:58Z Build v2.1.332 549 read Stable v2.1.325 Latest v2.1.331 Next v2.1.332 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.332 ·

PostCompact hook output is formatted before it is shown

Output from a PostCompact hook is now passed through a formatter before it appears in the success or failure message

You'll notice Improvements
JSON All of v2.1.332
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
HooksArea: what it touches
ImprovementsKind: in v2.1.332,
ImprovementsSection of the release

Unclear It is not clear what the formatting step does to the output, such as whether it shortens it.

What

A PostCompact hook is a command you configure to run after Claude Code compacts the conversation (summarizes it to free up space). Claude Code reports whether the hook "completed successfully" or "failed" and includes its output. That output now goes through a formatting step first. Before, it was the hook's raw output with surrounding blank space trimmed.

Why

If your hook prints long or unusual output, what you see in these messages may now look different from what the hook printed.

Read from
Names in the bundlePostCompact
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear what the formatting step does to the output, such as whether it shortens it.

See this entry in the whole of v2.1.332 →

Feedback