anomalyco / anomalyco/opencode

permission handling with env variables

Open
#45,914 1 comment 0 reactions 1 assignee View on GitHub

@jlongster 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

i got prompt for "Permission required" / "Shell command".

the command is something like PYTHONPATH=...somepath uv run ...
i press "Allow always", then i get prompt "will allow ... uv *"

However uv * is allowed in my opencode.json

I suspect that the env variable prefix is not part of the mathcing process, but when opencode tries to determine what to give permisson to, it does identify uv as base command, yet it should then do a 2nd lookup
to see if it has permissions for it. And only in case it does not have the permissions, only then start this interactive process

Plugins

OMO-slim, superpowers

OpenCode version

1.18.21 (try to use latest)

Steps to reproduce

Will try to come up with reproducer

Screenshot and/or share link

No response

Operating System

RHEL 9.8

Terminal

tmux over ssh

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.