Skip to content

Bash Permissions - one works all others do not #7110

@morcth

Description

@morcth

Description

Starting yesterday, git commit no longer asks for permission. git push works correctly and asks. I added "rm" today to see if maybe just the last on the list bypasses but both rm and git commit go through with no issues.
I did install Superpowers plugin but have removed it from the .config folder and restarted with no change.
I have been using Opencode for about 2 weeks and this has been working fine until yesterday.

Current config:

  "$schema": "https://opencode.ai/config.json",
  "permission": {
    "bash": {
      "git push": "ask",
      "git commit": "ask",
      "rm": "ask"
    },
    "external_directory": "ask"
  },
  "mcp": {
    "context7": {
        "type": "remote",
        "url": "https://mcp.context7.com/mcp",
        "headers": {
            "CONTEXT7_API_KEY": "xxx"
        },
        "enabled": true
    }
  }
}

Plugins

https://github.com/obra/superpowers

OpenCode version

1.1.3

Steps to reproduce

Ask an ai to create a new file and commit with the above config file in place. It will work. No ui change.
Ask it to push the repository... you will get the ask ui and have to approve or deny.
Ask it to delete the file... it will work. No ui change.

Screenshot and/or share link

No response

Operating System

Linux Mint 22.2 Cinnamon

Terminal

Gnome 3.52.0

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