Unverified50% confidenceFactExact time
Claude 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.
1
Sources
50%
Confidence
Medium-term (~90 days)
Relevance
10/8/2026
First Seen
Valid until: 1/6/2027
Sources
Related Entities
Related Claims
UnverifiedIn 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.71% similarUnverifiedClaude Code triggers predefined Hook events at key execution nodes, and developers can write shell scripts to listen for these events and push status to the web server on the ESP32 via HTTP requests.66% similarUnverifiedClaude Code Hooks consists of two parts: a Matcher (trigger condition) and Hook behavior (containing two fields: type and execution event).63% 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.62% similarUnverifiedClaude Code内置了Hook机制,允许开发者在请求发送到模型之前拦截并处理输入内容62% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/989356API
curl https://kongchang.com/api/v1/knowledge/claims/989356MCP
get_claim(id=989356)