Configurable Build Script Timeout and Clearer Timeout Message
Resolved 💬 4 comments Opened Mar 14, 2025 by hiltonc Closed Mar 14, 2025
Bug Description
I have a build script that ran for more than 2 minutes, probably without output. Then it was stopped with message "Interrupted by user". 2 things, first I didn't interrupt it, so might be better to say "Timed out" or something. Second, I need a longer timeout for some tasks.
Environment Info
- Platform: macos
- Terminal: iTerm.app
- Version: 0.2.41
- Feedback ID: 9f379a00-dfa5-4833-b827-e55bd3cca843
Errors
[{"error":"SyntaxError: Unexpected token 'I', \"I apologiz\"... is not valid JSON\n at JSON.parse (<anonymous>)\n at iW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:445:9965)\n at kK2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:588:645)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-03-14T15:51:12.512Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: mdc\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:717:1221\n at Object.useMemo (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:79:25739)\n at oN4.useMemo (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:52:18312)\n at Pd (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:717:1115)\n at qK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:79:19245)\n at t91 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:42532)\n at E4 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:38099)\n at r91 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:38026)\n at ZF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:37878)\n at Hk (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:34985)","timestamp":"2025-03-14T15:51:13.790Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: mdc\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:717:1221\n at Object.useMemo (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:79:25739)\n at oN4.useMemo (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:52:18312)\n at Pd (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:717:1115)\n at qK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:79:19245)\n at t91 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:42532)\n at E4 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:38099)\n at r91 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:38026)\n at ZF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:37878)\n at Hk (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:34985)","timestamp":"2025-03-14T15:51:15.568Z"},{"error":"ShellError: Shell command failed\n at Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1013:424)\n at async Qu3 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1250:12566)\n at async IS1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1250:11156)\n at async Ku3 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1250:10426)\n at async Ik2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1250:10356)\n at async ad (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1250:9907)\n at async ad (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1250:10173)\n at async ad (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1250:10173)\n at async ad (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1250:10173)\n at async _2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1359:8108)","timestamp":"2025-03-14T15:53:19.434Z"}]This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗