Worktree button greyed out with 'Worktree requires a git repository' in valid git repo
Resolved 💬 3 comments Opened Feb 3, 2026 by jeggett Closed Feb 7, 2026
Description
The worktree button in the Claude Code desktop app is greyed out with tooltip "Worktree requires a git repository" despite the project being a valid git repository with an active .git directory (not a file) and 10 existing worktrees.
Environment
- Claude Code desktop app (latest version, updated 2025-02-04)
- macOS Darwin 25.2.0 (arm64)
- Project: local directory selected via project picker
.gitis a proper directory (not a worktree.gitfile)git rev-parse --is-inside-work-treereturnstrue- Repo already has 10 active worktrees created via CLI (
git worktree list)
Steps to reproduce
- Open Claude Code desktop app
- Select a local project that is a valid git repository
- Observe the worktree button (branch icon, second icon in toolbar) is greyed out
- Hover over it -- tooltip says "Worktree requires a git repository"
Expected behavior
Worktree button should be enabled since the project is a valid git repository.
Actual behavior
Button is greyed out, tooltip says "Worktree requires a git repository."
Screenshot
<img width="885" height="157" alt="Image" src="https://github.com/user-attachments/assets/1ed0cef0-7479-432c-8eb3-4d6daf64b0a6" />
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗