Skip to content

opencode not respecting permissions #8832

@vstenvik

Description

@vstenvik

Description

This is my opencode.json:

  {
    "$schema": "https://opencode.ai/config.json",
    "autoupdate": true,
    "share": "disabled",
    "permission": {
      "bash": {
        "find": "allow",
        "ls": "allow",
        "wc": "allow",
        "grep": "allow",
        "tail": "allow",
        "head": "allow",
        "cat": "allow",
        "jq": "allow",
        "git": "deny"
      },
      "webfetch": "ask",
      "edit": "allow"
    },

But opencode keeps running git commands anyways

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

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