Follow Discord
Sweep 08 Oct 2026 · 18:53Z Build v2.1.295 516 read Stable v2.1.286 Latest v2.1.295 Next v2.1.295 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.295 ·

Hooks can be set to block when they fail

Command and http hooks accept a new onFailure field, and setting it to "block" makes a failing hook block the action

Use it now Notable New Features
JSON All of v2.1.295
Use it nowTier: how much it should matter to you
5Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
HooksArea: what it touches
New FeaturesKind: in v2.1.295,
What probably matters to youSection of the release
What

Hooks are your own commands or web requests that Claude Code runs at set moments, for example before a tool runs. Command hooks and http hooks now accept an onFailure field. Set it to "block" and a failure of that hook is treated as blocking, so the action it guards does not go ahead.

This does not apply to command hooks set to run in the background with async or asyncRewake. When a hook blocks this way, the reason given is blocking because onFailure is "block".

Why

By default a failing hook does not stop anything. A hook that enforces a rule can now fail closed, so a crash or error in the hook stops the action instead of letting it through unchecked.

Read from
Names in the bundleonFailure

See this entry in the whole of v2.1.295 →

Feedback