Claude Code 2.1.295 lets a failed hook block, and its docs still say not to rely on one
Claude Code 2.1.295 adds a setting called onFailure: "block". With it set, a command or HTTP hook "that can't start, times out, or exits with an unexpected code blocks the action instead of letting it through", the changelog says. Without it, a hook that falls over stops nothing. The npm registry puts 2.1.295 at 18:22:58 UTC on October 8.

The Claude Code plugin directory, with the Unity plugin listed under Partners. Image: Anthropic
Hooks are the shell commands and HTTP endpoints Claude Code calls before and after it does things, and one common reason to write one is to stop something happening.
The live documentation describes the old behaviour, and only that
Anthropic's hooks reference, read at 21:04 UTC on October 8, still tells you not to lean on one: "A timed-out command, http, or mcp_tool hook doesn't block the tool call. The call continues through the normal permission flow, so don't count on a stalled hook to act as a gate." For HTTP hooks it is blunter: a non-2xx status is a "non-blocking error, execution continues", and so is a connection failure.
That page contains no occurrence of onFailure at all, and neither does Anthropic's separate hooks guide, both read at 21:04 UTC on October 8. Two Anthropic documents give different answers about the same product on the same day: one says the setting exists, the other says a failed hook does not block.
Default timeouts make the gap concrete. The reference gives 600 seconds for command, http and mcp_tool hooks, 30 seconds for prompt hooks and 60 for agent hooks, with the first three dropping to 30 on prompt submission and model switches and to 10 on message display. Exit codes are their own trap: Anthropic warns that without valid JSON on stdout, Claude Code treats exit code 1 as a non-blocking error "and proceeds with the action, even though 1 is the conventional Unix failure code". One family of hooks never had the problem, because an Agent SDK callback hook that exceeds its timeout does block the tool call.
Two releases on October 8 both tightened guards
Version 2.1.294 shipped two fixes at 03:42:57 UTC on October 8. The first: "Fixed prompt and agent hooks written as instructions (such as 'Block commands that...') allowing what they should block." The second adjusts how prompt hooks on Stop and SubagentStop are judged, so Claude is less likely to stop early.
2.1.295 arrived 14 hours and 40 minutes later, and it is a far bigger release: Anthropic's own counts are 13 improvements and 97 bug fixes. Several more of them are guards that were not holding. A mod's hook was being handed a deeply nested tool input cut short with no error, "so a guard could pass content it never saw". The --tools and --restricted flags were not applying to built-in tools that register after launch. A site deny rule written with port 80 was not being applied by Claude in Chrome to plain HTTP pages on that host.
The new setting is opt-in. Nothing on Anthropic's pages says the default changed, so a hook written last month behaves on 2.1.295 the way it behaved on 2.1.294 unless its author goes back and adds the line. Earlier releases patched guards the same way, by tightening a check rather than changing a default: 2.1.288 closed a route where a bash -c wrapper walked past the guard on destructive rm commands, and mods arrived in 2.1.287 with a warning that they are not sandboxed.
Version numbers and publish times were read from the npm registry at 21:03 UTC on October 8. Anthropic edits its own release notes after publication, so an entry dated October 8 was not necessarily there on October 8, and the quotations above are what the changelog said when it was read at 21:04 UTC on October 8.