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
endedInfield. A related check reportschanged_at_spawnwhen a command exits with code 126 and a marker. This sits behind the server-side switchtengu_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
cdto 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.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
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.