[Bug] Claude Code exits silently without error logging on Windows PowerShell

Resolved 💬 3 comments Opened Apr 28, 2026 by Opafex Closed May 31, 2026

Bug Description
Claude Code 2.1.121 on Windows 11, PowerShell 7.6.1, Node 22.16.0. Sessions started with claude exit silently within seconds — no error message, no debug log written, no Windows event log entry. claude --debug initially worked but now also fails. Non-deterministic: same command works in some tabs, not others; tabs that reach a working state tend to stay working until closed. Already tried: full reinstall, npm cache clean, removed .mcp.json, removed PowerShell aliases (used functions), PS 5.1 and PS 7, raised NODE_OPTIONS to 8GB heap, restored .claude.json from backup, tried from project folder and home folder. None resolved it. Spent ~half a day diagnosing with help from Claude in chat

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.121
  • Feedback ID: aaff5437-e7ac-433a-9c5b-16e87e76647b

Errors

[]

View original on GitHub ↗

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