feature
Agent SDK hook callbacks now support onFailure block to prevent action execution
code.claude.comagent
Added onFailure: "block" option for Agent SDK hook callbacks, allowing callbacks to block an action if they fail rather than allowing it to proceed. This gives SDK users more control over critical operations.
Stacks this affects
Claude Code ships in 4 tested stacks here.
More Claude Code
pricingClaude Code Team Premium drops from $125 to $100 per monthpricingClaude Code Team Standard drops from $25 to $20 per monthfeatureAdmin API gains new cost report endpoint for organization spend analyticsfeatureWeb and shell tool calls now prompt before sending email addresses to external networksfeatureSelf-hosted runners can now control nested session ID behavior with environment variable