[BUG] On Windows: the Read() tool is messing up the paths and introducing redundant entries

Resolved 💬 3 comments Opened Sep 7, 2025 by 0xeb Closed Sep 11, 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?

A similar thing has been reported about the duplicate entries, but could not find a Windows report.

First, the "/" prefix is totally wrong on Windows.
Second, the Read() tool in this case is the culprit.

AFAIR, Claude used to work and had no issues. You must have introduced a breaking change. Besides, CC is still not the best on Windows.

{
  "permissions": {
    "allow": [
      "Read(/C:\\Users\\eliasb\\Projects\\myproject\\_plan/**)",
      "Read(/C:\\Users\\eliasb\\Projects\\myproject\\_plan/**)",
      "Read(C:\\Users\\eliasb\\Projects\\myproject\\_plan/**)",
      "Read(/C:\\Users\\eliasb\\Projects\\myproject\\_plan/**)",
      "Read(/C:\\Users\\eliasb\\Projects\\myproject\\_plan/**)",
      "Read(/C:\\Users\\eliasb\\Projects\\myproject\\_plan/**)",
      "Read(/C:\\Users\\eliasb\\Projects\\myproject\\_plan/**)",
      "Read(/C:\\Users\\eliasb\\Projects\\myproject\\_plan/**)"
    ],
    "deny": [],
    "ask": []
  }
}

What Should Happen?

First, fix the bug with the trailing slash
Second, a single correct entry should be there and it should have been respected once it was added.

{
  "permissions": {
    "allow": [
      "Read(C:\\Users\\eliasb\\Projects\\myproject\\_plan/**)",
    ],
    "deny": [],
    "ask": []
  }
}

Error Messages/Logs

Steps to Reproduce

Just test your stuff on Windows team. Windows users deserve better quality. Work a bit on Windows, wait for CC to ask for Read permission for a path or file and see the problem.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

1.0.108 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

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