[BUG] File creation/editing operations fail silently - Write/Edit tools timeout, bash file creation appears successful but files don't exist

Status Fixed / completed
Maintainer reply ✓ Yes — rboyce-ant
Activity 7 comments · opened Jul 6, 2025 · closed Jul 10, 2025
💡 Likely answer: A maintainer (rboyce-ant, contributor) responded on this thread — see the highlighted reply below.

● 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

  1. Run claude to start interactive session
  2. Ask Claude to create any file (e.g., "create a file called test.ipynb")
  3. Write tool shows VS Code integration prompt, then times out with: Error: Timeout waiting after 1000ms
  4. Try alternative bash commands like cat > file.txt, touch file.txt, or echo > file.txt
  5. 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.

View original on GitHub ↗

7 Comments

bohdan-shulha · 1 year ago
rboyce-ant contributor · 1 year ago

Thanks @Morphus1 and @chuenlye for reporting, we have a fix coming out in the next release for this!

Morphus1 · 1 year ago

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?

rboyce-ant contributor · 1 year ago

@Morphus1 sorry for the confusion, the fix will be in 1.0.45, which is still not yet released

rboyce-ant contributor · 1 year ago

This is fixed in builds newer than 1.0.45!

feidaZhang · 1 year ago
github-actions[bot] · 1 year ago

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.