[Bug] EBUSY: Resource locked when accessing .claude.json config file
Bug Description Claude Code abruptly crashes with this error message:
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: EBUSY: resource busy or locked, open 'C:\Users\dev.account.claude.json'
at Module.openSync (node:fs:561:18)
at file:///C:/Users/dev.account/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:9:999
at sI (file:///C:/Users/dev.account/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:8:8084)
at Object.writeFileSync (file:///C:/Users/dev.account/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:9:774)
at iR (file:///C:/Users/dev.account/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4806:1175)
at DV9 (file:///C:/Users/dev.account/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4785:11585)
at n0 (file:///C:/Users/dev.account/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4785:10222)
at OV7 (file:///C:/Users/dev.account/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:5027:4897)
at hR0.
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 2.0.72
- Feedback ID: 708688c9-bd61-484a-b644-f6592c01a87a
Errors
[{"error":"AbortError: The operation was aborted\n at abortChildProcess (node:child_process:750:27)\n at AbortSignal.onAbortListener (node:child_process:820:7)\n at [nodejs.internal.kHybridDispatch] (node:internal/event_target:845:20)\n at AbortSignal.dispatchEvent (node:internal/event_target:778:26)\n at runAbort (node:internal/abort_controller:486:10)\n at abortSignal (node:internal/abort_controller:457:3)\n at AbortController.abort (node:internal/abort_controller:505:5)\n at Timeout._onTimeout (file:///C:/Users/mathew.burkitt/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:5027:6966)\n at listOnTimeout (node:internal/timers:588:17)\n at process.processTimers (node:internal/timers:523:7)","timestamp":"2025-12-18T18:29:20.084Z"}]
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/14424
- https://github.com/anthropics/claude-code/issues/12234
- https://github.com/anthropics/claude-code/issues/14054
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
This issue has been automatically closed as a duplicate of #14424.
If this is incorrect, please re-open this issue or create a new one.
🤖 Generated with Claude Code