{"version":"2.1.332","anchor":"hook-failure-handling-gets-a-unlessforanyinput-mode","canonical_anchor":"hook-failure-handling-gets-a-unlessforanyinput-mode","heading":"Hook failures that cannot succeed are now flagged with failsForAnyInput","tier":"use","area":"Hooks","scope":"both","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332\/e\/hook-failure-handling-gets-a-unlessforanyinput-mode","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332","markdown":"### Hook failures that cannot succeed are now flagged with failsForAnyInput\n\nA new failuresToo mode, unlessForAnyInput, treats hook errors as no verdict unless failsForAnyInput is set, as for disconnected MCP tool hooks\n\n**Unclear.** It is not clear whether this option is something you can set yourself.\n\n**What**\n\nHooks are your own commands or tools that Claude Code runs at set moments, for example before a tool runs. This build changes how hook failures are judged:\n\n- `failuresToo` can now be `\"unlessForAnyInput\"` as well as true or unset. With that value, a hook error that does not block counts as \"gave no verdict\", unless the hook result has `failsForAnyInput` set.\n\n- An `mcp_tool` hook gets `failsForAnyInput: true` when its MCP server is not connected and the server is missing or disabled. MCP servers are add-ons that give Claude extra tools.\n\n- In that same case, the old code pointed at the wrong variable for the error. This is fixed.\n\n**Why**\n\nThis separates a hook that failed this one time from a hook that can never succeed whatever it is given. Callers can stop retrying hooks that cannot work, and the error reported for a disconnected MCP tool hook is now the right one.\n\n- Area: Hooks\n- Names: `failuresToo`, `unlessForAnyInput`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 3\/5\n- Scope: both\n- Heads-up: no"}