{"version":"2.1.328","anchor":"hook-onfailure-block-message-now-built-by-helper","canonical_anchor":"hook-onfailure-block-message-now-built-by-helper","heading":"Message for a failing blocking hook is now built differently","tier":"notice","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/hook-onfailure-block-message-now-built-by-helper","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### Message for a failing blocking hook is now built differently\n\nThe message shown when a hook with `onFailure` set to \"block\" fails or times out is now assembled differently and may read differently\n\n**Unclear.** The new wording of the message is not known.\n\n**What**\n\nA hook is a script Claude Code runs at set points, and `onFailure` decides what happens if it fails. When a hook with `onFailure` set to \"block\" fails or times out, Claude Code shows a message about it. That message used to be fixed text saying the hook timed out or failed and was blocking because `onFailure` is \"block\". It is now assembled in parts, and the hook's own output is also passed through a separate step before it is shown.\n\n**Why**\n\nIf you write hooks, the text you see when a blocking hook fails may now be worded differently.\n\n- Area: Hooks\n- Names: `onFailure`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}