[BUG]
Environment
- Platform (select one):
- [x] Other: Claude Code (via VS Code extension / CLI)
- Claude CLI version:
- Operating System: Windows 11 (WSL environment)
- Terminal: VS Code integrated terminal
Bug Description
My sessions are completely stopping mid-use and it's progressively getting worse. The entire VS Code window forcefully shuts down and reloads. When this happens, the active session ends abruptly and I’m required to re-enter my API key every time. This is highly disruptive and frustrating when working on active builds or feature execution.
Steps to Reproduce
- Launch Claude Code in VS Code (inside WSL)
- Begin working on a session with multiple Claude prompts
- At some random point (often mid-task), VS Code crashes and reloads
- Session is lost, and Claude CLI prompts for API key again
Expected Behavior
Claude sessions should persist unless explicitly closed. VS Code should not crash or force a reload, and I should not have to re-authenticate with my API key every time.
Actual Behavior
- VS Code window shuts off completely and restarts
- All Claude session data is lost
- API key prompt reappears, even if previously saved
- Work is interrupted and has to be restarted
Additional Context
This issue seems to be increasing in frequency. It appears worse when multiple Claude threads are running or when heavier prompts are issued. The reset is similar to a hard crash and happens without warning.
Sorry not every time with API key but sometimes
+1
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
Hi - closing as this issue seems stale. thanks for reporting!
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.