{"version":"2.1.326","anchor":"hook-messages-rendered-as-headline-plus-reason","canonical_anchor":"hook-messages-rendered-as-headline-plus-reason","heading":"Hook problems are now shown as a short headline and a reason","tier":"notice","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/hook-messages-rendered-as-headline-plus-reason","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Hook problems are now shown as a short headline and a reason\n\nMessages about hooks that fail, report a problem, stop Claude or defer a tool now show one headline followed by the reason\n\n**What**\n\nA hook is a command of your own that Claude Code runs at set moments, for example just before a tool runs. When a hook fails, cancels something, stops Claude or defers a tool, Claude Code now shows the message in one layout: a headline, then the reason. The headlines replace the older \"hook returned blocking error\", \"hook error\" and \"hook warning\" wording:\n\n- `<hook> hook failed`\n\n- `<hook> hook reported a problem`\n\n- `<hook> hook stopped Claude`\n\n- `<hook> hook deferred <tool>`\n\nLong hook output is trimmed in a different way than before. When a `PreToolUse` hook (one that runs before a tool call and can block it) exits with code 127, an extra hint is added to the message. The goal status text now reads \"Goal couldn't be achieved\".\n\n**Why**\n\nWhat you see when a hook goes wrong now reads differently. Anything you have that looks for the old wording, such as a script or a saved search, will no longer find it.\n\n- Area: Hooks\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}