Changed to Private Network… it worked.
I first made a copy of the .codex folder.
Did a fresh install.
Copied back the backup codex contents.
Still it prompted and got struck.
Then did the rename of config.toml as mentioned here.
Restarted chatgpt desktop app and things worked fine.
Old projects and chat history is all available.
I ran into what appears to be a related Windows Codex desktop failure after the latest update. Renaming config.toml allowed the app to start again, but there are two important recovery details that may help others avoid losing organization data.
In my case, %USERPROFILE%\.codex\config.toml had been physically overwritten with null bytes; it was not merely malformed TOML. Before changing anything, fully exit Codex and back up the entire %USERPROFILE%\.codex directory.
The recovery that worked was:
- Fully close the Codex desktop app and VS Code.
- Back up
%USERPROFILE%\.codex. - In PowerShell, run:
Rename-Item "$HOME\.codex\config.toml" "config.toml.corrupt-backup" - Reopen Codex and let it generate a clean configuration.
- Do not delete the
sessionsorarchived_sessionsdirectories.
My conversations were still present afterward. However, the local project registry had also been reset, so existing tasks temporarily appeared under General Chat. The relevant global-state file contained an empty local-project list, and its automatic backup already contained the same empty state. The tasks were not gone; their working-directory metadata remained intact. Re-adding the local folders in Codex restored their project grouping.
If the app opens after renaming config.toml but projects appear missing, preserve .codex-global-state.json before doing anything else. Restore a known-good copy if available; otherwise re-add the folders through the app rather than deleting or recreating conversation files.
This happened on the Windows Codex desktop app, version 26.730.8199.0.
It would help if the app used atomic writes for configuration and global state, preserved the last known-good backup after a parse failure, and offered startup recovery when the configuration contains null bytes.
This worked for me. Many thanks!
Resolved the issue - renaming the config didn’t help at all. The decisive cause is a name collision when Windows user is XXX and the computer/domain name is XXX. Codex resolves the bare name case-insensitively to the computer SID instead of user SID, then protects setup_marker.json for the wrong identity; the app cannot read its own marker and declares setup incomplete.
thanks it worked and solved the problem
For those who still seems to have an issue with giving elevated admin access or trying to proceed or with helper_failed, goto %USERPROFILE%\.codex erase everything in \.sandbox and delete config.toml or any backups. CLOSE DOWN ALL INSTANCES OF CHAT.
Open CMD in Admin mode and enter
takeown /f "C:\Users\"USERNAME"\.codex\.sandbox-bin" /r /d y and hit enter.
Then enter icacls "C:\Users\"USERNAME"\.codex\.sandbox-bin" /grant administrators:F /t and hit enter.
Go ahead and open GPT and it should ask for Elevated Access, grant it and it should be able to let you through. Also, fore those who may not know, remove the " " when entering your username in the command prompt.
pps, wouldn’t hurt to check your firewall settings to allow outbound/inbound connections
I changed it, but it’s not working—help me.
Hi donguyenhuy84, thanks for the update.
Please try @pmi’s app repair steps. You can also refer to the suggestions from @karaachs and @salable-weekend if they apply to your setup.
If you’re still stuck, please open PowerShell on your Windows computer and run this command to find the app’s log files:
Get-ChildItem "$env:LOCALAPPDATA\Codex\Logs","$env:LOCALAPPDATA\Packages\OpenAI.Codex*\LocalCache" -Recurse -File -Filter 'codex-desktop-*.log' -ErrorAction SilentlyContinue | Sort-Object LastWriteTime -Descending | Select-Object -First 30 FullName,LastWriteTime,Length
Then email support@openai.com and attach the log files listed by the command so the team can take a closer look.
-Bhaviyn