Claude Code: Fixes for Freezes From Hooks, MCP Floods and Long Input
Claude Code 2.1.332 fixes a batch of freezes and runaway memory cases. They involve endless hook output, MCP servers flooding standard output, very long @ strings, wildcard-heavy permission rules and rewind points after large file rewrites. Hook logs over about 50,000 characters are now shortened.
Key Takeaways
- Endless hook output no longer causes freezes and runaway memory use in most cases.
- Hook logs over about 50,000 characters are now shortened, avoiding context overflow.
- A local MCP server flooding stdout no longer freezes the terminal or blocks Ctrl+C.
- Permission rules or hook conditions with several wildcards no longer freeze on long commands.
- An
@followed by a very long unbroken string (such as minified CSS) is handled. - Opening a rewind point after a large tracked file was rewritten no longer causes a long freeze.
A round of freeze fixes
Claude Code 2.1.332 addresses several situations in which the terminal could hang or consume large amounts of memory.
Hooks
- A freeze occurred when a permission rule or hook condition with several wildcards was checked against a long command. This is fixed.
- A hook that prints output without end could cause freezes and runaway memory use in most cases. This is fixed in most cases.
- A hook that blocks or fails during a turn, or after
/compact, with a very large log could freeze the session and overflow the context. Text over about 50,000 characters is now shortened.
MCP servers and input
A local MCP server flooding its standard output could freeze the terminal and make it ignore Ctrl+C. This is fixed. A prompt or piped input containing an @ followed by a very long unbroken string, such as minified CSS with an embedded font, no longer freezes the session.
Rewind
Opening a rewind point after a large tracked file had been rewritten could cause a long freeze. That is fixed.
Together these changes make long-running agent sessions more resilient to misbehaving tools and unusual input.