[Windows Desktop] "Approve for me" selected, but sandbox_approval=false blocks Git writes and permission escalation
What version of the Codex App are you using (From “About Codex” dialog)?
Powered by Codex & OWL Version 26.1117.41037 Released Nov 20, 2026 © OpenAI
What subscription do you have?
Pro
What platform is your computer?
windows
What issue are you seeing?
[Windows Desktop] "Approve for me" selected, but sandbox_approval=false blocks Git writes and permission escalation Summary Codex Desktop on Windows began enforcing a restrictive execution profile that prevents Git metadata writes, even though the chat UI shows Approve for me and the saved user configuration specifies on-request approvals with auto_review.
The effective session reports sandbox_approval=false. Consequently, operations that require permission to write protected .git metadata cannot be submitted for manual or automatic review. The same Git integration operations work from ordinary Windows PowerShell under the same Windows account. Environment
- OS: Windows
- Codex Desktop package: 26.1117.4957.0
- Account: ChatGPT Pro
- Git: 2.53.0
- Repository: Local Git checkout on an NTFS volume
- UI selection: Approve for me
- Effective sandbox: workspace-write
- Effective approval policy: granular
- Reviewer: auto_review
- Sandbox escalation capability: sandbox_approval=false Saved configuration at the time of investigation: approval_policy = "on-request" approvals_reviewer = "auto_review" sandbox_mode = "danger-full-access" I understand that Approve for me may legitimately use workspace-write; the issue is that the session provides no path to request approval for protected Git writes. The saved sandbox default was subsequently changed to workspace-write for safety; this was not demonstrated to resolve the problem. Expected behavior When Approve for me is selected, eligible operations requiring additional permission should be able to submit a request to the supported automatic review mechanism. Requests may be approved or denied under the relevant security policy. I do not expect unrestricted access or a permission bypass. Actual behavior The active session reports: sandbox: workspace-write approval_policy: granular reviewer: auto_review sandbox_approval: false rules: false skill_approval: false mcp_elicitations: true The repository's .git metadata is read-only in the effective filesystem profile. Because sandbox escalation requests are disabled, the automatic reviewer cannot assess otherwise authorized Git commits or fast-forward integrations. Steps to reproduce
- Launch the Windows Codex Desktop app.
- Open a trusted local Git repository.
- Select Approve for me under the message composer.
- Start a local Codex chat and inspect the effective execution/approval capabilities.
- Observe workspace-write, granular, and sandbox_approval=false even though the UI indicates Approve for me.
- Assign a bounded Git workflow requiring commit or integration. Result: The session cannot request permission to write protected .git metadata. In a later diagnostic session, the planned synthetic Git test stopped before any Git write because the effective policy already showed that escalation was unavailable. Evidence that Git itself works Ordinary Windows PowerShell, under the same Windows account, successfully:
- Switched to local main.
- Fast-forwarded main to an approved candidate commit.
- Updated .git metadata.
- Completed all 502 Python tests.
- Passed native Windows lifecycle, storage, event, recovery, and policy smoke checks.
- Verified the resulting commit SHA and clean working tree. This supports a Codex execution-policy problem rather than a general Git installation failure. Previous behavior and investigation The project's Windows command chart records an earlier Desktop-assisted Git commit. That capability later became unavailable. I cannot confirm which app update, session change, or policy layer introduced the regression.
Additional observations:
- The local repository is marked trusted in user configuration.
- No project-level config override was found during diagnosis.
- Saved configuration and effective session permissions disagree.
- /debug-config was not exposed as a native command in the affected chat; it was treated as plain chat text.
- No Windows ACL changes, privilege escalation, or Git sandbox bypass were attempted.
- Git writes remained unavailable despite the chat UI displaying Approve for me. Impact The regression prevents the previously usable workflow:
Approved source change → tests → explicit-file staging → commit → local integration → verification.
The user must perform the protected Git operations manually outside Codex, causing significant lost development time on a paid Pro subscription. Request Please investigate:
- Why Windows Desktop can display Approve for me while enforcing sandbox_approval=false.
- Whether a managed execution policy overrides the UI selection.
- Whether recent Windows Desktop changes altered Git metadata approval behavior.
- How to inspect the source of the effective policy when /debug-config is unavailable.
- How to restore eligible Git approval requests without enabling unrestricted Full Access. Related reports: #61989, #62943, #63025.
I can provide sanitized reproduction output if useful; the private repository, credentials, and full local configuration are not required to reproduce this problem.
What steps can reproduce the bug?
- Launch Codex Desktop on Windows (affected version:
26.1117.4957.0). - Open an existing trusted local Git repository on an NTFS drive.
- Select Approve for me from the permissions menu beneath the message box.
- Start a Codex conversation and ask it to inspect its effective sandbox and approval permissions.
- Observe that the session reports:
sandbox: workspace-writeapproval_policy: granularreviewer: auto_reviewsandbox_approval: false
- Ask Codex to perform an authorized Git commit or fast-forward integration requiring writes to the repository's
.gitmetadata. - Observe that Codex cannot request sandbox escalation because
sandbox_approval=false, even though Approve for me is selected. - Open normal Windows PowerShell under the same Windows account and perform the equivalent authorized Git operation. It succeeds.
Expected result: Codex should be able to submit eligible Git operations for automatic permission review when Approve for me is selected.
Actual result: The effective execution policy disables sandbox escalation, preventing protected Git writes from reaching the automatic reviewer.
Additional observation: The restriction persists despite the saved user configuration specifying approval_policy = "on-request" and approvals_reviewer = "auto_review". During a later diagnostic attempt, testing stopped before Git writes because the effective policy already showed escalation was unavailable.
What is the expected behavior?
No response
Additional information
No response
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #61936
- #61989
- #62406
Powered by Codex Action