Repository navigation
Description
Environment
- Codex Desktop version: 26.908.40834
- Platform: Windows
- Subscription: ChatGPT Plus
- Model: GPT-5.6 Sol
- Windows user:
2025-04-10-D01\COSH - Current user SID:
S-1-5-21-2638354131-1635556175-1629256366-1001 - System was fully rebooted during troubleshooting.
- Usage limits were not exhausted (about 98% of the current 5-hour allowance remained during testing).
Summary
Codex Desktop can perform some read-only operations, but write-oriented operations hang indefinitely.
Controlled testing indicates two separate failure modes:
- An existing project workspace fails during sandbox ACL setup with
SetNamedSecurityInfoW failed: 5. - A newly created clean workspace has correct ownership and successful sandbox ACL setup (
errors=[]), but an explicitly requested PowerShell write command is never launched and does not appear in the sandbox log.
The second failure reproduces independently of the original repository, Git, project configuration, custom agents, or workspace ACL ownership.
Failure mode 1 — Existing project: sandbox ACL setup fails
Existing project:
D:\eevision_xe10\evmesh
Sandbox log reports:
granting write ACE to D:\eevision_xe10\evmesh for sandbox group and capability SID
write ACE grant failed on D:\eevision_xe10\evmesh: SetNamedSecurityInfoW failed: 5
deny ACE failed on D:\eevision_xe10\evmesh\.git:
SetNamedSecurityInfoW failed for D:\eevision_xe10\evmesh\.git: 5
setup refresh completed with errors
setup error: setup refresh had errors
ACL inspection shows normal inherited permissions including Authenticated Users:(M), but the workspace and .git owner SID differ from the currently logged-in Windows user's SID:
Workspace owner:
S-1-5-21-2283855486-1997267379-3259020087-1001
Current user:
S-1-5-21-2638354131-1635556175-1629256366-1001
Normal file modification is possible through inherited permissions, but Codex fails when attempting to modify the security descriptor.
Failure mode 2 — Clean workspace: ACL setup succeeds, but write command is never launched
To isolate the issue, I created a completely new directory and opened it as a new Codex project:
D:\codex_test
Owner is the current user:
(Get-Acl "D:\codex_test").Owner
2025-04-10-D01\COSH
ACL after Codex initialization includes:
2025-04-10-D01\CodexSandboxUsers:(OI)(CI)(M)
S-1-5-21-3298927432-701962161-1885063525-1065416621:(OI)(CI)(M)
The sandbox log confirms successful workspace-write ACL provisioning:
granting write ACE to D:\codex_test for sandbox group and capability SID
setup refresh: processed 3 write roots (read roots delegated); errors=[]
setup binary completed
read-acl-only mode: applying read ACLs
read ACL run completed
helper launch resolution: using copied command-runner path ...
Reproduction test
In a new session using D:\codex_test, I explicitly instructed Codex to execute only:
Set-Content -LiteralPath '.\code_test2.txt' -Value 'hello'and not to use any alternative method.
Codex entered the processing/running state but did not complete the operation.
Most importantly, Set-Content never appears anywhere in the sandbox log.
The same log contains other commands such as Get-Content and Get-Item, so command logging is active. The explicitly requested write command appears never to reach the sandbox execution layer.
This suggests the write request may be hanging or being lost before reaching codex.exe / codex-command-runner / PowerShell.
Additional controlled tests
Tests performed include:
- Existing Visual Studio C++ repository
- New Codex sessions
- Completely new Codex project
- Clean directory unrelated to the repository
- Full Windows reboot
- Read-only operations
- File creation/write operations
Observed pattern:
- Some read-only operations succeed.
- Write/create operations hang.
- In the original repository, sandbox ACL setup itself fails.
- In the clean workspace, ACL setup succeeds but the requested write command may never be launched.
The clean-workspace failure therefore does not appear to be caused solely by Git, .git, repository contents, project instructions, custom agents, Visual Studio, exhausted usage limits, the original conversation/session, or ordinary NTFS write permission.
Global Codex configuration
%USERPROFILE%\.codex\config.toml contains only:
model = "gpt-5.6-sol"
model_reasoning_effort = "xhigh"There are no custom approval_policy, sandbox_mode, or Windows sandbox settings in the global configuration.
Other sandbox-log observation
The command runner repeatedly logs:
hide users: failed to hide current user profile dir (C:\Users\Default):
SetFileAttributesW failed for C:\Users\Default: 5 (Access is denied.)
This also occurs during runs where workspace ACL setup otherwise reports errors=[]. Permissions/ownership of C:\Users\Default have not been modified during troubleshooting.
Expected behavior
With a clean workspace and successful sandbox provisioning, a simple command such as:
Set-Content -LiteralPath '.\code_test2.txt' -Value 'hello'should be dispatched to the sandbox command runner and create the file.
Actual behavior
Codex remains in a running/processing state, but the requested write command is never observed in the sandbox log and the file is not created.
Possibly related issues
This may be related to other Windows sandbox regressions reported against Codex Desktop 26.908.40834, including #45152 and #45153 (SetNamedSecurityInfoW / sandbox initialization failures).
However, the clean-workspace reproduction appears different from a pure ACL failure because the workspace owner is correct, CodexSandboxUsers has Modify permission, sandbox write-ACE provisioning reports errors=[], and the requested write command itself never appears in the sandbox log.
This may indicate an additional tool-dispatch / turn-lifecycle / command-submission problem above the Windows sandbox execution layer.
I can provide the complete sandbox.2026-09-15.log if needed. It contains both the SetNamedSecurityInfoW failed: 5 failures against the existing repository and successful errors=[] provisioning for the clean workspace.
Activity
github-actions commentedon Sep 15, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
dongyuehliu commentedon Sep 15, 2026
I reviewed #44882. It appears related to Failure Mode 1 in this report (
SetNamedSecurityInfoW failed: 5), but it does not appear to cover Failure Mode 2.In my clean control workspace
D:\codex_test, the workspace is owned by the current user, the sandbox successfully grants the write ACE, and setup completes with:However, when Codex is explicitly instructed to execute:
the operation hangs and the requested
Set-Contentcommand never appears in the sandbox log at all.Therefore #44882 may explain the ACL failure in my existing repository, but it does not appear to explain the independently reproduced clean-workspace failure where sandbox setup succeeds and the write command is never dispatched to the execution layer.
I am keeping this issue open for maintainer triage unless the underlying root cause of both behaviors is confirmed to be the same.
seishinshigo commentedon Sep 15, 2026
I can reproduce the ACL/setup failure described in Failure Mode 1 on the same Codex Desktop version,
26.908.40834.Environment:
26.908.4083426200.94457.6.6workspace-writeI isolated the behavior with independent workspaces.
Elevated sandbox
Non-Git workspace:
D:\Users\<user>\project\<non-git-test>Get-Datesucceeds normally.Git workspace 1:
D:\Users\<user>\project\<repo1>Sandbox setup fails before the command starts:
Git workspace 2:
D:\Users\<user>\project\<repo2>The same failure occurs against that repository's own
.git:For both failing repositories:
.gitand.git\HEADowner:<machine>\CodexSandboxOfflineI also fully restarted Codex Desktop and retried. Running Codex Desktop as Administrator and approving UAC did not change the result; the same
.git/SetNamedSecurityInfoW ... : 5failure occurred.Unelevated control
After changing:
and restarting Codex Desktop,
Get-Datesucceeds in both Git workspaces.So on this machine the A/B result is:
.gitNo ACL, owner, inheritance, EFS, Defender, or repository settings were modified during diagnosis.
OpenAI Support recommended using
unelevatedas the temporary fallback while the elevated sandbox issue remains unresolved.dongyuehliu commentedon Sep 15, 2026
Additional A/B results after applying the suggested
unelevatedworkaround on Codex Desktop26.908.40834.First, a correction to my original report: I initially thought the global
config.tomlcontained only the model settings because there were many blank lines after the first two lines. After inspecting the complete file, it is a Codex Desktop-managed config containing runtime/plugin/MCP/project settings as well. The relevant current settings include:I did not otherwise modify the generated runtime/plugin/MCP settings.
After setting
sandbox = "unelevated", fully exiting/restarting Codex Desktop, and testing fresh sessions in the clean non-Git workspaceD:\codex_test, behavior is still inconsistent:test.txt: explicitly executingSet-Contentreturned success.test.txtsucceeded; a subsequent explicitSet-Contentcommand in the same session hung.Set-Content -LiteralPath '.\code_test5.txt' -Value 'hello'did not behave normally and returned an error saying the pathD:\codex_test\code_test5.txtcould not be found (althoughSet-Contentshould create a new file when the parent directory exists). A subsequent explicitGet-Contentcommand then hung.Therefore,
unelevateddoes appear to bypass the reproducible elevated-sandbox ACL/setup failure from Failure Mode 1, and it allowed at least one clean-workspace write to succeed. However, it does not make command execution reliable on this machine: fresh sessions in the same clean non-Git workspace can still hang or produce anomalous command behavior.At this point I do not think the remaining Failure Mode 2 can be reduced to a simple
read -> writetransition. The stronger observation is that command execution/dispatch is intermittent across fresh sessions even withsandbox = "unelevated".I have not changed NTFS ownership/ACLs, reset
.codex, or reinstalled the app during these tests.dongyuehliu commentedon Sep 15, 2026
Update after upgrading Codex Desktop: the issue is no longer reproducible in my current tests.
Version A/B
Previously failing version:
26.908.40834As documented above, command execution in a clean non-Git workspace was intermittent, including hangs after reads and anomalous/undispatched write commands.
New version:
26.908.70816I kept the same machine and current config, including:
After upgrading and restarting Codex Desktop:
D:\codex_test, Codex successfully readtest.txt, executedSet-Content, and created/read the test output normally.D:\eevision_xe10\evmesh. Read, write, read-back, and deletion of a harmless test file all succeeded.So the same workflows that were reproducibly/intermittently failing on
26.908.40834are currently working on26.908.70816.I have not changed the repository NTFS ownership/ACLs, reset
.codex, or reinstalled Windows. I am leaving the issue open for maintainer triage for now, since I do not know whether26.908.70816contains an intentional fix for the underlying problem or whether it could recur.aravelo7 commentedon Sep 17, 2026
I reproduced what appears to be the same Windows sandbox ownership / ACL failure on a normal local NTFS workspace.
Workspace:
D:\Projects\MinDisclosureAll Codex commands started failing before actual command execution, including a basic
Get-Location, with:helper_unknown_error: setup refresh had errorsThe sandbox log showed:
deny ACE failed on D:\Projects\MinDisclosure\.gitSetNamedSecurityInfoW failed for D:\Projects\MinDisclosure\.git: 5setup refresh completed with errorsI then inspected the ACL of the
.gitdirectory.The relevant state was:
Owner: LAPTOP-IN91EGM5\CodexSandboxOfflineAreAccessRulesProtected: FalseCodexSandboxUsersalready hadModify, Synchronizeaccess.I changed only the owner of:
D:\Projects\MinDisclosure\.gitback to my normal Windows user.
I did not reset the ACL tree, modify the repository contents, or change the ownership of the whole workspace.
Immediately afterwards, command execution recovered in the same workspace:
Get-Locationsuccessfully returned:
D:\Projects\MinDisclosureSo in this reproduction, the immediate blocker was specifically the
.gitdirectory being owned byCodexSandboxOffline. During sandbox setup refresh, Codex could no longer apply the required deny ACE to.git, causing the entire command helper initialization to fail.I do not yet have a deterministic reproduction for the ownership transition itself, so I cannot confirm which Codex operation originally changed the
.gitowner toCodexSandboxOffline.