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.311 ·

Shell commands are refused if their folder changed after approval

A Bash command is not run if its working directory changed between the permission check and running it; you are asked to retry

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

Before Claude Code runs a shell command, it checks whether the command is allowed, including which folder it runs in. If that folder no longer leads to the same place by the time the command would run, the command is now refused. That can happen because the folder was deleted, because part of its path was replaced, or because it cannot be examined. The message says the call was not run and asks for it to be made again, so it gets checked afresh.

Why

This closes a gap between approving a command and running it. A command cleared for one folder can no longer end up running in a different one because the folder was swapped in between.

See this entry in the whole of v2.1.311 →

Feedback