{"version":"2.1.327","anchor":"stop-hook-block-cap-now-emits-an-explanatory-message","canonical_anchor":"stop-hook-block-cap-now-emits-an-explanatory-message","heading":"Turns ended by a repeatedly blocking Stop hook now explain why","tier":"notice","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/stop-hook-block-cap-now-emits-an-explanatory-message","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Turns ended by a repeatedly blocking Stop hook now explain why\n\nWhen a Stop hook keeps blocking a turn from ending, Claude Code now says so and names `CLAUDE_CODE_STOP_HOOK_BLOCK_CAP` to raise the limit\n\n**What**\n\nA hook is a command you set up to run at certain points while Claude Code works. A Stop hook runs when Claude is about to finish, and it can block the finish to make Claude keep going. Claude Code already capped how many times in a row this can happen before it ends the turn anyway.\n\nWhen that cap is reached, the turn now ends with a message explaining what happened. It says: \"Set CLAUDE_CODE_STOP_HOOK_BLOCK_CAP to raise this limit.\" You set `CLAUDE_CODE_STOP_HOOK_BLOCK_CAP` as an environment variable, a value you set in your shell before starting Claude Code.\n\n**Why**\n\nIf your Stop hook gets stuck in a loop, you are now told why the turn stopped and how to change the limit, instead of the turn simply ending.\n\n- Area: Hooks\n- Names: `Stop`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}