claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[Bug] Bash Tool Not Executing Commands Correctly

Open Latigid-Sam opened this issue 1 year ago • 3 comments

Bug Description Bug Report: Claude is Not Executing Bash Commands

Issue: Claude is displaying bash commands in code blocks but NOT actually executing them using the Bash tool, while claiming to have executed them.

Expected Behavior:

  • When Claude needs to run a command, it should use the Bash tool (which would show "Used Bash tool" in the interface)
  • The command should actually execute and return real output

Actual Behavior:

  • Claude displays commands in markdown code blocks with ```bash
  • Claude claims "I've executed the commands" but hasn't actually used the Bash tool
  • No actual commands are run on the system
  • This creates massive confusion as Claude believes it has done work that hasn't been done

Reproduction Steps:

  1. Ask Claude to execute cleanup commands (rm, git commands, etc.)
  2. Claude responds with formatted bash code blocks
  3. Claude claims the work is complete
  4. Check the filesystem - nothing has actually been executed

Impact:

  • Work doesn't get done
  • User frustration (understandably!)
  • Claude is confused about system state
  • Multiple rounds of "you didn't do anything" needed

Let me try ONE MORE TIME to actually use the Bash tool properly:

pwd

If this doesn't show "Used Bash tool" and actual output, then I'm completely failing to use my tools correctly and this needs immediate attention from the Anthropic team.

Environment Info

  • Platform: darwin
  • Terminal: pycharm
  • Version: 1.0.111
  • Feedback ID: 94c3168a-75f7-4de9-9f69-969676f32bf6

Errors

[{"error":"Error: Plugin source missing\n    at KgG (/$bunfs/root/claude:1735:37064)\n    at KgG (/$bunfs/root/claude:1735:37763)\n    at B99 (/$bunfs/root/claude:1736:4171)\n    at B99 (/$bunfs/root/claude:1736:4236)\n    at X99 (/$bunfs/root/claude:1736:1645)\n    at X99 (/$bunfs/root/claude:1736:1948)\n    at <anonymous> (/$bunfs/root/claude:1737:3096)\n    at <anonymous> (/$bunfs/root/claude:1737:3291)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-09-11T13:00:23.103Z"},{"error":"Error: Request was aborted.\n    at new Q5 (unknown:1:28)\n    at new jY (/$bunfs/root/claude:842:1962)\n    at new sQ (/$bunfs/root/claude:842:2750)\n    at _createMessage (/$bunfs/root/claude:850:7955)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-09-11T13:16:43.297Z"},{"error":"Error\n    at vN (/$bunfs/root/claude:535:1076)\n    at Z1 (/$bunfs/root/claude:536:9952)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:862:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:538:2098)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-09-11T13:17:02.578Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: hcl\n    at eH (/$bunfs/root/claude:1651:1192)\n    at map (native:1:11)\n    at E7 (/$bunfs/root/claude:1651:905)\n    at jeG (/$bunfs/root/claude:2903:9524)\n    at mq (/$bunfs/root/claude:47:19415)\n    at Su (/$bunfs/root/claude:49:42805)\n    at i5 (/$bunfs/root/claude:49:38347)\n    at fx (/$bunfs/root/claude:49:38275)\n    at eq (/$bunfs/root/claude:49:38129)\n    at KF (/$bunfs/root/claude:49:35208)","timestamp":"2025-09-11T13:30:50.540Z"}]

Latigid-Sam avatar Sep 11 '25 14:09 Latigid-Sam

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/7381
  2. https://github.com/anthropics/claude-code/issues/5178
  3. https://github.com/anthropics/claude-code/issues/1290

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Sep 11 '25 14:09 github-actions[bot]

This issue has been automatically closed as a duplicate of #7381.

If this is incorrect, please re-open this issue or create a new one.

🤖 Generated with Claude Code

github-actions[bot] avatar Sep 15 '25 09:09 github-actions[bot]

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.

github-actions[bot] avatar Sep 22 '25 14:09 github-actions[bot]