[BUG] Frequently crashing on windows 11

Resolved 💬 5 comments Opened Dec 19, 2025 by moazam1 Closed Feb 14, 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?

This has started happening since today. It's crashing like every 10 minutes. Sometimes it does not show error and sometimes I see error like this one:

This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: EBADF: bad file descriptor, realpath 'C:\Users\Moazam\.claude\history.jsonl.lock'
    at async realpath (node:internal/fs/promises:1165:10)
    at async pn1._addToNodeFs (file:///C:/Users/Moazam/AppData/Roaming/nvm/v22.8.0/node_modules/@anthropic-ai/claude-code/cli.js:437:10160)

What Should Happen?

-

Error Messages/Logs

Steps to Reproduce

Happens randomly.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

v2.0.73

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

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