Follow Discord
Sweep 06 Nov 2026 · 01:32Z Build v2.1.319 537 read Stable v2.1.311 Latest v2.1.318 Next v2.1.319 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.319 ·

Permission denials found before a prompt now reach the SDK callback

If a tool would prompt but a later check denies it, Claude Code now calls canUseTool with decideLocation "pre-ask" and returns the denial

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

Unclear It is not stated whether the callback's answer at the "pre-ask" point can change the denial.

What

When Claude wants to use a tool, Claude Code decides whether to allow it, deny it or ask you. Programs built with the Agent SDK can supply a canUseTool callback, a function that gets a say in those decisions.

Before, once the first decision was "ask", Claude Code always went on to the prompt. Now, if a later decision is "deny", Claude Code calls canUseTool with decideLocation: "pre-ask" and then returns the denial.

Why

This changes the order in which denials and prompts are settled. A callback that looks at decideLocation may now see the value "pre-ask" and should be ready for it.

Read from
Names in the bundlecanUseTool
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 doubtIt is not stated whether the callback's answer at the "pre-ask" point can change the denial.

See this entry in the whole of v2.1.319 →

Feedback