Skip to content
Artwork for The Claude Code Changelog
The Claude Code Changelog · Tuesday · 5 min

Failing Closed with Agent SDK Hooks in Claude Code 2.1.317

Learn how Claude Code version 2.1.317 introduces onFailure: "block" for programmatic Agent SDK hook callbacks, preventing unattended agents from failing open on unexpected errors. We also cover protections against account email leakage in tools, isolated transcripts for nested headless sessions, and full-file re-reading behavior.

0:00-5:06

transcript

No transcript — this publisher did not publish one.

show notes

Learn how Claude Code version 2.1.317 introduces onFailure: "block" for programmatic Agent SDK hook callbacks, preventing unattended agents from failing open on unexpected errors. We also cover protections against account email leakage in tools, isolated transcripts for nested headless sessions, and full-file re-reading behavior.