Command Execution Fails Silently in Claude Chat Interface
Resolved 💬 5 comments Opened Mar 10, 2025 by golergka Closed Nov 29, 2025
Bug Description
When I run command in Claude with !prefix, neither Claude nor I see it's output. However, when I see the same command in regular console, I see detailed output (type errors).
Command in this particular case was bun run --cwd services/service-name tsc -f.
Output in Claude:
<img width="860" alt="Image" src="https://github.com/user-attachments/assets/22865477-71a1-4b38-a989-f744952f0ec7" />
Output in regular console:
<img width="357" alt="Image" src="https://github.com/user-attachments/assets/9e68dc01-fa78-400f-b059-0a114acac21e" />
Environment Info
- Platform: macos
- Terminal: ghostty
- Version: 0.2.35
- Feedback ID: ba9565e0-ff7c-45c0-9160-31daf2c6b3b7
Errors
[{"error":"Error: Command failed: /Users/maxyankov/.nvm/versions/node/v22.1.0/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/arm64-darwin/rg --files --glob *.md /Users/maxyankov/.claude/commands\nrg: /Users/maxyankov/.claude/commands: IO error for operation on /Users/maxyankov/.claude/commands: No such file or directory (os error 2)\n\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at ChildProcess.exithandler (node:child_process:421:12)\n at ChildProcess.emit (node:events:520:28)\n at ChildProcess.emit (node:domain:488:12)\n at maybeClose (node:internal/child_process:1105:16)\n at ChildProcess._handle.onexit (node:internal/child_process:305:5)","timestamp":"2025-03-10T20:18:43.257Z"},{"error":"TypeError: path must not be empty\n at Tq3 (file:///Users/maxyankov/.nvm/versions/node/v22.1.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:319:68729)\n at I_ (file:///Users/maxyankov/.nvm/versions/node/v22.1.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:319:68838)\n at aM2._test (file:///Users/maxyankov/.nvm/versions/node/v22.1.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:319:69442)\n at aM2.ignores (file:///Users/maxyankov/.nvm/versions/node/v22.1.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:319:69944)\n at tM2 (file:///Users/maxyankov/.nvm/versions/node/v22.1.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:647:230)\n at xq3 (file:///Users/maxyankov/.nvm/versions/node/v22.1.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:645:470)\n at Object.call (file:///Users/maxyankov/.nvm/versions/node/v22.1.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:643:109)\n at call.next (<anonymous>)\n at Z_ (file:///Users/maxyankov/.nvm/versions/node/v22.1.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:998:91)\n at file:///Users/maxyankov/.nvm/versions/node/v22.1.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1057:842","timestamp":"2025-03-10T20:18:43.460Z"},{"error":"Error: Request was aborted.\n at Bu._createMessage (file:///Users/maxyankov/.nvm/versions/node/v22.1.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:518:24060)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-03-10T20:21:04.422Z"}]This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗