Git worktree creation now reports symlink safety failures as structured data instead of throwing an exception
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.
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.