v2.1.69: Freezes on startup on Windows - mkdirSync EEXIST error loop

Resolved 💬 10 comments Opened Mar 5, 2026 by nigelgwork Closed Apr 18, 2026

Bug Description

Claude Code v2.1.69 freezes on startup on Windows. Downgrading to v2.1.66 resolves the issue.

Root Cause

During startup, the config save mechanism repeatedly fails with:

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

Stack trace:

at mkdirSync (unknown)
at mkdirSync (B:/~BUN/root/src/entrypoints/cli.js:12:3048)
at d38 (B:/~BUN/root/src/entrypoints/cli.js:6483:5856)
at IA (B:/~BUN/root/src/entrypoints/cli.js:6483:4432)
at CnA (B:/~BUN/root/src/entrypoints/cli.js:4296:584)
at processTicksAndRejections (native:7:39)

The mkdirSync call attempts to create the user's home directory (which already exists) as part of the config lock/save path for ~\.claude.json. This error fires many times per second during startup, causing the application to appear completely frozen.

Reproduction

  1. Install Claude Code v2.1.69 (standalone installer) on Windows
  2. Launch claude from a terminal
  3. Application freezes / hangs at startup

Comparison

  • v2.1.66: Config saves work correctly with atomic write (temp file -> rename pattern). Debug log shows: Writing to temp file ... File written atomically
  • v2.1.69: Every config save fails with the EEXIST error above. The error repeats continuously during startup.

Environment

  • Windows 10/11 with WSL2
  • Standalone installer (~\.local\bin\claude.exe)
  • Install method: native

Workaround

Downgrade to v2.1.66:

# Rename broken standalone binary
ren %USERPROFILE%\.local\bin\claude.exe claude.exe.bak
# Install working version via npm
npm install -g @anthropic-ai/claude-code@2.1.66

View original on GitHub ↗

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