[BUG] Claude desktop app blocks new sessions with "Git is required" despite git being fully functional

Resolved 💬 8 comments Opened Apr 6, 2026 by amanfredi Closed Jun 10, 2026

Preflight Checklist

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

What's Wrong?

Title: Claude desktop app blocks new sessions with "Git is required" despite git being fully functional

Body:

## Bug Description

The Claude desktop app blocks new session creation with the error:

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

Resuming existing sessions works fine — git operations function normally once in a session.

## Environment

- **macOS**: 15.7.4 (Build 24G517, Darwin 24.6.0)
- **Claude desktop app**: 1.569.0 (49894a), built 2026-04-02
- **git**: 2.50.1 (Apple Git-155) at `/usr/bin/git`
- **Xcode CLT**: Installed at `/Library/Developer/CommandLineTools/`
- **Xcode**: Full install, `xcode-select -p` → `/Applications/Xcode.app/Contents/Developer`
- **Xcode license**: Accepted (`xcodebuild -license check` returns no error)
- **Homebrew git**: Also installed at `/opt/homebrew/bin/git` (2.44.0)

## Reproduction

1. Open Claude.app
2. Try to start a new Local Claude Code session
3. Error appears, blocking session creation
4. Resuming an existing local session works fine

## What I've verified

All of these succeed from Terminal, including non-interactive contexts:

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

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

$ env -i HOME=$HOME /usr/bin/git --version
git version 2.50.1 (Apple Git-155)

$ xcrun --find git
/Applications/Xcode.app/Contents/Developer/usr/bin/git

What I've tried

  • sudo xcode-select --reset + restart app — no change
  • xcode-select --install — CLT already installed
  • Fully quitting (Cmd+Q) and reopening

Possibly related

#35872 — similar symptoms, but the root cause there (Xcode license not accepted in non-interactive context) doesn't apply here since the license is accepted and the Apple shim works even with a stripped environment and no TTY.


### What Should Happen?

I should be able to start a new local Claude Code Desktop session without an error message.

### Error Messages/Logs

```shell
"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.app
  2. Try to start a new Local Claude Code session
  3. Error appears, blocking session creation
  4. Resuming an existing local session works fine

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

Claude 1.569.0 (49894a) 2026-04-02T20:01:42.000Z

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

<img width="1186" height="670" alt="Image" src="https://github.com/user-attachments/assets/2d102015-9181-4d57-ab6a-90922182942f" />

View original on GitHub ↗

This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗