Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.269 ·

Git worktree creation reports symlink/lstat failures as data, not exceptions

Git worktree creation now reports symlink safety failures as structured data instead of throwing an exception

TierUnder the hoodhow much it should matter to you
Useful1my rating, 1 to 5
Signal0worth watching, 1 to 5
AreaGit Worktreeswhat it touches
KindInternal Changesin v2.1.269,
Under the hood

Git worktree creation now reports symlink safety failures as structured data instead of throwing an exception

What

Before creating a git worktree (a separate working copy of a repository), Claude Code checks whether .claude or .claude/worktrees is actually a symlink, which would be unsafe. That check now returns a structured result describing the failure reason instead of immediately throwing an error, and a separate wrapper turns that result into the same error message as before.

Why

This is an internal refactor that lets the code distinguish between different failure reasons before deciding whether to raise an error. The error message shown to users, such as "Cannot create worktree: is a symlink," stays the same.

See this entry in the whole of v2.1.269 →