Claude Code v2.1.331 ·
Tools are checked against session permission denials before they run
Claude Code now checks whether a tool call was denied for the session before running it, and passes more detail to PostToolUse hooks
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
PermissionsArea: what it touches
ImprovementsKind: in v2.1.331,
ImprovementsSection of the release
What
A tool call is a single action Claude takes, such as running a command or editing a file. Claude Code now changes how it runs them:
- Before running a tool call, it checks whether a permission rule has denied it for the current session.
PostToolUse hooks, your own scripts that run after a tool call succeeds, are now given a record of whether a hook changed a file.
- Claude Code keeps a record of each smaller call inside a tool call.
Why
A call you have denied for the session is caught before it runs, rather than later.
See this entry in the whole of v2.1.331 →