[PR #2592] tweak: make bash permissions key off of command pattern #10366

Closed
opened 2026-02-16 18:15:00 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2592

State: closed
Merged: Yes


This updates bash permissions to mimic behaviors of similar coding tools for a more consistent and expected experience

Example:

if llm runs: "echo hello"

and I approve always, that should apply as "echo *"

if llm runs "git log -n 5" and I say approve always, that should apply as "git log *"

similarly for chained commands like:

echo hello && git log -n 5

an approve always applies as:

echo * and git log *

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2592 **State:** closed **Merged:** Yes --- This updates bash permissions to mimic behaviors of similar coding tools for a more consistent and expected experience Example: if llm runs: "echo hello" and I approve always, that should apply as "echo *" if llm runs "git log -n 5" and I say approve always, that should apply as "git log *" similarly for chained commands like: echo hello && git log -n 5 an approve always applies as: echo * and git log *
yindo added the pull-request label 2026-02-16 18:15:00 -05:00
yindo closed this issue 2026-02-16 18:15:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10366