[BUG] An unexpected error occurred while setting up the git_repository source.

Resolved 💬 3 comments Opened Apr 11, 2026 by wenbun87 Closed Apr 13, 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?

Error messge: An unexpected error occurred while setting up the git_repository source. Try starting a new session. If the problem persists, the error details have been logged — contact support with your session ID.

An error occurred while executing Claude Code. You can try again by sending a new message or starting a new session.

Session ID: https://claude.ai/code/session_01TPSg8FtsEFh4Cazy5e2YZB

What Should Happen?

just want to start a new session

Error Messages/Logs

An unexpected error occurred while setting up the git_repository source. Try starting a new session. If the problem persists, the error details have been logged — contact support with your session ID.

An error occurred while executing Claude Code. You can try again by sending a new message or starting a new session.

Steps to Reproduce

set up new github repository
tried to start new session selecting this respository

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

Claude Code v2.1.101

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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