[BUG] Regression after v2.1.112: silent CLI exits on Windows, not fully fixed by NODE_OPTIONS
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?
Claude Code CLI exits silently back to the shell during active sessions on Windows. No error message, no stack trace, no stderr output — the session just disappears. This happens randomly: during idle time, during tool calls, during long responses, and in longer sessions with heavy plugin/MCP use.
Multiple teammates are affected across different Windows machines. Version 2.1.112 is stable for everyone; every version we've tried after 2.1.112 reproduces this silent-exit behavior for a subset of users.
What Should Happen?
Claude Code CLI should remain running through the session without silent termination. If a fatal error occurs, it should surface an error message, stack trace, or non-zero exit code the user can act on — not drop silently back to the shell.
Error Messages/Logs
No error output produced. Session terminates silently — nothing written to stderr, no crash log in ~/.claude/projects/, no JavaScript error trace. Windows Event Viewer occasionally shows Node.js OOM events for some users, but not for all affected users.
Steps to Reproduce
- Install Claude Code on Windows 11 (any version after 2.1.112)
- Enable multiple plugins: skill-creator, claude-code-setup, figma, playwright, atlassian, superpowers, codex
- Start a session and use it actively with tool calls, skill invocations, and MCP server interactions
- Expected: session stays alive
- Actual: after a variable period (minutes to longer), the CLI silently exits back to the shell prompt — no error, no warning
Exact trigger is non-deterministic. Reproduces for multiple users on different machines with similar plugin loadouts. Downgrading to v2.1.112 fully eliminates the issue.
Claude Model
Multiple
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.112
Claude Code Version
2.1.114 and 2.1.116
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
Partial workaround (works for some users only):
Adding NODE_OPTIONS=--max-old-space-size=8192 to ~/.claude/settings.json env block resolves crashes for some affected users. This suggests Node heap OOM is one contributing factor. However, it does NOT resolve the issue for all affected users, indicating a second regression beyond memory pressure.
Team mitigation:
Pinned to v2.1.112 and set DISABLE_AUTOUPDATER=1. Fully resolves the issue across all affected machines.
Affected models: Opus, Sonnet (both reproduce).
Plugins enabled on affected machines: skill-creator, claude-code-setup, figma, playwright, atlassian, superpowers, codex.
Related issues (similar ground, but don't fully explain this regression):
- #5388 — JS heap OOM during MCP operations
- #25926 — unbounded message accumulation
- #18011 — V8 OOM on extended sessions
- #48942 — skills sync memory leak
- #34526 — silent exit on Windows background process
Ask:
- Confirm whether a known regression was introduced after v2.1.112
- Guidance on collecting actionable diagnostics from affected machines (no crash log is generated — Node exits silently)
This issue has 9 comments on GitHub. Read the full discussion on GitHub ↗