Unverified50% confidenceCautionExact time
If the hook script itself crashes, Claude Code skips that hook and continues executing the original action, i.e. the default behavior when a hook fails is to allow rather than block.
1
Sources
50%
Confidence
Medium-term (~90 days)
Relevance
10/15/2026
First Seen
Valid until: 1/13/2027
Sources
Related Entities
Related Claims
UnverifiedWhen a hook crashes, times out, or the script is missing, Claude Code's default behavior is to let the tool call pass through directly (fail-open).77% similarUnverifiedClaude Code v2.1.295 introduces the onFailure: "block" option for command-type and HTTP-type Hooks, which allows a failed Hook to directly block the corresponding operation.74% similarUnverifiedIn Claude Code Hooks, exit code 0 means pass-through, exit code 2 means hard block (the AI will not retry), and other non-zero exit codes mean soft warnings.70% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1037079API
curl https://kongchang.com/api/v1/knowledge/claims/1037079MCP
get_claim(id=1037079)