[BUG] misidentified command for approval.

Resolved 💬 3 comments Opened Apr 23, 2025 by obra Closed Nov 30, 2025

Environment

  • Platform (select one):
  • [X] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 0.2.78 (Claude Code)
  • Operating System: MacOS 14.3
  • Terminal: Ghostty

Bug Description

Claude proposed that I allow "find commands" when the actual command it was running was shell command starting with rm -rf.

(The actual command it's running is totally reasonable, but there's no find invocation in the list of commands it's running)

<img width="1260" alt="Image" src="https://github.com/user-attachments/assets/48c4f447-f7cc-4bb0-bb33-56cb778cc4b3" />

Steps to Reproduce

...sadly, I have no idea. Claude was deep into tool calls.

Expected Behavior

I expected it to propose the command it was actually running.

Actual Behavior

A little bit of misdirection.

View original on GitHub ↗

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