Repository navigation
Closed
Labels
area:toolsenhancementNew feature or requestNew feature or requestplatform:linuxIssue specifically occurs on LinuxIssue specifically occurs on Linux
Description
Bug Description
Would like to be able to configure timeout on shell commands. Got a make command that needs more than two minutes to run tests
Environment Info
- Platform: linux
- Terminal: tmux
- Version: 0.2.107
- Feedback ID: 6cfd71b8-deb3-49ea-8694-c00b859539cc
Errors
[{"error":"ShellError: Shell command failed\n at Object.call (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1369:862)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Go5 (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:5936)\n at async br1 (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:3766)\n at async iV6 (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:2616)\n at async er5 (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:3090)\n at async vr1 (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:3024)\n at async Jr (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:2147)\n at async Jr (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:2544)\n at async g2 (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:2228:1755)","timestamp":"2025-05-09T18:25:41.832Z"},{"error":"ShellError: Shell command failed\n at Object.call (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1369:862)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Go5 (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:5936)\n at async br1 (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:3766)\n at async iV6 (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:2616)\n at async er5 (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:3090)\n at async vr1 (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:3024)\n at async Jr (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:2147)\n at async Jr (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:2544)\n at async Jr (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:2544)","timestamp":"2025-05-09T18:26:18.385Z"},{"error":"ShellError: Shell command failed\n at Object.call (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1369:862)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Go5 (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:5936)\n at async br1 (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:3766)\n at async iV6 (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:2616)\n at async er5 (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:3090)\n at async vr1 (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:3024)\n at async Jr (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:2147)\n at async Jr (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:2544)\n at async Jr (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:2544)","timestamp":"2025-05-09T18:26:25.267Z"},{"error":"ShellError: Shell command failed\n at Object.call (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1369:862)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Go5 (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:5936)\n at async br1 (file:///home/robc/.fnm/node-versions/v23.11.0/installation/lib/node_modules/@anthropic-ai/claude-code/cli.js:1894:3766)\n at async iV6 (file:///home/robc/.fnm/node-versions/v23.11.0/Note: Error logs were truncated.
Metadata
Metadata
Assignees
Labels
area:toolsenhancementNew feature or requestNew feature or requestplatform:linuxIssue specifically occurs on LinuxIssue specifically occurs on Linux
Activity
djaddis commentedon May 10, 2025
I also ran into this. It seems you can ask Claude to run it with a longer timeout, and the maximum is 10 minutes.
Would be nice to have a setting for it though
bcherny commentedon May 13, 2025
This is shipped in the latest -- control this with the
BASH_MAX_TIMEOUT_MSandBASH_MAX_OUTPUT_LENGTHenv vars. Docs incoming.feat: implement Claude Code timeout environment detection and safety …
feat: implement Claude Code timeout environment detection and safety …
feat: reorganize scripts into AI-friendly development tools (#306)
github-actions commentedon Aug 10, 2025
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.