"Add Configurable Timeout for Shell Command Execution"

Resolved 💬 3 comments Opened May 9, 2025 by robspassky Closed May 13, 2025

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.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗