Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.333 ·

Shell commands get new checks on the directory they run in and end in

Directory changes from shell commands can now be checked before being applied, and commands whose directory goes through a changeable link can be refused

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

Unclear It is not clear what the check on the new folder tests, or what Claude Code then does with a folder change that passes it.

What

The working directory is the folder a command runs in. Two changes affect how Claude Code handles it for shell commands.

  • When a command ends in a different folder, the change can now go through a check instead of being applied straight away. If the new folder passes the check, a record of where the command started and ended is handed back. Otherwise the change is applied as before. The command's result gains an endedIn field. A related check reports changed_at_spawn when a command exits with code 126 and a marker. This sits behind the server-side switch tengu_shell_set_cwd, about which nothing has been read.
  • When sandboxing is turned on (the sandbox is a protected area that limits what commands can reach), a command run outside the sandbox is refused if its folder goes through a link that a sandboxed command may be able to change. The message tells Claude to cd to the real path first. This applies only on non-Windows systems, outside relaxed mode, and behind a server-side switch.

Why

In sandboxed sessions you or Claude may see a new refusal and need to move to the real folder first. The change keeps a link that sandboxed code could alter from steering commands into a different folder.

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 clear what the check on the new folder tests, or what Claude Code then does with a folder change that passes it.

See this entry in the whole of v2.1.333 →

Feedback