You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
HooksArea: what it touches
ImprovementsKind: in v2.1.336,
ImprovementsSection of the release
Unclear It is not clear what normalized form of the command hook patterns are now matched against.
What
PreToolUse hooks are scripts that run before a tool call and can block it. On systems other than Windows, those hooks for the Bash tool, which runs shell commands, now receive the command in tool_input with surrounding spaces trimmed. Before, tool_input was passed on unchanged. When Claude Code matches hooks to these calls, it also checks an extra name derived from the command.
Why
If you have PreToolUse hooks with if or matcher patterns on Bash commands, they may now match differently. Check that they still catch the commands you expect.