Repository navigation
Description
Summary
The Codex Windows app cannot complete its one-time Windows setup. The UI repeatedly shows:
Windows setup didn’t finish • helper_failed
The installed Codex package is OpenAI.Codex 26.818.8289.0 and Windows reports the package status as Ok.
Environment
- Windows 11
- ChatGPT Plus account
- Codex package:
OpenAI.Codex_26.818.8289.0_x64__2p2nqsd0c76g0 - Package location:
C:\Program Files\WindowsApps\OpenAI.Codex_26.818.8289.0_x64__2p2nqsd0c76g0
What happens
Opening the new ChatGPT/Codex Windows app reaches Finish Windows setup. Clicking Try Windows setup again, approving the UAC prompt, still returns:
helper_failed
The sandbox helper exists at:
app\resources\codex-windows-sandbox-setup.exe
Diagnostics already performed
Get-AppxPackage OpenAI.Codex | Select Name,Version,Status
Result:
Name Version Status
OpenAI.Codex 26.818.8289.0 Ok
- Verified the helper exists:
codex-windows-sandbox-setup.exe
- Verified its Authenticode signature:
Status StatusMessage
Valid Signature verified.
- Attempted to invoke the helper directly from an elevated Administrator PowerShell session. Result:
Program 'codex-windows-sandbox-setup.exe' failed to run: Access is denied
CategoryInfo : ResourceUnavailable
FullyQualifiedErrorId : NativeCommandFailed
-
Microsoft Defender real-time protection was not active. Third-party security protections were also temporarily disabled for testing, with no change. The helper still returned
Access is denied. -
Microsoft-Windows-CodeIntegrity/Operationalshowed no matching block event during the failure. -
A temporary
.codex\config.tomltest using an unelevated Windows sandbox did not fix the issue. The original config was restored afterward. -
ChatGPT and Codex Start-menu registrations are present:
ChatGPT OpenAI.Codex_2p2nqsd0c76g0!App
ChatGPT Classic OpenAI.ChatGPT-Desktop_2p2nqsd0c76g0!ChatGPT
Expected behavior
Approving the UAC prompt should allow the one-time Windows helper setup to complete and permit normal local Codex use.
Actual behavior
The app remains stuck at Finish Windows setup with helper_failed, and the signed helper returns Access is denied when tested from elevated PowerShell.
Notes
The issue does not appear to be caused by account entitlement, missing installation, an invalid package, an invalid signature, or enabled antivirus/security protection. The failure appears specific to the Windows sandbox/helper setup path in this Codex build.
Activity
github-actions commentedon Aug 25, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
tiwat-lim commentedon Sep 12, 2026
I hit the same helper_sandbox_lock_failed error:
lock sandbox bin dir C:\Users\Admin.codex.sandbox-bin failed: SetNamedSecurityInfoW sandbox dir failed: 5
What fixed it for me was temporarily re-enabling ACL inheritance on the sandbox-bin directory from an elevated PowerShell:
icacls "$env:USERPROFILE.codex.sandbox-bin" /inheritance:e
After that I restarted Codex and ran the Windows setup again. The setup completed successfully.
Interestingly, after setup completed, icacls showed that Codex had removed inheritance again and restored its own explicit ACLs, so it looks like the installer/setup process needed inheritance enabled temporarily in order to successfully rewrite/lock the directory ACL.
Before the fix, the directory ACL was explicit-only and the setup repeatedly failed with Win32 error 5 (ERROR_ACCESS_DENIED).
This may indicate a migration/setup bug where .sandbox-bin can be left in a security state that prevents the helper from applying its final security descriptor.
RedXi commentedon Sep 12, 2026
I was able to get into the app using the workaround from #40550:
icacls "$env:USERPROFILE\.codex\.sandbox-bin" /inheritance:eHowever, the underlying problem is still there.
As soon as I start a normal operation on the project folder — for example simply listing the files — Codex fails again with the same known error:
If I then run the inheritance command again, the next Codex operation works once. But on the following access, the same error returns.
So the pattern is basically:
My current suspicion is that Codex itself disables inheritance again after the successful operation, and in doing so puts .codex.sandbox-bin back into a state where the next helper invocation can no longer update the ACL.
In other words, the workaround gets Codex unstuck temporarily, but Codex appears to lock itself out again immediately afterwards.
This also strongly suggests that the project folder itself is not the problem. The failure is entirely around the lifecycle of the ACL on .codex.sandbox-bin.
harrisseph-creator commentedon Sep 13, 2026
I am experiencing the same Windows sandbox setup failure described in #40550, but on a newer version of the ChatGPT/Codex Windows app.
Environment
Windows 11
OpenAI.Codex version: 26.908.4834.0
Package status: OK
Behavior
ChatGPT reaches Finish Windows setup and requests the one-time permission to work on the computer.
I click Try Windows setup again, Windows displays the UAC prompt for ChatGPT (Verified publisher: OpenAI LLC), and I select Yes.
Setup then returns:
Windows setup didn't finish • helper_failed
Troubleshooting already performed
Ran ChatGPT as Administrator — same result
Windows UAC prompt appears and is approved
Windows App Repair — same result
Completely uninstalled and reinstalled ChatGPT — same result
Verified package:
Get-AppxPackage OpenAI.Codex | Select Name,Version,Status
Result:
OpenAI.Codex 26.908.4834.0 Ok
Verified package installation location:
C:\Program Files\WindowsApps\OpenAI.Codex_26.908.4834.0_x64__2p2nqsd0c76g0
Verified sandbox setup helper exists at:
app\resources\codex-windows-sandbox-setup.exe
Test-Path returns True.
Attempted to execute the helper directly from PowerShell:
Program 'codex-windows-sandbox-setup.exe' failed to run: Access is denied
CategoryInfo : ResourceUnavailable
FullyQualifiedErrorId : NativeCommandFailed
This appears to reproduce #40550 on 26.908.4834.0, indicating the problem persists in a newer Windows app build.
screenfile.html
zfan-fzq commentedon Sep 13, 2026
I can reproduce this issue on a newer Codex Desktop build, and I was able to narrow the underlying
Access is deniedfailure down further.Environment:
The structured sandbox setup error is:
helper_sandbox_lock_failed:
lock sandbox bin dir C:\Users<USER>.codex.sandbox-bin failed:
SetNamedSecurityInfoW sandbox dir failed: 5
The helper exits with status 1.
Win32 error 5 is ERROR_ACCESS_DENIED.
The persistent diagnostics are written to:
C:\Users<USER>.codex.sandbox\setup_error.json
C:\Users<USER>.codex.sandbox\sandbox..log
At the time of failure,
.sandbox-binhas the following relevant security state:The observed setup lifecycle appears to be:
.sandbox-binwith BUILTIN\Administrators as owner..sandbox-binDACL usingSetNamedSecurityInfoW.SetNamedSecurityInfoWreturns ERROR_ACCESS_DENIED (5).helper_failed.Windows Sandbox itself has been independently verified to launch successfully. Hyper-V is active, HypervisorPresent=True, and HvHost/vmcompute/hns are running.
I also found no relevant Defender, AppLocker, Code Integrity, SmartScreen, or AppModel execution denial.
The Codex Desktop/app-server itself is otherwise healthy: authentication, account/read, model/list, config/read, etc. succeed. The failure is specifically associated with the Windows sandbox setup/refresh path.
This looks like a possible ACL idempotency / ownership lifecycle issue between the elevated provisioning path and the subsequent non-elevated refresh path.
I have not manually modified
.sandbox-binownership/DACLs, sandbox users, registry settings, Windows security settings, or the helper binaries.HHuseyinHan commentedon Sep 13, 2026
Windows app setup UX issue / misleading helper_failed flow
Version: OpenAI.Codex 26.908.4834.0 x64
On startup, the app shows “Finish Windows setup” and then helper_failed. Clicking “Retry Windows setup” does not produce a UAC prompt.
However, choosing “Continue with limited access” opens the app successfully. After entering the app, I can go to Settings → General → Permissions → Full access and enable Full access manually.
The helper executable exists, runs successfully when launched manually, has a valid OpenAI signature, and Windows UAC works normally for other elevation requests.
This makes the startup screen misleading: it suggests that Windows setup failed and only limited access is available, while Full access can still be enabled from Settings.
Suggested improvement: if Full access is still available, the setup screen should explain this clearly or provide a direct option to continue and enable it later from Settings.
eshventures commentedon Sep 13, 2026
Additional reproduction on Windows 11 with a slightly different failure mode, still on the newer ChatGPT/Codex Windows build.
Environment
OpenAI.Codexversion:26.908.4834.0OkBehavior
Windows setup didn't finish • helper_failed.Troubleshooting already performed
.codex\.sandbox\deny_read_acl_state.jsonand.codex\.sandbox\setup_error.jsonwhen present; backed upconfig.toml; rebooted — no change.Get-AppxPackage OpenAI.Codex | Select Name,Version,StatusResult:
OpenAI.Codex 26.908.4834.0 Okapp\resources\codex-windows-sandbox-setup.exeexists in the package.Valid Signature verified.This confirms the signed helper is present but Windows refuses to execute it even from an elevated shell. The notable difference from some other reports is that the app never succeeds in triggering the UAC prompt in the first place. The issue therefore still reproduces on
26.908.4834.0and appears to fail before or during helper launch.zfan-fzq commentedon Sep 14, 2026
Additional confirmation / workaround:
I can confirm on Codex Desktop 26.908.4834.0 that, despite the first-run:
and the underlying:
the app can still be used with Full Access.
Workaround:
This succeeds on my machine, and Full access is now shown as enabled.
Therefore, at least in this case, the first-run
helper_faileddoes not actually prevent Full Access from being enabled later through Settings.This also suggests there may be two related issues:
SetNamedSecurityInfoW/ ERROR_ACCESS_DENIED), andfox8329td commentedon Sep 15, 2026
I reproduced this on the newer ChatGPT/Codex Windows app, version
26.908.4834.0, and was able to get Windows setup to complete. This may help narrow the bug.Reproduction / diagnostics
The UI repeatedly showed
helper_failedafter approving UAC.The packaged helper existed and had a valid OpenAI signature. A cached/local helper also existed at:
%LOCALAPPDATA%\OpenAI\Codex\bin\bffc5354119c8421\codex-windows-sandbox-setup.exeThe packaged helper and cached helper were byte-identical (same SHA-256):
F10E0A6D40C3BCE4E65FD0A5C2550965B6E709C330711D7BE5C918AA41579546The WindowsApps copy returned
Access deniedwhen invoked from elevated PowerShell, while the cached copy could execute.More importantly, the sandbox log exposed the actual repeated setup failure:
The app was in fact spawning the cached helper successfully; it then failed while trying to set security information on
.codex\.sandbox-bin.icaclson that directory showed roughly:Get-Aclshowed the owner asBUILTIN\Administrators, with a protected ACL. There were no explicit Deny ACEs. An initialicacls ... /setownerattempt itself returnedAccess denied.Workaround that succeeded
From an elevated PowerShell:
After confirming the user now had
(OI)(CI)(F)on.sandbox-bin, I launched ChatGPT normally and retried Finish Windows setup once. The setup completed successfully and the Codex UI opened normally.Before this, disabling third-party firewall/real-time AV, Windows app Repair, and Windows app Reset had made no difference.
So at least in this case the decisive failure was not a corrupt helper binary: it was
SetNamedSecurityInfoWreturning Win32 error 5 on.codex\.sandbox-bin. Granting the interactive user Full Control on that one directory allowed setup to complete.This workaround changes ACLs and should obviously not be treated as a general recommendation without review, but the log/error and successful retry may point to where the installer/setup ACL logic needs hardening.
fox8329td commentedon Sep 15, 2026
Follow-up: the Full Control workaround is not persistent, and this gives a more precise reproduction of the bug.
After granting the interactive user
(OI)(CI)(F)on%USERPROFILE%\.codex\.sandbox-bin, the next local Codex operation succeeds. However, Codex/sandbox setup then rewrites the ACL back to(OI)(CI)(M)for that user. The following operation fails again with:We reproduced the cycle explicitly:
So the important behavior is:
F -> one operation succeeds -> sandbox ACL logic rewrites F to M -> next refresh cannot call SetNamedSecurityInfoW -> ERROR_ACCESS_DENIED.
This appears closely related to #45152/#45153/#45217 and older #24416/#36475 reports. In particular #45152 independently reports that granting Full Control is reverted to Modify.
This means manually re-granting Full Control is only a temporary diagnostic workaround, not a durable fix. The likely fix needs to be in the Windows sandbox ACL refresh/locking logic itself (or the rights retained on
.sandbox-binafter refresh).42t8td4kdy-hash commentedon Sep 17, 2026
Additional successful recovery: resetting
.sandbox-binACLI reproduced the same Windows setup failure described in this issue and
wanted to add another recovery result that may help diagnose the ACL
lifecycle problem.
Failure
ChatGPT/Codex reached Finish Windows setup. After approving the
OpenAI LLC UAC prompt, setup failed with:
The persistent setup error was:
The sandbox log confirmed that provisioning and WFP/firewall setup
completed before the failure occurred while attempting to lock
.codex\.sandbox-bin.ACL state observed
Get-Aclshowed:Permissions included approximately:
There were no obvious explicit Deny entries.
Troubleshooting performed
Before finding the successful recovery, I had already:
.codexand local OpenAI dataThe clean reinstall still reproduced the same
helper_sandbox_lock_failed/ Win32 error 5.Recovery that worked
From an elevated Administrator PowerShell:
Output indicated that the directory was processed successfully with no
failed files.
I then returned to ChatGPT and retried Finish Windows setup.
This time Windows setup completed and the ChatGPT desktop application
successfully opened Work mode.
Observation
This seems consistent with the other reports here indicating that the
failure is related to the ACL/security descriptor state of
.codex\.sandbox-bin.However, in this case I did not need to manually grant Full Control or
leave ACL inheritance enabled. Resetting the ACL with
icacls /resetwas sufficient to allow the next Windows setup attempt to complete.
This may be useful as an additional diagnostic case for determining
whether the setup/refresh process can leave
.sandbox-binwith aprotected ACL/security descriptor that a subsequent
SetNamedSecurityInfoWoperation cannot rewrite.I have only confirmed that setup completed and Work mode opened
successfully after this recovery. I have not yet established whether
the fix remains persistent across repeated sandbox operations or future
app restarts.
GoneRetaker commentedon Sep 20, 2026
Update from the original reporter (2026-09-20): I now have a successful recovery, but it was not a clean uninstall/reinstall and the ACL reset by itself did not fix my machine.
Before reinstalling, I retried Windows setup after running:
The command processed the directory successfully with 0 failures, but the app still showed:
I then inspected the sandbox output from that failed attempt. There was no
helper_sandbox_lock_failedorSetNamedSecurityInfoW ... failed: 5in the current log. Instead, each attempt ended with successful provisioning, including:A fresh
%USERPROFILE%\.codex\.sandbox\setup_marker.jsonwas also written at the same time:{ "version": 5, "offline_username": "CodexSandboxOffline", "online_username": "CodexSandboxOnline", "proxy_ports": [], "allow_local_binding": false, "read_roots": [], "write_roots": [] }The normal, non-elevated Windows account could read that marker successfully. There was no
.codex\.sandbox\setup_error.jsonpresent.So on this machine the UI was reporting
helper_failedeven though the provisioning helper logged successful completion and produced a readable setup marker.Recovery
I then downloaded the current ChatGPT Windows installer and installed it over the existing installation.
Important details:
%USERPROFILE%\.codex..sandbox-bin.icacls /resetattempt had already been proven insufficient by itself because setup still failed immediately afterward.After the over-the-top reinstall, Work opened normally without the
helper_failedsetup screen. "On your computer — Read and edit local files with permission" was available and selected.I then ran a real read-only local-computer task from Work asking for the computer name and Windows version. It executed successfully and returned the local machine information with no
helper_failed, Access Denied, or sandbox error.Current status: local Work/Codex execution is functioning after installing the current package over the existing installation while preserving the existing
.codexstate.This looks different from the persistent
.sandbox-binACL-error cases because the helper/provisioning log on my final failing attempts explicitly reported completion. It may indicate a separate post-provisioning/app-state or package-update problem where Desktop continued to reporthelper_faileddespite a valid completed setup marker.7708mt-dev commentedon Sep 22, 2026
I can reproduce a closely related failure in the Codex Windows app.
Additional symptom / repro detail:
This makes the app effectively unusable for project conversations after the sandbox setup fails. A screenshot of the recurring setup banner is available if maintainers need it.
7708mt-dev commentedon Sep 22, 2026
I also submitted in-app feedback with diagnostic logs for the recurring Windows sandbox setup failure described above.
This is the same issue where Windows setup returns after every Codex restart and then blocks existing project conversations.
Feedback ID: no-active-thread-01a0cb3a-9bfe-7f22-9784-0f540e32f4f6
SnoutScout commentedon Sep 23, 2026
Additional reproduction — setup banner persists even though Full Access works
I am seeing the persistent:
Windows setup didn't finish
Setup stopped
banner in the Codex Windows desktop app.
Clicking Retry setup does not resolve it, including when running the app as Administrator.
However, Codex itself appears to be fully functional:
whoami executes successfully as my normal Windows user
Get-Location successfully returns C:\Users\Blake
Codex successfully created a test file in C:\Users\Blake
It successfully read the file
It successfully deleted the file and verified deletion
The UI shows Full access
The sandbox log repeatedly reports:
hide users: failed to hide current user profile dir (C:\Users\Default): SetFileAttributesW failed for C:\Users\Default: 5 (Access is denied.)
At the same time, codex-windows-sandbox-setup.exe reports:
setup refresh: processed ... errors=[]
followed by:
setup binary completed
So in my case the Windows sandbox appears operational, but the app continues to report that Windows setup did not finish.
It looks like the setup-completion/status check may be treating the C:\Users\Default attribute failure as fatal even though the actual sandbox setup and Full Access functionality succeed.
7708mt-dev commentedon Sep 23, 2026
Additional diagnostic update:
I checked the sandbox log on Codex Desktop version 26.917.51856.
The sandbox refresh process appears to complete successfully:
sandbox helper is spawned successfully:
codex-windows-sandbox-setup.exe
setup binary completes:
"setup binary completed"
refresh reports:
"errors=[]"
read ACL step completes:
"read ACL run completed"
However, Codex still cannot start the Agent sandbox and blocks all messages with:
"Unable to send message"
"Update Agent sandbox to continue"
Additional state:
This suggests the sandbox provisioning process may succeed, but Codex Desktop does not correctly recognize or persist the completed sandbox state.
Feedback ID:
no-active-thread-01a0cb3a-9bfe-7f22-9784-0f540e32f4f6
Pata1997 commentedon Sep 23, 2026
Tuve un problema similar y documenté mi caso en #47550.
En mi equipo, habilitar temporalmente la herencia de ACL en .sandbox-bin no fue suficiente. La solución que finalmente funcionó fue cambiar en %USERPROFILE%.codex\config.toml:
[windows]
sandbox = "elevated"
por:
[windows]
sandbox = "unelevated"
Después de reiniciar completamente Codex, volvió a funcionar con normalidad.
Dejé todos los detalles y logs en #47550.
SnoutScout commentedon Sep 23, 2026
SnoutScout commentedon Sep 23, 2026