Skip to content

Bug: permission pathing crossplatform #7279

@KoalaHao

Description

@KoalaHao

Description

      "permission": {
        "edit": {
          "*": "deny",
          "myPath/*": "allow",

this fails to match on windows, because the path would be myPath\*

Plugins

No response

OpenCode version

1.1.6

Steps to reproduce

  1. windows
  2. set edit permission to deny, set a specific path with forward slash / to allow, eg myPath/*
  3. tell agent to edit a file in that path
    opencode denies edit
  4. set path to back slash, eg myPath\*
    opencode allows edit to that directory

Screenshot and/or share link

No response

Operating System

windows

Terminal

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions