[BUG] Timeout crash when writing files with VS Code integration - Error after 1000ms waiting
## Bug Description
Claude Code crashes with a timeout error when writing files that trigger VS Code integration prompts.
## Error Details
node:internal/process/promises:394
triggerUncaughtException(err, true / fromPromise /);
^
Error: Timeout waiting after 1000ms
at cN2 (file:///home/ali/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1375:13672)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async ZR6 (file:///home/ali/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1958:12070)
at async J (file:///home/ali/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1958:10781)
## Steps to Reproduce
- Ask Claude to create/write a file (in this case
public/favicon.svg) - VS Code integration opens the file with confirmation dialog
- Dialog shows: "Do you want to make this edit to favicon.svg?"
- Wait for user response - timeout occurs after 1000ms
- Claude Code crashes with the above error
## Expected Behavior
- Should wait for user response without timeout
- Should handle user interaction gracefully
- Should not crash the entire process
## Environment
- OS: Linux 6.12.10-76061203-generic
- Node.js: v22.17.0
- Claude Code: Latest version
- VS Code: Integrated
- Working Directory: Git repository
## Impact
- Complete crash of Claude Code session
- Loss of conversation context
- Interrupts development workflow
## Additional Context
This appears to be related to VS Code integration timing out while waiting for user confirmation on file operations.
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗