Windows native agent setup fails without displaying the required UAC prompt
What version of the Codex App are you using (From “About Codex” dialog)?
26.727.6591.0
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Windows 11 Pro, x64 Windows build 26200 PowerShell 7.6.4 WSL2 with Ubuntu 24.04.4 also installed
What issue are you seeing?
After changing the Agent environment from Windows Subsystem for Linux to Windows native, Codex displays a "Finish Windows setup" screen.
The screen says that ChatGPT needs one-time permission and instructs the user to click "Finish setup" and approve a UAC prompt.
However, no UAC prompt appears.
Clicking the setup button eventually produces the red error:
Windows setup didn't finish
The only usable path is "Continue with limited access."
The setup screen does not explain why elevation failed, which executable it attempted to launch, where diagnostic logs are located, or how to retry the setup manually.
What steps can reproduce the bug?
- Open the Codex Windows app.
- Open Settings > General.
- Set Agent environment to:
Windows Subsystem for Linux
- Use Codex under WSL.
- Return to Settings > General.
- Change Agent environment to:
Windows native
- Restart the application when requested.
- Observe the "Finish Windows setup" screen.
- Click the button to finish or try Windows setup.
- Observe that no UAC prompt appears.
- After waiting, observe the error:
Windows setup didn't finish
- Select "Continue with limited access" to proceed.
What is the expected behavior?
Clicking "Finish Windows setup" should display a normal Windows UAC prompt identifying the executable and its verified publisher.
After approval, Codex should confirm that the Windows-native sandbox was configured successfully.
If setup fails, Codex should display:
- the failed setup step
- the executable or command that failed
- the Windows error code
- the relevant log location
- a retry option
- a documented manual setup procedure
- an explanation of what "limited access" changes
Additional information
The setup screen showed ChatGPT as the application and OpenAI LLC as the expected verified publisher, but the actual UAC dialog never appeared.
The failure occurred immediately after switching back from WSL to Windows-native execution to recover existing Codex chats that had been created under Windows paths.
Continuing with limited access allowed the app to open, but the Windows-native sandbox remained unavailable.
3 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Hi, this issue is preventing anyone from installing ChatGPT on windows and is a critical bug to fix. We cannot proceed currently with using the latest installer.
I hit what appears to be the same issue on Windows with OpenAI.Codex 26.818.5229.0.
Symptoms:
Get-AppxPackage OpenAI.CodexreportedStatus = Ok.codex-windows-sandbox-setup.exewas present in the installed package.codex --versioninside WSL returnedcodex-cli 0.146.0.My
~/.codex/config.tomlcontained:What fixed it for me was simply removing that section fully, Then I restarted the Codex/ChatGPT Windows app. After that, the app started normally and the Windows setup loop was gone.
I did not need to change UAC settings, take ownership of
WindowsApps, or setwindows.sandbox = "unelevated".This suggests there may be a stale/conflicting desktop WSL preference in
config.tomlthat interferes with switching back to Windows-native setup. Hopefully this helps narrow down the issue.