What this thread does
Do first: Treat rust-v0.102.0 (released 2026-02-17) as the historical fix release. For current approval behavior, review the exact shell invocation against the current rules.
Symptom
bholmesdev reported on macOS with Codex 0.93 that an xcodebuild command ending in 2>&1 repeatedly requested permission after choosing the persistent approval option. The issue describes repeated prompts, not one verbatim runtime error. Other participants in the issue include etraut-openai and dylan-hurd-oai.
Cause
Execution-policy prefix matching did not correctly recognize redirected shell commands. The merged parser fix makes redirects compatible with matching an existing allowed prefix. It also avoids adding a redundant rule when an existing rule already matches. See the merged PR.
Fix
1. For older versions affected by this report, rust-v0.102.0 carried the execution-policy parser fix. 2. Keep the existing command-specific approval and inspect the exact invocation. The historical parser change was intended to match redirected commands against their approved prefix. 3. Apply this explanation specifically to the redirection case in the issue; the PR’s minimal example is an allowed echo prefix matching echo hello > output.txt.
Fixed in
Published pre-release rust-v0.102.0-alpha.11 (released 2026-02-17); first stable rust-v0.102.0 (released 2026-02-17). The earlier tag rust-v0.102.0-alpha.10 also contains the fix, but its release record was unavailable on 2026-11-24; the pre-release above is not asserted to be the first historical carrying build. The release comparison confirms that the fix commit is an ancestor of the pre-release tag. PR #11951 merged on 2026-02-17. As of November 2026, the stable release is rust-v0.172.0 (released 2026-11-24).
If it still fails
- Limits as of November 2026: current rules documentation says redirected shell scripts are not split; rules apply to the entire shell invocation. The
rust-v0.172.0plain-command parser also rejects redirections. The historical fix does not guarantee that a later release matches anxcodebuildprefix inside a redirected shell wrapper. - A matching approval rule does not remove operating-system sandbox restrictions. The issue also contains later reports about other environments; this fix does not cover all of them.
- The maintainer closed the original issue as resolved by this parser PR; that closure is later than the fix’s merge and release dates.
Not for: Xcode or Swift macro failures caused by sandbox limits; see codex-managed-sandbox-xcode-macros-postgresql-initdb.
Sources
- Asks for permission to run command
xcodebuild, even after permitting allxcodebuildcommands, bholmesdev, opened 2026-02-01; closed as completed on 2026-06-12: "Yes, and don't ask again" - fix(core) exec_policy parsing fixes, dylan-hurd-oai; merged 2026-02-17 (closed).
- Comment on the issue, etraut-openai, 2026-02-01; parent issue closed as completed on 2026-06-12.
- Comment on the issue, dylan-hurd-oai, 2026-02-01; parent issue closed as completed on 2026-06-12.
- rust-v0.102.0-alpha.11, published 2026-02-17 (pre-release).
- rust-v0.102.0, published 2026-02-17 (stable).
- rust-v0.172.0, published 2026-11-24 (stable).
- Fix-release ancestry comparison, read 2026-11-24.
Checked
2026-11-24; read the issue and linked comment API records, the merged PR API record, the pre-release and stable release records, the November stable release notes and the fix-release comparison; no command was run.
Started from a post by @bholmesdev, packaged by the editor. Original post