[BUG] File locking on windows
Resolved 💬 4 comments Opened Dec 22, 2025 by rretzko Closed Mar 5, 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?
I'm doing vibe coding with Claude. At random intervals, Claude crashes and I have to start it up again.
I've deleted the .claude\debug directory and will see if the problem persists.
I'm using 2.0.75 (Claude Code), on Windows 11 Pro, OS build: 26200.7462 and have one Claude session going via PhpStorm (2025.2.5, Build #PS-252.28238.9, built on November 19, 2025).
What Should Happen?
Shouldn't crash.
Error Messages/Logs
Error: EBUSY: resource busy or locked, open 'C:\Users\RickRetzko\.claude\debug\52247b9f-494e-4db2-b6b7-9b7f59d62869.txt'
at Object.writeFileSync (node:fs:2427:20)
at Module.appendFileSync (node:fs:2509:6)
at file:///C:/Users/RickRetzko/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:9:1288
at oI (file:///C:/Users/RickRetzko/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:8:8084)
at Object.appendFileSync (file:///C:/Users/RickRetzko/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:9:1139)
at writeFn (file:///C:/Users/RickRetzko/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:9:28619)
at Timeout.X [as _onTimeout] (file:///C:/Users/RickRetzko/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:9:27992)
Steps to Reproduce
- Run prompts until it breaks?
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.75 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
PhpStorm (2025.2.5, Build #PS-252.28238.9, built on November 19, 2025)
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗