[BUG] When running claude init, the command fails with a timeout error after 1000ms.
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other:
- Claude CLI version: 1.0.44 (Claude Code)
- Operating System: linux
- Terminal: xterm-256color
Bug Description
When running claude init, the command fails with a timeout error after 1000ms.
Steps to Reproduce
- Run the command claude init in the project directory.
Expected Behavior
The claude init command should execute without any timeout errors, successfully initializing the project.
Actual Behavior
The command produced the following error:
1 node:internal/process/promises:391
2 triggerUncaughtException(err, true / fromPromise /);
3 ^
4
5 Error: Timeout waiting after 1000ms
6 at UN2 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1372:13682)
7 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
8 at async oL6 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1948:11756)
9 at async J (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1948:10610)
10
11 Node.js v20.19.2
Additional Context
The issue seems to be related to a timeout within the Claude CLI's Node.js application. This occurred
after an interactive prompt from Cursor to edit a CLAUDE.md file.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗