[BUG] Ellipsis `...` in file names forces a permission check even if the permission is already granted for a given folder

Resolved 💬 2 comments Opened Nov 10, 2025 by zanlib0 Closed Nov 10, 2025

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?

When Claude Code tries to read or modify a file with a ..., for example route files in Astro that have the form [...slug].astro, there is a permissions prompt, even though I have already accepted reads or modifications to all files in the project.

What Should Happen?

There should not be a permissions prompt for files in the same directory.

Error Messages/Logs

Steps to Reproduce

  1. Create a file with ... in the file name.
  2. Run Claude Code and prompt it to edit the file.
  3. When asked for permission, select 2 (yes for this and next).
  4. Prompt it to edit the file again.

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.0.29

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

I suspect this might be because the software interprets ... as containing the string .. and going up a directory.

View original on GitHub ↗

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