Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.327 ·

Turns ended by a repeatedly blocking Stop hook now explain why

When 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

You'll notice Improvements
JSON All of v2.1.327
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.327,
ImprovementsSection of the release
What

A 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.

When 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.

Why

If 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.

Read from
Names in the bundleStop
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Added since A small documentation edit on Continue local sessions from any device with Remote Control touched a line naming Stop after this was published. When the program file is gone and Claude Code finds no newer version to run, new sessions fail. The terminal shows an error such as `Session failed: program not found:`, or `Session failed: spawn error:` with `ENOENT`. Stop the server, [in… remote-control see the edit
Confirmed since Anthropic's documentation has since written up Stop, on Claude Code changelog. * Fixed `/goal` removing a skill's Stop hook, or ending early on another hook's result, when both had the same wording changelog see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up Stop, on Claude Code changelog.

See this entry in the whole of v2.1.327 →

Feedback