[BUG] [Windows] Bun binary hangs after initialization in v2.1.69 - REPL never mounts

Resolved 💬 2 comments Opened Mar 6, 2026 by rikvg Closed Apr 3, 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?

The standalone claude.exe binary hangs on startup on Windows. The process completes
initialization but the interactive REPL never renders, leaving the terminal blank.

  • Git Bash (MINGW64): claude hangs immediately with a blank terminal
  • PowerShell: The "trust this folder" setup screen renders correctly, but after

pressing Enter the screen goes blank and the process hangs indefinitely

  • winpty claude: Same result as above

What Should Happen?

After completing initialization (and confirming the trust dialog on first run), the
interactive Claude Code REPL should mount and display the prompt window.

Error Messages/Logs

Every failed session debug log (`~/.claude/debug/*.txt`) ends at this line with no
further output:


[DEBUG] Ripgrep first use test: PASSED (mode=builtin, path=C:\Users\<user>\.local\bin\claude.exe)


`[REPL:mount]` never appears in the log. In a working session via `npx`, the sequence is:


[DEBUG] [REPL:mount] REPL mounted, disabled=false
[DEBUG] Ripgrep first use test: PASSED (mode=builtin, path=...\npm-cache\_npx\...\rg.exe)


The REPL mounts *before* the ripgrep background task in a working session. With the
binary, something blocks between LSP initialization and REPL mount, and the process
never recovers.

A recurring error also appears throughout the binary's startup logs:


[ERROR] Failed to save config with lock: Error: EEXIST: file already exists, mkdir 'C:\Users\<user>'


This does not appear in the working npx session.

Steps to Reproduce

  1. Install Claude Code as a standalone binary (auto-update installs ~/.local/bin/claude.exe)
  2. Open Git Bash (MINGW64) or PowerShell
  3. Run claude
  4. In PowerShell: confirm the "trust this folder" dialog by pressing Enter
  5. Observe the terminal goes blank and hangs — the REPL never loads

To confirm it is binary-specific, run npx @anthropic-ai/claude-code@latest in the
same terminal — it loads correctly.

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

npx @anthropic-ai/claude-code@latest works correctly on the same machine. The npm package (Node.js) version is unaffected. The standalone binary stopped working after an automatic update.

Claude Code Version

2.1.69

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

Git bash was used.

  • The standalone binary (claude.exe) is a Bun-compiled Windows PE32+ executable
  • The npm/Node.js version of the same release works without issue
  • Installing via npm install -g @anthropic-ai/claude-code and removing the binary

from PATH resolves the issue

  • Platform: Windows, Git Bash (MINGW64) / PowerShell

View original on GitHub ↗

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