Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[BUG] "Yes, and don't ask for again for ..." ineffective for commands containing space #80971

Copy link
Copy link

Description

@rwalle
Issue body actions

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

The "Yes, and don't ask for again for ..." option in command approval prompt is not effective for certain commands.

In my case, the original prompt is Can you use "C:\Program Files\Python313\python.exe" to run a basic hello world script. After the approval, the same prompt keeps coming up.

Image

Root cause appears to be incorrect "allow" rule generated -- see "Additional Information" below

What Should Happen?

The approval request no longer shows up after the initial one.

Error Messages/Logs

Steps to Reproduce

  1. Put an executable in a folder with space. Python/Node.js installed to "Program Files" would be ready to go.
  2. Ask Claude Can you use "C:\Program Files\Python313\python.exe" to run a basic hello world script or similar
  3. Choose "Yes, and don't ask again for: C:\Program Files\Python313\python.exe *"
  4. Ask Claude "try again"

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.218

Platform

AWS Bedrock

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

Claude created a settings.local.json with the following "allow" rule:

Bash(C:\\\\Program Files\\\\Python313\\\\python.exe *)

However, Claude suggested modifying it to

Bash(\"C:\\Program Files\\Python313\\python.exe\" *)

which indeed stopped introducing further prompts.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.