Follow Discord
Sweep 27 Oct 2026 · 19:04Z Build v2.1.312 531 read Stable v2.1.308 Latest v2.1.312 Next v2.1.312 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.312 ·

In auto mode, a hook's rewrite of a tool call can now be dropped

In auto mode, Claude Code can now discard a PreToolUse hook's change to a tool call's input and cancel that hook's approval

You'll notice Improvements
JSON All of v2.1.312
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.

Read from
Names in the bundlePreToolUse
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhich tool calls get this handling is not established.

See this entry in the whole of v2.1.312 →

Feedback