{"version":"2.1.335","anchor":"posttooluse-hook-failures-are-now-contained","canonical_anchor":"posttooluse-hook-failures-are-now-contained","heading":"A failing PostToolUse hook no longer breaks the tool call","tier":"notice","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/posttooluse-hook-failures-are-now-contained","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### A failing PostToolUse hook no longer breaks the tool call\n\nIf a PostToolUse hook fails, Claude Code now logs an error and carries on instead of letting the failure stop the tool call\n\n**What**\n\nA hook is a command you set up to run automatically at a certain point. A `PostToolUse` hook runs after a tool call succeeds. A tool call is one action Claude takes, such as running a command or editing a file.\n\nBefore, if a `PostToolUse` hook failed, the error passed up and broke the tool call. Now Claude Code keeps any messages the hook had already produced, logs an error, and replaces the result.\n\nClaude Code also now screens the diffs from file edits made through Bash and marks them as screened. A diff shows what changed in a file.\n\n**Why**\n\nA broken hook is less likely to disrupt Claude's work.\n\n- Area: Hooks\n- Names: `PostToolUse`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}