Bash Permissions - one works all others do not #4320

Closed
opened 2026-02-16 17:43:26 -05:00 by yindo · 3 comments
Owner

Originally created by @morcth on GitHub (Jan 6, 2026).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @morcth on GitHub (Jan 6, 2026). Originally assigned to: @rekram1-node on GitHub. ### 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
yindo added the bug label 2026-02-16 17:43:26 -05:00
yindo closed this issue 2026-02-16 17:43:26 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 6, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #6873: Auto upgrade to 1.1.1, commands no longer require approval (regression since 1.1.1)
  • #6892: MCP tool permissions not working after migration from tools to permissions

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 6, 2026): This issue might be a duplicate of existing issues. Please check: - #6873: Auto upgrade to 1.1.1, commands no longer require approval (regression since 1.1.1) - #6892: MCP tool permissions not working after migration from tools to permissions Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Jan 6, 2026):

try adding wildcards: "rm *": "ask"

@rekram1-node commented on GitHub (Jan 6, 2026): try adding wildcards: "rm *": "ask"
Author
Owner

@morcth commented on GitHub (Jan 6, 2026):

Thank you @rekram1-node... that was it. I thought it could be that but since the permissions were working up until yesterday as is, I never ended up testing with the *.

Fixed... thanks!

@morcth commented on GitHub (Jan 6, 2026): Thank you @rekram1-node... that was it. I thought it could be that but since the permissions were working up until yesterday as is, I never ended up testing with the *. Fixed... thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4320