What
Auto mode is the mode in which Claude Code reviews tool calls itself instead of asking you before each one. A tool call is a single action Claude takes, such as running a command. Auto mode handles changes made to a call after review in two new ways:
- A new message says that a call in the response "changed (or may have changed) after auto mode reviewed it, so auto mode could not check what would run".
- A new rewrite cause,
cd_restored, is treated like thehookandtool_call_chainrewrites. It covers the case where the working directory (the folder a command runs in) was restored after review. - The
cd_restoredcause carries the restored working directory and anisRestoredCdGoneflag, and both are passed to the code that writes the deny message.
Why
When a call changes after auto mode has checked it, for example after a change of folder, auto mode now says why it could not check the call instead of leaving you to guess.