codex icon indicating copy to clipboard operation
codex copied to clipboard

Windows setup fails before the UAC prompt, and both setup options are non-functional

Open tuplanoringen opened this issue 4 months ago • 24 comments

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

  1. Install and launch the latest ChatGPT/Codex Windows desktop app.
  2. Wait for the "Finish setting up Windows" page to appear.
  3. Click "Finish setup".
  4. Observe that no real UAC prompt appears.
  5. The app displays "Windows installation incomplete".
  6. Click "Retry Windows setup".
  7. Observe that the same failure occurs again without a UAC prompt.
  8. Click "Continue with limited access".
  9. 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.

Image

Additional information

No response

tuplanoringen avatar Jul 10 '26 12:07 tuplanoringen

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #31134

Powered by Codex Action

github-actions[bot] avatar Jul 10 '26 12:07 github-actions[bot]

Tried reinstall, OS restart and "Run as administrator", nothing helps. The last update made the app completely broken.

aivarsliepa avatar Jul 10 '26 13:07 aivarsliepa

The issue was resolved by using CC Switch to first switch to a third-party API, and then switch back to the official subscription.

tuplanoringen avatar Jul 10 '26 14:07 tuplanoringen

请问你是怎么解决的这个问题呀 我也遇到了一模一样的问题

twj626828-del avatar Jul 10 '26 21:07 twj626828-del

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.

aivarsliepa avatar Jul 10 '26 21:07 aivarsliepa

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.

Tylemagne avatar Jul 10 '26 22:07 Tylemagne

I ran into the same issue. Codex had been working fine until I added the following entry to ~/.codex/config.toml:

[projects.'C:\Users\jhc20\Documents\codex_projects\web']
trust_level = "trustesd"

The problem was caused by the typo in trustesd; the correct value should be trusted. After I removed this entry, Codex started working again.

Therefore, this UAC-related setup screen may be triggered by an invalid entry in ~/.codex/config.toml, rather than by an actual UAC or Windows permission problem. The app should ideally display the configuration parsing error instead of redirecting users to the Windows setup screen.

jhckevin avatar Jul 11 '26 08:07 jhckevin

I am seeing the same Windows setup loop on a Windows 11 ARM64 Oracle Cloud VM over RDP.

Environment:

  • Windows 11 ARM64 on Oracle Cloud
  • ChatGPT installed from Microsoft Store package 9PLM9XGG6VKS
  • Installed version shown by winget: 26.707.3748.0
  • Publisher shown by winget: OpenAI
  • Account is in the local Administrators group
  • EnableLUA is

sevencat2004 avatar Jul 11 '26 14:07 sevencat2004

Update: moving %USERPROFILE%\.codex aside fixed the problem on this machine.

Command used:

if exist "%USERPROFILE%\.codex" ren "%USERPROFILE%\.codex" ".codex.bak-20260711"

After renaming the .codex directory, 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 .codex state/config rather than Microsoft Store installation, UAC, or the official app package itself.

It would be helpful if the app surfaced the actual .codex config/state error instead of showing the Windows setup flow.

sevencat2004 avatar Jul 11 '26 14:07 sevencat2004

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

SuhasS3106 avatar Jul 11 '26 14:07 SuhasS3106

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.

a137767 avatar Jul 12 '26 10:07 a137767

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.

samir1234khans avatar Jul 12 '26 10:07 samir1234khans

Same problem with windows beta app, so both of them are broken.

UnknownAlienHuman avatar Jul 12 '26 11:07 UnknownAlienHuman

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.

tuplanoringen avatar Jul 12 '26 14:07 tuplanoringen

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.

samir1234khans avatar Jul 12 '26 15:07 samir1234khans

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.

UnknownAlienHuman avatar Jul 13 '26 11:07 UnknownAlienHuman

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.

johninglis775-stack avatar Jul 14 '26 08:07 johninglis775-stack

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.

samir1234khans avatar Jul 14 '26 08:07 samir1234khans

I found a working workaround for this issue.

Environment:

  • Windows 10 Home 22H2, build 19045
  • ChatGPT/Codex desktop app 26.707.6957.0
  • The app was stuck on “Finish Windows setup”
  • No real UAC prompt appeared
  • Retry and limited-access mode did not work
  • Reinstalling/resetting the app did not help

Workaround:

  1. Fully close the ChatGPT/Codex desktop app.
  2. Open CC Switch.
  3. Select the Codex tab.
  4. Select the built-in “OpenAI Official” provider.
  5. Click Enable / Use.
  6. Reopen the ChatGPT/Codex desktop app.
  7. Click “Finish Windows setup” again.

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.

Image Image Image

llJKll avatar Jul 14 '26 14:07 llJKll

Confirmed workaround on Windows 11 with the Microsoft Store ChatGPT/Codex app.

Environment:

  • Windows 11 x64
  • Microsoft Store product: 9PLM9XGG6VKS
  • Installed package: OpenAI.Codex_26.707.9981.0_x64__2p2nqsd0c76g0

Symptoms:

  • App was stuck on Complete Windows setup / Windows setup incomplete.
  • Retry Windows setup only looped back to the same screen.
  • Continue with limited access had no effect.
  • Uninstalling/reinstalling the app did not fix it.
  • AppX deployment logs showed successful Stage/Register operations and the package status was Ok.

What fixed it:

  1. Fully close ChatGPT/Codex.
  2. Back up the existing Codex config.
  3. Rename only %USERPROFILE%\.codex\config.toml so the app starts without that config.
  4. Reopen the desktop app.

PowerShell example:

Get-Process ChatGPT,Codex -ErrorAction SilentlyContinue | Stop-Process -Force

$cfg = "$HOME\.codex\config.toml"
$stamp = Get-Date -Format "yyyyMMdd-HHmmss"

if (Test-Path $cfg) {
    Copy-Item $cfg "$cfg.backup-$stamp"
    Rename-Item $cfg "config.toml.disabled-$stamp"
}

After this, the app opened normally immediately.

In this case, config.toml had previously been modified to add a custom model_instructions_file entry. I did not isolate whether that exact line was the only trigger, so the safer conclusion is that an existing or incompatible ~/.codex/config.toml can incorrectly send the Windows app into the misleading setup/UAC loop.

Important: renaming only config.toml is safer than deleting the whole .codex directory, 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.

lywj0821 avatar Jul 15 '26 04:07 lywj0821