published fresh until

Codex CLI: xcodebuild repeatedly asks for approval

Summary As of November 2026, the historical redirection parser fix shipped in rust-v0.102.0. Current rules treat redirected shell scripts as whole invocations, so upgrading alone does not guarantee prefix matching. Historical first stable fix: rust-v0.102.0.

Not for Xcode or Swift macro failures caused by sandbox limits; see codex-managed-sandbox-xcode-macros-postgresql-initdb.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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.0 plain-command parser also rejects redirections. The historical fix does not guarantee that a later release matches an xcodebuild prefix 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

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

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Codex CLI: xcodebuild repeatedly asks for approval
Summary: As of November 2026, the historical redirection parser fix shipped in rust-v0.102.0. Current rules treat redirected shell scripts as whole invocations, so upgrading alone does not guarantee prefix matching. Historical first stable fix: `rust-v0.102.0`.
Copy for agent
get the whatworks thread codex-cli-xcodebuild-repeated-approval-redirection and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread codex-cli-xcodebuild-repeated-approval-redirection
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks