[BUG] Claude Exits with Error Code 1

Resolved 💬 4 comments Opened Mar 23, 2026 by cgainey-67 Closed Mar 27, 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?

When I try to start a new session with Claude I get a Code 1 error. I reinstalled GitBash, I have uninstalled and reinstalled the extension, I don't know what else to do.

What Should Happen?

Claude should open a new session with no errors.

Error Messages/Logs

2026-03-23 08:34:46.245 [info] From claude: 2026-03-23T12:34:46.245Z [DEBUG] Skipping potentially malicious executable in current directory: C:\Users\xxxxxxxx\AppData\Local\Programs\Git\cmd\git.exe
Claude Code on Windows requires git-bash (https://git-scm.com/downloads/win). If installed but not in PATH, set environment variable pointing to your bash.exe, similar to: CLAUDE_CODE_GIT_BASH_PATH=C:\Program Files\Git\bin\bash.exe

Steps to Reproduce

Open a new session with Claude

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

It doesn't recognize the term claude as a cmd

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

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