Windows setup fails before the UAC prompt, and both setup options are non-functional
What version of the Codex App are you using (From “About Codex” dialog)?
the lastest one
What subscription do you have?
I have a ChatGPT Plus subscription.
What platform is your computer?
Microsoft Windows NT 10.0.26100.0 x64
What issue are you seeing?
Description
After launching the new ChatGPT/Codex Windows desktop app, the application asks me to complete Windows setup.
After clicking "Finish setup", no real Windows User Account Control dialog appears. The application then displays a "Windows installation incomplete" page.
The failure page provides two options:
- Retry Windows setup
- Continue with limited access
Neither option works:
- "Retry Windows setup" repeats the same failure without triggering a real UAC prompt.
- "Continue with limited access" has no observable effect and does not open the usable application interface.
As a result, the application is blocked on this setup page and cannot be used.
What steps can reproduce the bug?
Steps to reproduce
- Install and launch the latest ChatGPT/Codex Windows desktop app.
- Wait for the "Finish setting up Windows" page to appear.
- Click "Finish setup".
- Observe that no real UAC prompt appears.
- The app displays "Windows installation incomplete".
- Click "Retry Windows setup".
- Observe that the same failure occurs again without a UAC prompt.
- Click "Continue with limited access".
- Observe that nothing happens and the application remains on the same page.
What is the expected behavior?
Clicking "Finish setup" should launch the required Windows setup helper, trigger a real UAC elevation prompt, and complete the Windows integration setup.
If Windows setup cannot be completed, clicking "Continue with limited access" should bypass the integration setup and open the application with reduced functionality.
<img width="818" height="571" alt="Image" src="https://github.com/user-attachments/assets/8d42ca0e-b59a-4ba4-8c9f-ee1d4f5947f1" />
Additional information
_No response_
23 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Tried reinstall, OS restart and "Run as administrator", nothing helps.
The last update made the app completely broken.
The issue was resolved by using CC Switch to first switch to a third-party API, and then switch back to the official subscription.
请问你是怎么解决的这个问题呀 我也遇到了一模一样的问题
Turned out these messages in UI were misleading and the root cause was incorrect value in
<user>/.codex/.config.toml.I backed up the whole .codex directory and deleted it. Then the app started working and I asked an agent to try to find the faulty values and it did.
Deleting everything in C:/Users/username/.codex and reinstalling the app fixed it. I had nothing to lose, because it was the first time I tried installing. Do NOT do this unless you're sure you have nothing in there you're deleting that you need. I don't know what's specifically stored in there.
I ran into the same issue. Codex had been working fine until I added the following entry to ~/.codex/config.toml:
``` toml
[projects.'C:\Users\jhc20\Documents\codex_projects\web']
trust_level = "trustesd"
I am seeing the same Windows setup loop on a Windows 11 ARM64 Oracle Cloud VM over RDP.
Environment:
Update: moving
%USERPROFILE%\.codexaside fixed the problem on this machine.Command used:
After renaming the
.codexdirectory, the ChatGPT Windows app entered normally. This confirms that, at least in this case, the "Complete Windows setup" / "Windows setup incomplete" screen was caused by something in the existing.codexstate/config rather than Microsoft Store installation, UAC, or the official app package itself.It would be helpful if the app surfaced the actual
.codexconfig/state error instead of showing the Windows setup flow.okay following the advice here let me login properly but has anyone figured out how to retrieve the old chats back? i have backed up the old .codex folder
I backed up
~/.codex/config.toml, then restarted the app so it could generate a new config file. The app is working normally again now.Confirmed workaround on the Microsoft Store Windows app (version
26.707.3748.0). The app was stuck on Finish Windows setup: the screen showed a UAC illustration, but no real UAC prompt appeared, and retrying failed.Renaming only the existing config file and restarting the app fixed it immediately:
This is safer than deleting the entire
.codexdirectory because it preserves sessions and other local state. After restart, the app generated a clean config and completed startup normally.This further suggests that the Windows/UAC setup page can be triggered by an invalid, stale, or unparsable
config.toml, rather than an actual Windows permission failure. It would help if the app surfaced the configuration parsing error directly.Same problem with windows beta app, so both of them are broken.
The issue lies in config.toml. Switching the CC Switch to a third-party API and then back can fix it. I think the switching process forces a refresh that overwrites the content of config.toml, inadvertently fixing the problem. This method can preserve your settings and sessions.
kindly pin my comment if it solved the issue.
Fixed with Claude :D
In my case there was a duplicated line in Codex config (config.toml).
Take care, Codex can modify it and break itself.
Probably OpenAI should provide correct error's type.
Same issue here.
Windows ChatGPT/Codex app version: 26.707.9564.0
Platform: Windows x64
After today’s update I am stuck on the “Finish Windows setup” screen.
No real Windows UAC prompt appears.
“Retry Windows setup” fails/does nothing useful.
“Continue with limited access” also does nothing.
Running the app as administrator does not fix it.
The app is completely unusable because it cannot get past this setup screen.
Confirmed workaround on the Microsoft Store Windows app (version 26.707.3748.0). The app was stuck on Finish Windows setup: the screen showed a UAC illustration, but no real UAC prompt appeared, and retrying failed.
Renaming only the existing config file and restarting the app fixed it immediately:
$cfg = Join-Path $env:USERPROFILE '.codex\config.toml'
if (Test-Path $cfg) {
$backupName = 'config.toml.bak-' + (Get-Date -Format 'yyyyMMdd-HHmmss')
Rename-Item -Path $cfg -NewName $backupName
}
This is safer than deleting the entire .codex directory because it preserves sessions and other local state. After restart, the app generated a clean config and completed startup normally.
This further suggests that the Windows/UAC setup page can be triggered by an invalid, stale, or unparsable config.toml, rather than an actual Windows permission failure. It would help if the app surfaced the configuration parsing error directly.
I found a working workaround for this issue.
Environment:
Workaround:
After switching Codex back to “OpenAI Official”, the real Windows setup process worked and I was able to enter the app normally.
Before this, my Codex configuration had previously been connected to a custom provider. CC Switch appears to have rewritten or normalized the Codex provider configuration.
This is only a workaround. I have not yet confirmed exactly which config field causes the setup page to fail.
<img width="1090" height="760" alt="Image" src="https://github.com/user-attachments/assets/1427bd96-19c1-405e-96da-efaa759c7c67" />
<img width="902" height="632" alt="Image" src="https://github.com/user-attachments/assets/afd54250-50d9-4c4d-9b71-e6cefe2635dc" />
<img width="1090" height="760" alt="Image" src="https://github.com/user-attachments/assets/d2342612-06f1-43c5-a0cd-537913b43949" />
Confirmed workaround on Windows 11 with the Microsoft Store ChatGPT/Codex app.
Environment:
9PLM9XGG6VKSOpenAI.Codex_26.707.9981.0_x64__2p2nqsd0c76g0Symptoms:
Ok.What fixed it:
%USERPROFILE%\.codex\config.tomlso the app starts without that config.PowerShell example:
After this, the app opened normally immediately.
In this case,
config.tomlhad previously been modified to add a custommodel_instructions_fileentry. I did not isolate whether that exact line was the only trigger, so the safer conclusion is that an existing or incompatible~/.codex/config.tomlcan incorrectly send the Windows app into the misleading setup/UAC loop.Important: renaming only
config.tomlis safer than deleting the whole.codexdirectory, because it preserves local history, sessions, and other state. The app should ideally surface the actual config parse/compatibility error instead of showing the Windows setup screen.works
I've discovered another critical root cause for the "Finish Windows setup" hang (where the UAC prompt never triggers) that is related to authentication rather than Windows privileges or system features.
The Underlying Issue
If your user session has expired or the OAuth refresh token has been revoked, the desktop app fails to fetch the cloud configuration bundle (
cloudConfigBundle) during startup:This causes the backend
windowsSandbox/setupStartcall to fail with a401 Unauthorized/Autherror. Instead of displaying a prompt to log out and log in again, the Desktop UI incorrectly routes this error to the "Finish Windows setup" gate, making it appear as a permissions/sandbox setup failure.This explains why some users find that resetting or deleting
config.tomldoesn't work for them: if the underlying cause is a revoked OAuth session inauth.json, the cloud config fetch will fail regardless of whetherconfig.tomlis clean.The Fix / Workaround
To break the loop and force the app to show the login screen:
%USERPROFILE%\.codex(usuallyC:\Users\<username>\.codex).auth.json.auth.jsontoauth.json.bak(or delete it).The app will now detect that no login session exists, skip the sandboxing gate, and successfully route you to the Sign In screen. Once you log back in, a fresh OAuth session will be established, and the app will open normally.
通过备份.codex,重启电脑后删除整个.codex,再重装chatgpt然后在ccs更换成官方订阅,验证chatgpt正常后新建ccs供应商解决这个问题
我认为出现这个问题的本质原因是config.toml以及auth.json文件出现错误 chatgpt无法检测到有效的配置误以为是未完成安装导致,所以根据上述的方法对这两个文件进行强制初始化 对于原有的.codex文件被删除可以让codex根据备份文件进行恢复