Skip to content

[BUG] Git detection fails on macOS Tahoe despite git being installed #35872

Description

@traeuker

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Claude Code desktop app on macOS shows "Git is required for local sessions. Run xcode-select --install in Terminal to install the Command Line Tools, then restart the app" — but git is installed and fully functional.

System info:

$ which git
/usr/bin/git

$ /usr/bin/git --version
git version 2.50.1 (Apple Git-155)

$ arch -x86_64 /usr/bin/git --version
git version 2.50.1 (Apple Git-155)

$ xcode-select -p
/Library/Developer/CommandLineTools

Xcode Command Line Tools are installed. xcode-select --install confirms they're already present. softwareupdate shows no pending updates. Git works under both native ARM64 and Rosetta (x86_64).

What Should Happen?

Claude Code should detect git at /usr/bin/git and start normally.

Error Messages/Logs

Git is required for local sessions. Run xcode-select --install in Terminal to install the Command Line Tools, then restart the app.

Steps to Reproduce

  1. Open Claude Code desktop app on macOS
  2. Error appears: "Git is required for local sessions…"
  3. Verify git works in terminal (/usr/bin/git --versiongit version 2.50.1)

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

Claude 1.1.7203 (034f07) 2026-03-17T17:48:28.000Z

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

What I've Tried

  • Quit and relaunched Claude Code (Cmd+Q)
  • sudo xcode-select --reset
  • Removed and reinstalled Command Line Tools (sudo rm -rf /Library/Developer/CommandLineTools + xcode-select --install)
  • Launched from terminal via open -a "Claude Code"
  • Set GUI app PATH via sudo launchctl config user path "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/homebrew/bin" + reboot
  • Reinstalled Claude Code

None of these resolved the issue.

Possibly Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:desktopbugSomething isn't workinghas reproHas detailed reproduction stepsplatform:macosIssue specifically occurs on macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions