Unclear What the new onFailure setting does and which values it accepts is not stated.
Hooks are actions you configure Claude Code to run at certain points, such as before or after it uses a tool. An HTTP hook sends a web request to an address you choose. The settings for an HTTP hook now accept an onFailure field.
Separately, when Claude Code saves a file and works out its extension from the file's type, it now recognises more types. Before, all of the following were saved with the generic extension .bin:
ico(icons)css(stylesheets)js(scripts)xmlwebmanifestwoffandwoff2(fonts)ttfandotf(fonts)wasm(WebAssembly programs)
Files such as icons, stylesheets, scripts and fonts are now saved with names that say what they are, so other programs can open them correctly.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
onFailure?: "continue" | "block"; // "block" blocks the action when a callback failsagent-sdk/typescript see the edit
| `onFailure` | no | What happens to the action when the hook fails: `"continue"`, the default, or `"block"`. See [Block the action when a hook fails](#block-the-action-when-a-hook-fails). Requires Claude Code v2.1.295 or later |hooks see the edit
What the new `onFailure` setting does and which values it accepts is not stated.
Anthropic's documentation has since written up onFailure, on Hooks reference.