[BUG] Interpreting regular expressions as paths for permission checks

Resolved 💬 5 comments Opened Mar 12, 2026 by TrueWill Closed Apr 22, 2026

Preflight Checklist

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

What's Wrong?

Bash command

   gh pr diff 17335 2>/dev/null | awk '/@@ -317,11 \+318,15 @@/,/^@@/' | head -25
   Check the org creation trial start route change

 Do you want to proceed?
 ❯ 1. Yes
   2. Yes, allow reading from ,/ from this project
   3. No

What Should Happen?

It should realize that that is not a path, and not ask for permission.

Error Messages/Logs

Steps to Reproduce

This was using a custom code review command; any prompt that would generate an awk Bash command should reproduce.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.74 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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