You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Auto ModeArea: what it touches
ImprovementsKind: in v2.1.312,
ImprovementsSection of the release
Unclear Which tool calls get this handling is not established.
What
A tool call is one action Claude takes, such as running a command or editing a file. A PreToolUse hook is a command you configure to run before a tool call; it can block the call, approve it, or rewrite the input the call will use. Auto mode is the permission mode in which Claude Code decides for itself whether an action may run.
Claude Code can now handle a tool call so that a PreToolUse hook's rewritten input is compared with the original. If the hook changed the input, the change is thrown away and any approval the hook gave is cancelled, so the call goes through the normal permission check instead. Claude Code also records whether a rewrite was dropped and which kind of rewriter changed the input. In auto mode, the input given to the safety check is now worked out before hooks run, so it reflects the call as Claude made it.
Why
In auto mode, a hook that rewrites a tool call may no longer be able to approve the rewritten call on its own. If you use hooks that change tool input and also approve it, watch for calls that now ask for permission.