You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows approval rules do not generalize for PowerShell-wrapped gh issue --json commands #24198
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
On Windows Codex Desktop, approval rules/exclusions appear not to generalize correctly for PowerShell-wrapped GitHub CLI issue commands, especially when using gh's comma-separated --json field list.
Observed in Codex Desktop app version 26.519.5221.0, active CLI/app-server path using codex-cli 0.133.0-alpha.1.
Setup:
User rules include prefix_rule(pattern=["gh", "issue"], decision="allow").
This is surprising because the documented Rules page says plain shell words joined by safe operators should be split before rules are applied, and its own example includes gh pr view 7888 --json title,body,comments. The documented advanced-shell-feature exclusions mention redirection, substitutions, env vars, wildcards, and control flow, but not commas.
Expected: a rule such as ["gh", "issue"] should cover PowerShell-wrapped gh issue commands regardless of comma-separated --json values, or the docs/UI should clarify why this form cannot be generalized.
Actual: the approval system appears to require an overly specific command string for the comma-separated --json form.
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon May 23, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action