[BUG] Failed to spawn git

Resolved 💬 6 comments Opened Feb 11, 2026 by rachelmariawhatmough-cloud Closed Apr 8, 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?

"Failed to spawn git (via disclaimer): /Applications/Claude.app/Contents/Helpers/disclaimer exited with code 128: fatal: Unable to read current working directory: Operation not permitted"

This is the exact error from issue #21077 and the team will need to push a fix.

What Should Happen?

The Code tab should load successfully and allow me to start or resume a coding session with access to local project files.

Error Messages/Logs

[LocalSessionManager] Failed to check git status: Failed to spawn git (via disclaimer): /Applications/Claude.app/Contents/Helpers/disclaimer exited with code 128: fatal: Unable to read current working directory: Operation not permitted

Session local_2fe93181-5acb-47f4-bfe5-737bc710e82f query error: Claude Code process exited with code 1
[EventLogging] Queuing event: desktop_ccd_session_query_error | metadata: {
  error_category: 'process_crashed',
  error_message: 'Claude Code process exited with code 1',
  is_startup_error: true,

Steps to Reproduce

  1. Open Claude Desktop app on macOS (Sonoma/Sequoia, MacBook Air M-series)
  2. Click the "Code" tab
  3. App displays "Failed to load session" with "Back to landing page" button
  4. Clicking "Back to landing page" and retrying produces the same error
  5. Clean reinstall, clearing ~/.claude, and granting Full Disk Access do not resolve the issue

Log error (from ~/Library/Logs/Claude/main.log):
[LocalSessionManager] Failed to check git status: Failed to spawn git (via disclaimer): /Applications/Claude.app/Contents/Helpers/disclaimer exited with code 128: fatal: Unable to read current working directory: Operation not permitted

Session error:
Claude Code process exited with code 1
error_category: 'process_crashed'
is_startup_error: true

Environment:

  • macOS on MacBook Air (M-series)
  • Git 2.39.5, Node v24.13.0
  • Full Disk Access granted to Claude
  • Xcode CLI tools installed

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.1

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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