[Bug] Temporary files with "tmpclaude-xyz-cwd" pattern left in repository root
Resolved 💬 9 comments Opened Jan 13, 2026 by amsGTO Closed Feb 26, 2026
Bug Description
Claude Code constantly creates files with this pattern - "tmpclaude-xyz-cwd" in the root directory of the repo when working. Observed this behaviour since update to claude code version 2.1.5
Environment Info
- Platform: win32
- Terminal: vscode
- Version: 2.1.6
- Feedback ID: 9483b538-7533-4de3-9c3c-082720667f76
Errors
[{"error":"Error: EBUSY: resource busy or locked, open 'C:\\Users\\Guido Tobler\\.claude\\statsig\\statsig.session_id.2656274335'\n at async open (node:internal/fs/promises:641:25)\n at async writeFile (node:internal/fs/promises:1249:14)","timestamp":"2026-01-13T05:52:34.728Z"},{"error":"Error: EBUSY: resource busy or locked, open 'C:\\Users\\Guido Tobler\\.claude\\statsig\\statsig.session_id.2656274335'\n at async open (node:internal/fs/promises:641:25)\n at async writeFile (node:internal/fs/promises:1249:14)","timestamp":"2026-01-13T05:52:45.776Z"},{"error":"Error: EBUSY: resource busy or locked, open 'C:\\Users\\Guido Tobler\\.claude\\statsig\\statsig.session_id.2656274335'\n at async open (node:internal/fs/promises:641:25)\n at async writeFile (node:internal/fs/promises:1249:14)","timestamp":"2026-01-13T05:52:55.850Z"},{"error":"Error: EBUSY: resource busy or locked, open 'C:\\Users\\Guido Tobler\\.claude\\statsig\\statsig.session_id.2656274335'\n at async open (node:internal/fs/promises:641:25)\n at async writeFile (node:internal/fs/promises:1249:14)","timestamp":"2026-01-13T05:52:56.873Z"},{"error":"Error: EBUSY: resource busy or locked, open 'C:\\Users\\Guido Tobler\\.claude\\statsig\\statsig.session_id.2656274335'\n at async open (node:internal/fs/promises:641:25)\n at async writeFile (node:internal/fs/promises:1249:14)","timestamp":"2026-01-13T05:53:01.932Z"},{"error":"Error: EBUSY: resource busy or locked, open 'C:\\Users\\Guido Tobler\\.claude\\statsig\\statsig.session_id.2656274335'\n at async open (node:internal/fs/promises:641:25)\n at async writeFile (node:internal/fs/promises:1249:14)","timestamp":"2026-01-13T05:53:06.987Z"},{"error":"Error: EBUSY: resource busy or locked, open 'C:\\Users\\Guido Tobler\\.claude\\statsig\\statsig.session_id.2656274335'\n at async open (node:internal/fs/promises:641:25)\n at async writeFile (node:internal/fs/promises:1249:14)","timestamp":"2026-01-13T05:53:13.047Z"},{"error":"Error: EBUSY: resource busy or locked, open 'C:\\Users\\Guido Tobler\\.claude\\statsig\\statsig.session_id.2656274335'\n at async open (node:internal/fs/promises:641:25)\n at async writeFile (node:internal/fs/promises:1249:14)","timestamp":"2026-01-13T05:53:14.068Z"},{"error":"Error: EBUSY: resource busy or locked, open 'C:\\Users\\Guido Tobler\\.claude\\statsig\\statsig.session_id.2656274335'\n at async open (node:internal/fs/promises:641:25)\n at async writeFile (node:internal/fs/promises:1249:14)","timestamp":"2026-01-13T05:53:38.225Z"},{"error":"BZ2: Diagnostics file path mismatch: expected C:\\Users\\Guido Tobler\\Documents\\amsGPM\\ams.gpm\\src\\AmsGpm.Core\\Entities\\ProcessTenant.cs, got file://c:\\users\\guido tobler\\documents\\amsgpm\\ams.gpm\\src\\amsgpm.core\\entities\\processtenant.cs/)\n at US.beforeFileEdited (file:///C:/Users/Guido%20Tobler/AppData/Local/nvm/v25.2.1/node_modules/@anthropic-ai/claude-code/cli.js:2290:1135)\n at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n at async Object.call (file:///C:/Users/Guido%20Tobler/AppData/Local/nvm/v25.2.1/node_modules/@anthropic-ai/claude-code/cli.js:2358:2642)\n at async AW7 (file:///C:/Users/Guido%20Tobler/AppData/Local/nvm/v25.2.1/node_modules/@anthropic-ai/claude-code/cli.js:3323:27224)","timestamp":"2026-01-13T05:54:38.388Z"},{"error":"AbortError: The operation was aborted\n at abortChildProcess (node:child_process:759:27)\n at AbortSignal.onAbortListener (node:child_process:829: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:488:10)\n at abortSignal (node:internal/abort_controller:459:3)\n at AbortController.abort (node:internal/abort_controller:507:5)\n at Timeout._onTimeout (file:///C:/Users/Guido%20Tobler/AppData/Local/nvm/v25.2.1/node_modules/@anthropic-ai/claude-code/cli.js:4735:1999)\n at listOnTimeout (node:internal/timers:605:17)\n at process.processTimers (node:internal/timers:541:7)","timestamp":"2026-01-13T05:54:39.406Z"},{"error":"BZ2: Diagnostics file path mismatch: expected C:\\Users\\Guido Tobler\\Documents\\amsGPM\\ams.gpm\\src\\AmsGpm.Core\\Entities\\Process.cs, got file://c:\\users\\guido tobler\\documents\\amsgpm\\ams.gpm\\src\\amsgpm.core\\entities\\process.cs/)\n at US.beforeFileEdited (file:///C:/Users/Guido%20Tobler/AppData/Local/nvm/v25.2.1/node_modules/@anthropic-ai/claude-code/cli.js:2290:1135)\n
Note: Error logs were truncated.
This issue has 9 comments on GitHub. Read the full discussion on GitHub ↗