Vibe Coding
Claude Code v2.1.214 Fixes Hooks With Exit Code 2 Silently Failing to Block When Their JSON Fails Schema Validation
Documented behavior is that a hook exiting 2 blocks the tool call. In practice, if the hook's stdout JSON failed schema validation, the block was dropped — meaning a guard hook could report failure and the tool would run anyway. v2.1.214 fixes this. Combined with the same release's fix for `continue:false` halts being dropped when a tool fails or completes mid-stream (from v2.1.212), the pattern is clear: hook-based guardrails have been failing open in several edge cases. Test your blocking hooks against a deliberately malformed payload before trusting them as a safety layer.
↳ Follow the thread