claude-code
Claude Code Hooks Fail Closed: onFailure "block" Tutorial for Guard Hooks
Claude Code v2.1.295 added onFailure: block to close the fail-open trap in guard hooks: config, timeout tuning, and the Cursor/Codex/Gemini CLI comparison.
Claude Code v2.1.295 added onFailure: block to close the fail-open trap in guard hooks: config, timeout tuning, and the Cursor/Codex/Gemini CLI comparison.