You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
PermissionsArea: what it touches
ImprovementsKind: in v2.1.333,
ImprovementsSection of the release
What
Before Claude Code runs a shell command, it checks whether the command is allowed, needs your approval, or is blocked. When a command contains PWD or pwd (which stand for the current working folder), Claude Code now makes a second check: it fills in the real folder path and checks the command again. Whichever of the two results is stricter is the one used.
This second check is skipped on Windows and when commands run on a remote machine. An older, narrower check for these commands has been removed.
Why
Commands built on $PWD are now judged by where they actually point. Some may ask for approval where they used to run, or the other way round.