Repository navigation
Description
Windows Codex regression: elevated sandbox fails setup refresh; unelevated denies trusted workspace writes
WHAT VERSION OF THE CODEX APP ARE YOU USING?
Codex Desktop version 26.930.31730, build 12947
WHAT SUBSCRIPTION DO YOU HAVE?
PRO
WHAT PLATFORM IS YOUR COMPUTER?
Windows 11 x64, build 26200.9550
WHAT ISSUE ARE YOU SEEING?
Codex Desktop on Windows 11 worked normally for an extended period with an established local Godot development project on a trusted D: drive workspace. Codex had normal read/write access and had been used extensively for development without this problem.
On October 3, 2026, this suddenly stopped working.
I have isolated the problem through several controlled tests. The evidence indicates that the failure is specific to the Codex Windows sandbox/security context rather than the project, Godot, the D: drive, or my normal Windows account permissions.
With the Codex configuration:
[windows]
sandbox = "elevated"
even a harmless shell command:
echo CODEX_RUNTIME_OK
fails before execution with:
exec_command failed: CreateProcess { message: "Rejected("Failed to create unified exec process: helper_unknown_error: setup refresh had errors")" }
This failure can be reproduced without accessing the development project at all, so the initial elevated-sandbox failure is not caused by the repository.
I then changed ONLY the Codex Windows sandbox configuration to:
[windows]
sandbox = "unelevated"
After restarting Codex, the same harmless command succeeds:
CODEX_RUNTIME_OK
Under unelevated mode, Codex can also successfully read the trusted D: workspace, including project files, source files, reports, manifests, and other repository content.
However, Codex then cannot WRITE to the trusted workspace.
To isolate this from any development operation, I attempted a disposable write directly at the trusted workspace root:
D:\GameDevelopment\GodotProject\my-game\CODEX_ROOT_WRITE_TEST.txt
Codex failed with:
Exception calling "Open" with "3" argument(s): "Access to the path 'D:\GameDevelopment\GodotProject\my-game\CODEX_ROOT_WRITE_TEST.txt' is denied."
This was not a write attempt inside an unusual child directory. It was directly at the trusted workspace root.
I then tested the exact same directory outside Codex using an ordinary Windows Command Prompt under the same Windows account.
The following operations all succeeded:
echo WRITE_TEST>"D:\GameDevelopment\GodotProject\my-game\CODEX_WRITE_TEST.txt"
type "D:\GameDevelopment\GodotProject\my-game\CODEX_WRITE_TEST.txt"
del "D:\GameDevelopment\GodotProject\my-game\CODEX_WRITE_TEST.txt"
The file was successfully created, read, and deleted.
Therefore, the D: drive, project directory, filesystem, and normal Windows account all have working write permissions.
The write failure occurs specifically inside the Codex unelevated sandbox.
The resulting A/B comparison is:
ELEVATED SANDBOX
- Codex Desktop starts: PASS
- Codex executable starts: PASS
- Local shell creation: FAIL
- Harmless echo command: FAIL
- Error: helper_unknown_error: setup refresh had errors
UNELEVATED SANDBOX
- Codex Desktop starts: PASS
- Local shell creation: PASS
- Harmless echo command: PASS
- Trusted workspace reads: PASS
- Trusted workspace writes: FAIL
- Disposable file creation at trusted workspace root: FAIL / Access Denied
ORDINARY WINDOWS USER OUTSIDE CODEX
- Same workspace read: PASS
- Same workspace create: PASS
- Same workspace write: PASS
- Same workspace delete: PASS
This leaves me with no currently functional native Windows Codex sandbox configuration for normal development.
The project and this workflow worked normally before October 3, 2026.
STEPS TO REPRODUCE
-
Start Codex Desktop on Windows 11 with an existing trusted workspace on a secondary D: drive.
-
Configure:
[windows]
sandbox = "elevated"
-
Start a new Codex conversation.
-
Ask Codex to execute:
echo CODEX_RUNTIME_OK
- Codex fails before the command executes with:
Failed to create unified exec process: helper_unknown_error: setup refresh had errors
-
Close Codex.
-
Change only the configuration to:
[windows]
sandbox = "unelevated"
-
Restart Codex.
-
Execute:
echo CODEX_RUNTIME_OK
- The command succeeds and returns:
CODEX_RUNTIME_OK
- Have Codex read files from the trusted D: workspace.
Result: PASS.
- Have Codex create a disposable file directly at the trusted workspace root:
D:\GameDevelopment\GodotProject\my-game\CODEX_ROOT_WRITE_TEST.txt
- The write fails with:
Exception calling "Open" with "3" argument(s): "Access to the path 'D:\GameDevelopment\GodotProject\my-game\CODEX_ROOT_WRITE_TEST.txt' is denied."
-
Stop the Codex task.
-
Open an ordinary Windows Command Prompt under the same Windows account.
-
Run:
echo WRITE_TEST>"D:\GameDevelopment\GodotProject\my-game\CODEX_WRITE_TEST.txt"
- Run:
type "D:\GameDevelopment\GodotProject\my-game\CODEX_WRITE_TEST.txt"
- The command returns:
WRITE_TEST
- Run:
del "D:\GameDevelopment\GodotProject\my-game\CODEX_WRITE_TEST.txt"
- The delete succeeds.
This demonstrates that Windows itself allows normal write access to the same location where the Codex unelevated sandbox receives Access Denied.
ADDITIONAL RUNTIME DIAGNOSTICS
Codex Desktop:
26.930.31730 (build 12947)
Codex CLI:
codex-cli 0.160.0
Windows:
Windows 11 x64, build 26200.9550
Godot:
4.7.1.stable.official.a13da4feb
During troubleshooting, I located the Codex-managed cua_node runtime.
The Codex core executable itself worked correctly when invoked with:
codex.exe --version
and returned:
codex-cli 0.160.0
The Codex-managed runtime was also preserved as a backup and Codex was allowed to regenerate a fresh cua_node runtime automatically.
The elevated sandbox setup-refresh problem persisted after the runtime was regenerated.
No project files were modified during this process.
GODOT CONTROL TEST
The installed Godot 4.7.1 executable launches normally outside Codex.
The development project also opens and runs normally when Godot is launched directly by the Windows user.
When the same Godot executable was launched through the Codex unelevated environment during troubleshooting, Godot reported inability to open its user://logs location and subsequently crashed.
Launching the same executable normally outside Codex succeeds.
This provides additional evidence that the failing boundary is the Codex Windows sandbox/security context rather than Godot or the project.
PROJECT INTEGRITY CONTROL
Because this is an established development project, I independently verified its protected state after the Codex failures.
- 709 protected project files matched their previously recorded hashes.
- Protected before/after world manifests remained identical.
- No project corruption was detected.
- Failed Codex implementation attempts modified zero project files.
- No project relocation occurred.
- No project permission changes were intentionally made.
- No manual Windows ACL modifications were made.
This is important because Codex had been working normally
Activity
github-actions commentedon Oct 4, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action