What
The sandbox is a restricted environment Claude Code can run commands in, where some paths are kept read-only. Claude Code now notices when a git command run inside it stops at one of those read-only paths partway through its work.
When that happens, Claude Code adds guidance to the result telling the model to:
- stop rather than carry on
- not retry the command
- tell you what happened, because git may already have moved your uncommitted changes out of the working folder and into a stash, a place git sets changes aside
Why
A git command that only half finishes can leave your work set aside where you might not expect it. Retrying blindly could make that worse or commit files the sandbox meant to protect. Stopping and telling you gives you the chance to recover your changes yourself.