anomalyco / anomalyco/opencode
Opencode ran command explicitly set to ask without asking
@kitlangton is already working on this.
Since Aug 28, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
There are similar issues but they involve agents and this does not, therefore I'm opening a new issue.
I just asked opencode to fix an issue I have with kong starting up and it ran kubectl without asking, eventhough I have it set to ask under permissions (see config below).
I asked it if I had allowed it to do so in session and that was a no as well:
my global config at ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"lsp": true,
"plugin": ["superpowers@git+https://github.com/obra/superpowers.git"],
"mcp": {
"atlassian": {
"type": "remote",
"url": "https://mcp.atlassian.com/v1/mcp/authv2",
"enabled": true
}
},
"permission": {
"bash": {
"*": "ask",
"* --version": "allow",
"bash --version": "allow",
"base64 *": "allow",
"bun --version": "allow",
"cat *": "allow",
"diff *": "allow",
"echo *": "allow",
"find *": "allow",
"git add *": "ask",
"git commit *": "ask",
"git diff *": "allow",
"git log *": "allow",
"git show *": "allow",
"git tag *": "deny",
"git push *": "ask",
"git status*": "allow",
"git -C * status*": "allow",
"gh *": "ask",
"go build *": "allow",
"go test *": "allow",
"gofmt *": "allow",
"golangci-lint *": "allow",
"grep *": "allow",
"head *": "allow",
"kubectl*": "ask",
"kubectl kustomize*": "allow",
"ls *": "allow",
"make lint": "allow",
"mkdir -p /tmp/opencode/*": "allow",
"npm --version": "allow",
"node --version": "allow",
"nvim --version": "allow",
"opencode --version": "allow",
"pwd *": "allow",
"rg *": "allow",
"sops *": "deny",
"sudo *": "deny",
"tail *": "allow",
"terraform * fmt*": "allow",
"uniq *": "allow",
"wc *": "allow",
"which *": "allow",
"xargs *": "allow"
},
"external_directory": {
"*": "ask",
"/tmp/opencode/*": "allow"
}
}
}
Plugins
superpowers
OpenCode version
1.18.25
Steps to reproduce
Usually this does not happen so I don't know how to replicate starting a new session in an empty directory yields a block:
Starting a new session in same directory yields an ask:
Screenshot and/or share link
Sorry but I cannot share this session
Operating System
Fedora 44
Terminal
Ghostty
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.