[High-impact macOS desktop regression] Git fetch, merge and commit stop at .git permission error without scoped escalation
Impact
On 17 November 2026, routine local Git writes that had previously worked are failing across multiple Codex desktop chats for the same user. Fetch, merge and commit are affected. This blocks normal development work. The user has Approve for me selected and does not want unrestricted Full access as a workaround. Please triage as high priority.
Environment
- macOS 27.2.1, Apple Silicon (arm64)
- Currently installed ChatGPT/Codex desktop app: 26.1111.21308 (the exact build used when each failing chat started was not independently captured)
- Local Git repository; the session's workspace-write policy protects
.gitas read-only - No Git push requested or attempted
Observed failure
In one affected chat, git fetch upstream master failed with:
error: cannot open '.git/FETCH_HEAD': Operation not permitted
The chat reported that nothing was fetched and stopped. It did not request elevated permission for the command, so automatic review never had a request to assess. The user reports the same pattern for commit and merge in other Codex windows. An earlier chat working on the same checkout successfully fetched and merged, so behaviour is inconsistent across chats; the precise cause is not established.
Expected
When a user authorises a Git operation under Approve for me, Codex should request narrowly scoped elevated command access when the protected Git metadata prevents it, route that request to automatic review, and continue if approved. If escalation is unavailable or denied, explain that specific reason. Routine Git work should not require granting the agent unrestricted access to the entire computer.
Reproduction
- Open a local Git checkout in Codex desktop with Approve for me selected.
- Ask Codex to fetch
upstream master(or commit/merge local code). - Observe the
.git/FETCH_HEADpermission error and that the agent stops without requesting command escalation.
Related reports
#54574 describes basic Git writes blocked in macOS desktop; #56742 describes loss of scoped Git approvals in a later Windows chat; #14338 requests a Git metadata write path without Full access. This report focuses on the current multi-chat regression and the missing escalation attempt.
No repository name, private file path, credentials, raw logs or project contents are included.
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #60878
- #61297
Powered by Codex Action
Reproduced on macOS using the Codex desktop app 26.1117.41037 (build 29803). The separately installed CLI reports 0.171.0. The desktop task uses managed workspace-write in a linked worktree whose Git common directory is outside the writable workspace root.
The CLI policy checker, evaluating all saved user rule files, matches prefix_rule(pattern=["git", "fetch"], decision="allow") for this exact invocation:
git fetch --no-tags --no-write-fetch-head origin <verified-commit-sha>
The remote is reachable with git ls-remote. The desktop execution tool fails with unable to create temporary file: Operation not permitted and unpack-objects failed. It does so both in default execution and when asked to use scoped host execution. The originally missing commit remains absent. Forcing a packed fetch also fails on temporary-file creation inside the shared object store.
This adds a case where the agent requested escalation and the saved policy checker already returned allow. Can the desktop executor expose whether it loaded the same rule and whether managed policy kept the command sandboxed? The expected result is an authorized fetch that writes objects for the current repository, with an explicit denial when managed policy prohibits it.
Acceptance test: run the fetch from two linked worktrees in distinct disposable repositories, each with a common Git directory outside its workspace. Prove the fetched commit is present from each task and that an unrelated repository and unapproved Git config or hook writes remain blocked. Reopen the desktop app and repeat.
Escalate this ASAP; the desktop app is functionally broken