GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [Bug]: Inline env var prefix (e.g. `CI=true git commit`) bypasses bash permission rules · Issue #16075 · anomalyco/opencode Closed as not planned Closed as not planned Copy link DescriptionDescriptionCommands with inline environment variable prefixes (e.g. This affects any inline env var prefix, not just Root CauseIntroduced in commit e7ff714 (2026-01-30): "fix: handle redirected_statement treesitter node in bash permissions (#6737)" In let commandText = node.parent?.type === "redirected_statement" ? node.parent.text : node.text
Then on line 139: patterns.add(commandText) // "CI=true git commit -m \"msg\"" The permission system then tries to match Meanwhile, the Before the offending commitThe previous code was: patterns.add(command.join(" ")) // "git commit -m msg" ← correctly stripped This correctly matched The change broke itThe commit changed Steps to Reproduce
{
"permission": {
"bash": {
"git *": "ask",
"*": "allow"
}
}
}
Works with any inline env var: Note: Environment
Reacted by superDuperCyberTechno Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |