[BUG] File creation/editing operations fail silently - Write/Edit tools timeout, bash file creation appears successful but files don't exist
● Environment
- Platform (select one):
- Anthropic API
- AWS Bedrock
- Google Vertex AI
- Other: Claude Code/Ubuntu 24.04.2 LTS
- Claude CLI version: 1.0.43
- Operating System: Linux (Ubuntu/Debian based, kernel 6.8.0-63-generic)
- Terminal: vscode/bash
Bug Description
File creation and editing operations fail completely. The Write/Edit tools timeout after 1000ms, and bash file creation commands appear to succeed but no files are actually created on the filesystem.
node:internal/process/promises:394
triggerUncaughtException(err, true / fromPromise /);
^
Error: Timeout waiting after 1000ms
at zN2 (file:///home/username/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1385:12840)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async cL6 (file:///home/username/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1961:11737)
at async C (file:///home/username/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1961:10591)
Node.js v22.17.0
Steps to Reproduce
- Run claude to start interactive session
- Ask Claude to create any file (e.g., "create a file called test.ipynb")
- Write tool shows VS Code integration prompt, then times out with: Error: Timeout waiting after 1000ms
- Try alternative bash commands like cat > file.txt, touch file.txt, or echo > file.txt
- Commands appear to succeed but ls shows no files were created
Expected Behavior
Files should be created either through Write/Edit tools or bash commands, and should be visible in the filesystem.
Actual Behavior
- Write/Edit tools timeout with error at zN2 (file:///.../@anthropic-ai/claude-code/cli.js:1385:12840)
- Bash file creation commands return success but no files exist on disk
- File existence checks (ls, find, [ -f file ]) confirm files don't exist
Additional Context
- Node.js version: v22.17.0
- VS Code integration enabled with /ide command
- Working directory: /home/username/dev/schedule_code
- All file operations fail regardless of file type (.ipynb, .txt, .py, etc.) / can chat not edit files or perform basic commands
- Complete reinstall several times, switched from work around for npm -g to normal and back again.
7 Comments
I believe this is similar: https://github.com/anthropics/claude-code/issues/3061
Thanks @Morphus1 and @chuenlye for reporting, we have a fix coming out in the next release for this!
Still happening in vscode and standard terminal when using /ide, this is with the update 1.0.44.
A little confusion around the install, I tried removing it completely and setting up again. I tried with the work around and without. There was also an option for local install.
What is the correct setup method? Do we still need the workaround for permissions by creating a NPM location/global file for the user? Should we use that local install?
@Morphus1 sorry for the confusion, the fix will be in 1.0.45, which is still not yet released
This is fixed in builds newer than 1.0.45!
still happens in 1.0.57!!
https://github.com/anthropics/claude-code/issues/3061#issuecomment-3101867356
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.