Skip to content

[Bug] Permissions are case sensitive on Windows #36690

Closed as not planned
Closed as not planned

Description

@m21-cerutti

Description

Hello,

I tried to configure my opencode with windows cmdlet but it seems there is problems.

For extent, cmdlet windows are not working but worst, permissions are case sensitive.

Here my configuration (trying to make bug report for cmdlet) :

{
  "$schema": "https://opencode.ai/config.json",
  "permission": {
    "*": "ask",
    "read": "allow", // Not working
    // "Read": "allow", 
    "glob": "deny", // Not working
    "Glob": "deny",
    "bash": {
      "*": "ask",
      // PowerShell read-only cmdlets
      "Test-Path *": "allow", // Not working
      //"Test-Path*": "allow", // Not working
      //"Test*": "allow", // Not working

      // Explicit PowerShell invocations
      //"pwsh -Command Test-Path*": "allow",
    },
  },
}

Also documentation is linux centered and don't handle this cases.
https://opencode.ai/docs/permissions/#granular-rules-object-syntax

Plugins

None

OpenCode version

1.17.18

Steps to reproduce

  1. Set a new project with opencode.jsonc (or unzip the one I gave)
  2. Ask to search files and test paths on windows, prompt :
    Test if TOTO.md exist with Test-Path cmdlet windows and read content.
  3. Accept to use "Test-Path" cmdlet if asked
  4. Permission "Read" is asked. <- Would be allowed with permissions

bug-permissions.zip

Screenshot and/or share link

** With read**

Image

** With Read**

Image

** With glob only**

Image

Operating System

Windows 11 25H2 26200.8655

Terminal

OpenCode vscode extension

Activity

  1. github-actions commented on Jul 13, 2026

    @github-actions
    Contributor

    This issue might be related to an existing open issue. Please check:

    These issues may be related enough to consolidate into a single report, though they do describe distinct bugs (path handling vs. case sensitivity of permission keys). Maintainers may want to track them together.

  2. m21-cerutti commented on Jul 13, 2026

    @m21-cerutti
    Author

    Need to verify it also for agents (json + fontmatter)

  3. github-actions commented on Sep 12, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  4. m21-cerutti commented on Sep 12, 2026

    @m21-cerutti
    Author

    Still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions