[BUG] Permission prompt triggered for files with : in path despite Edit being in allow list

Resolved 💬 6 comments Opened Mar 24, 2026 by sijokun Closed May 2, 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?

When editing files that contain a colon (:) in the file path, Claude Code prompts for permission even though Edit is in the allow list without any scope restrictions.

This affects Vue.js file-based routing projects that use :param convention for dynamic routes (e.g., src/pages/lesson/:id.vue).

What Should Happen?

Edit in the allow list without a scope should allow editing all files, regardless of characters in the path.

Error Messages/Logs

Opens "Do you want to make this edit to", no error message as such

Steps to Reproduce

  1. Add "Edit" to permissions.allow in .claude/settings.local.json
  2. Try to edit a file with : in the path, e.g. src/pages/lesson/:id.vue
  3. Claude Code prompts for permission despite Edit being allowed

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.81

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Demo repository:

https://github.com/sijokun/claude-code-issue-demo

Settings tested:

  • "Edit" in permissions.allow — still prompts
  • "defaultMode": "bypassPermissions" globally — still prompts
  • Editing files without : in the path works fine with the same settings

<img width="502" height="228" alt="Image" src="https://github.com/user-attachments/assets/8f5e5fd5-9c87-4206-bc29-cffc41d50962" />

Workaround

Use [id].vue instead of :id.vue for files.

View original on GitHub ↗

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