{"version":"2.1.332","anchor":"hook-stdoutstderr-gets-backpressure-and-capped-buffers","canonical_anchor":"hook-stdoutstderr-gets-backpressure-and-capped-buffers","heading":"Hooks that print a lot of output no longer grow memory without limit","tier":"notice","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332\/e\/hook-stdoutstderr-gets-backpressure-and-capped-buffers","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332","markdown":"### Hooks that print a lot of output no longer grow memory without limit\n\nClaude Code now pauses reading a hook's output once it passes a million characters, so a noisy hook cannot pile up memory\n\n**What**\n\nA hook is a script or command you configure Claude Code to run at set points. Claude Code reads what each hook prints. It now pauses reading once the combined output passes 1,000,000 characters, and resumes a moment later, instead of collecting everything as fast as it arrives. Before, only status line hooks were limited, and they were stopped outright at that size.\n\nFor async hooks, which run in the background, Claude Code now waits for a full line or a closing `}` before deciding how to read the first line of output.\n\n**Why**\n\nA hook that prints a large amount of output is less likely to bloat Claude Code's memory or make it stall.\n\n- Area: Hooks\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}