Unverified50% confidenceDecision RuleExact time
For Claude Code users, upgrading to v2.1.295 and configuring onFailure: block is the most direct way to obtain fail-closed behavior.
1
Sources
50%
Confidence
Medium-term (~90 days)
Relevance
10/12/2026
First Seen
Valid until: 1/10/2027
Sources
Related Entities
Related Claims
UnverifiedClaude 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.69% similarUnverifiedWhen 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).68% similarUnverifiedClaude Code可通过添加--dangerously-skip-permissions启动参数来减少确认频次66% 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.66% similarUnverifiedClaude Code v2.1.294 is a minor update focused on stability and behavioral fixes, centered on the instruction-parsing logic of prompt hooks and agent hooks.66% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1009934API
curl https://kongchang.com/api/v1/knowledge/claims/1009934MCP
get_claim(id=1009934)