{"version":"2.1.296","anchor":"pretooluse-hook-stop-attachment-helper-and-422-to-400-error","canonical_anchor":"pretooluse-hook-stop-attachment-helper-and-422-to-400-error","heading":"PreToolUse hooks that stop a turn now get the same note as PostToolUse","tier":"notice","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.296\/e\/pretooluse-hook-stop-attachment-helper-and-422-to-400-error","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.296","markdown":"### PreToolUse hooks that stop a turn now get the same note as PostToolUse\n\nA PreToolUse hook that stops Claude from continuing now produces the same stop note as PostToolUse, and 422 API errors are shown as 400\n\n**What**\n\nA hook is your own command that Claude Code runs at a set moment. A `PreToolUse` hook runs before a tool call (an action such as running a command or editing a file). When a `PreToolUse` hook stops Claude from continuing, Claude Code now attaches the same stop note that a `PostToolUse` hook already produces.\n\nSeparately, API errors with status code 422 are now rewritten as status code 400.\n\n**Why**\n\nBoth can change what you see when a hook halts a turn or when the API rejects a request.\n\n- Area: Hooks\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}