Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.319 ·

PermissionRequest hook decisions handled differently when no prompt can be shown

A PermissionRequest hook's allow is now honoured where no prompt can be shown, and a hook-rewritten call that cannot be re-prompted is denied with a reason

Group of 2 You'll notice Improvements
JSON All of v2.1.319
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
HooksArea: what it touches
ImprovementsKind: in v2.1.319,
ImprovementsSection of the release

What

A hook is a script you configure to run at certain points. A PermissionRequest hook runs when a tool call (an action Claude wants to take) needs a permission decision. This release changes two cases:

  • Hook allow without a person: Claude Code used to ignore a hook's allow when no prompt could be shown, with the message "only a person can approve this call, and no prompt can be shown here". That check and message are gone. A hook's allow is now honoured in headless runs, meaning runs with no one at a screen.
  • Hook-rewritten calls: if a hook changes a call and Claude Code cannot build a permission prompt for the changed call, the call is now denied and marked as invalid input. The message says the call was not run and tells Claude to tell you. Before, Claude Code cancelled and stopped with a "Failed to preview the hook-rewritten file operation" error.

Why

In headless setups, your hook's allow now takes effect, so hooks can approve calls that used to need a person. Check what your PermissionRequest hooks allow. When a rewritten call cannot be shown for approval, Claude gets a clear explanation instead of the run being stopped.

Read from
Names in the bundlePermissionRequest
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Added since A small documentation edit on Run Claude Code programmatically touched a line naming PermissionRequest after this was published. With the flag, your run doesn't consult the host or wait on it. Anything that would prompt is denied unless a `PermissionRequest` hook allows it, Claude is told that nobody can approve the request and not to retry it, and the run continues… headless see the edit
Confirmed since Anthropic's documentation has since written up PermissionRequest, on Automate actions with hooks. Unlike the exit-code examples above, auto-approval requires your hook to write a JSON decision to stdout. Claude Code runs `PermissionRequest` hooks when it's about to ask you for permission, and if your hook returns `"behavior": "allow"`,… hooks-guide see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up PermissionRequest, on Automate actions with hooks.

See this entry in the whole of v2.1.319 →

Feedback