Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.309 ·

Claude now avoids repository-breaking git commands in the Windows sandbox

On Windows, the sandbox guidance tells Claude not to init, clone or add worktrees with git there, and that sandboxed git cannot use your saved sign-in

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

The sandbox is a restricted environment that Claude Code can run shell commands in. On Windows, the instructions Claude reads about the sandbox for its Bash tool (the tool it uses to run shell commands) now include git guidance:

  • Do not run git init, git clone or gh repo clone in the sandbox. Your own git would then refuse the repository with a "detected dubious ownership" error.
  • Do not run git worktree add in the sandbox, even when you ask for a worktree.
  • Sandboxed git cannot use your saved sign-in over HTTPS or SSH.
  • When Claude Code is started in a subfolder of a repository, sandboxed commands cannot write to the .git folder above the working directory.

Before this, the list only covered empty placeholder files.

Why

On Windows, Claude will now decline to create or clone repositories inside the sandbox and will ask you to do it yourself. This avoids leaving you with a repository your own git will not open.

See this entry in the whole of v2.1.309 →

Feedback