Codex Desktop exits after 26.609/26.611 updates due to cua_node runtime staging/finalization issue
What version of the Codex App are you using (From “About Codex” dialog)?
26.609.3341.0(OpenAI.Codex_26.609.3341.0_x64__2p2nqsd0c76g0)
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Windows11
What issue are you seeing?
Codex Desktop for Windows exits a few seconds after launch on version 26.609.3341.0. The UI never remains open. This started after the update from 26.608.1337.0 to 26.609.3341.0.
Codex CLI still works on the same machine, so this appears to be specific to the Windows Desktop app startup path rather than account authentication or service availability.
Environment:
OS: Windows 11 / Windows NT 10.0.26200
Codex Desktop package: OpenAI.Codex_26.609.3341.0_x64__2p2nqsd0c76g0
Codex app executable:
C:\Program Files\WindowsApps\OpenAI.Codex_26.609.3341.0_x64__2p2nqsd0c76g0\app\Codex.exe
Embedded Chromium version observed in Crashpad metadata:
149.0.7827.54
WebView2 runtime installed:
C:\Program Files (x86)\Microsoft\EdgeWebView\Application\149.0.4022.62
GPU from dump metadata:
Intel GPU, vendor 0x8086, device 0xa7a1, driver 31.0.101.3688
Actual behavior:
The app exits within a few seconds. Windows AppModel logs show the AppX container being created and then destroyed shortly after.
Example AppModel Runtime events:
Process created:
OpenAI.Codex_2p2nqsd0c76g0!App
A few seconds later:
Desktop AppX container destroyed
Codex text logs only contain startup lines, for example:
Launching app agentRunId=null allowDebugMenu=false allowDevtools=false allowInspectElement=false buildFlavor=prod enableSparkle=false enableUpdater=true nodeEnv=undefined packaged=true platform=win32
Appshot hotkey inactive configured=true enabled=true platform=win32
No JavaScript exception or obvious application error is written to the text log.
Crashpad dumps are usually created on normal failed launches. Recent examples:
2026-06-12 13:40:27 36207856 352d6c55-58d9-4217-b205-5332c82d4cd9.dmp
2026-06-12 13:44:53 36178128 2a9c0498-d356-47e2-8fdf-515c78deaffe.dmp
2026-06-12 13:49:45 36173632 9c798ad0-e13f-4856-a1b0-306983c4f06e.dmp
Readable strings in the dump include:
in __char_to_wide: Illegal byte sequence
Illegal byte sequence
\\?\C:\Users\<USER_NON_ASCII>\AppData\Local\OpenAI\Codex\runtimes\cua_node\.staging-...
\\?\C:\Program Files\WindowsApps\OpenAI.Codex_26.609.3341.0_x64__2p2nqsd0c76g0\app\resources\cua_node
...\node_modules\better-sqlite3\build\Release\better_sqlite3.node
...\resources\native\windows-updater.node
The non-ASCII user path appears mojibake-encoded in the dump immediately near Illegal byte sequence / __char_to_wide.
What steps can reproduce the bug?
What steps can reproduce the bug?
Install or update to Codex Desktop 26.609.3341.0 on Windows.
Launch Codex Desktop via either:
codex app
or directly:
C:\Program Files\WindowsApps\OpenAI.Codex_26.609.3341.0_x64__2p2nqsd0c76g0\app\Codex.exe
Observe that the UI appears briefly or does not stay open.
The process exits within a few seconds.
A Crashpad dump is usually written under the Codex Crashpad reports directory.
This is a desktop startup crash, so I do not have a session id, token limit usage, or context window usage for the failing Desktop launch.
What is the expected behavior?
What is the expected behavior?
Codex Desktop should launch and stay open.
Additional information
Regression window:
Windows AppX deployment logs show these Codex package updates:
2026-06-05:26.601.2237.0->26.602.3474.02026-06-06:26.602.3474.0->26.602.4764.02026-06-12 12:19:26.608.1337.0->26.609.3341.0
The desktop app worked before the recent update and started exiting immediately after the 26.609.3341.0 update.
Additional observations:
- Launching with
--disable-gpustill crashes. - Launching with a fresh
--user-data-dirstill crashes. - Launching with an ASCII-only temporary user data dir, e.g.
C:\CodexTempProfile, still crashes. - Temporarily overriding
LOCALAPPDATA,APPDATA, andUSERPROFILEto ASCII-only paths prevented a Crashpad dump from being written in one test, but the AppX process still exited. This may indicate AppX activation/environment handling is also involved. - I also tried launching under a separate local Windows account with an ASCII username. The app appeared to exit there as well, although I could not fully inspect that account’s Codex logs from the original account due to Windows permissions.
Suspected cause:
This may be a Windows regression in the cua_node runtime staging / path conversion path active in 26.609.3341.0. The dump strongly suggests a narrow/wide string conversion failure:
in __char_to_wide: Illegal byte sequence
The failure appears while handling paths under:
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\.staging-...
Requested mitigation:
Could you provide either:
- a patched Codex Desktop build that fixes the Windows
cua_noderuntime staging/path conversion crash, or - a download link for the previous working signed Windows package,
OpenAI.Codex_26.608.1337.0_x64__2p2nqsd0c76g0, so affected users can temporarily roll back?
The local machine no longer has a usable .msix / .appx installer for 26.608.1337.0. Windows deployment logs show that package was removed and moved under C:\Program Files\WindowsApps\Deleted\..., but it is not available as a clean reinstall source.
Files available for maintainers:
The affected machine has:
- Codex desktop logs:
%LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs\2026\06\12\codex-desktop-*.log
- Crashpad dumps:
%LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Roaming\Codex\web\Codex\Crashpad\reports\*.dmp
I can provide the relevant .dmp and .log files privately if needed.
Additional information
_No response_
6 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
[Fixed] Codex Windows GUI crashes immediately after launch (June 2026 Update)
Symptom
After the recent automatic update (around version 26.609.xxxx), the Codex Windows GUI application started crashing immediately (within 5-10 seconds) after launch.
While the CLI version (codex.cmd) works perfectly, the GUI completely fails to open.
Under the hood, a crash loop was occurring, continuously creating empty .staging-* directories under AppData\Local\OpenAI\Codex\runtimes\cua_node.
Root Cause
This is due to a mismatch in the expected runtime directory structure introduced in the latest update.
The updated Codex GUI looks for the node runtime inside a new hashed subfolder, but the actual update deployment leaves the runtime files in the old flat directory layout.
Where GUI expects the runtime: ...\cua_node\789504f803e82e2b\manifest.json
Actual layout after update: ...\cua_node\manifest.json
As a result, Codex attempts to unpack the environment into a staging folder on every launch, fails to complete it, and encounters an unhandled C++ exception (0xE06D7363) which kills the process.
Workaround / Solution
You can easily fix this by pre-creating the directory structure that the GUI expects and copying the existing runtime files into it.
Option 1: Fix via PowerShell (Recommended)
Open Task Manager and kill any remaining Codex or node processes.
Open a standard PowerShell window, paste the following script, and hit Enter:
1. Define paths
$base = "$env:LOCALAPPDATA\OpenAI\Codex\runtimes\cua_node"
$hash = "789504f803e82e2b" # The specific hash directory expected by the update
$target = Join-Path $base $hash
2. Create directory and copy layout
1. Define paths
$base = "$env:LOCALAPPDATA\OpenAI\Codex\runtimes\cua_node"
$hash = "789504f803e82e2b" # The specific hash directory expected by the update
$target = Join-Path $base $hash
2. Create directory and copy layout
Launch the Codex GUI as usual. It should now successfully finish the handshake and stay open!
Option 2: Fix Manually via File Explorer
If you prefer not to use PowerShell, you can manually arrange the folders using File Explorer to look like this:
AppData\Local\OpenAI\Codex\runtimes\cua_node\
├── bin/ (Original)
├── manifest.json (Original)
└── 789504f803e82e2b/ <-- [Create this new folder]
├── bin/ <-- [Copy the original 'bin' folder here]
└── manifest.json <-- [Copy the original 'manifest.json' here]
Once the files are in place, the application server connection will succeed instantly (next=connected) without triggering the broken staging loop.
Thanks for the mention, @syj07332.
Indeed, my Windows account uses a non-ASCII username (C:\Users\日本語の名前), and I noticed character encoding issues in the Codex CLI logs as well.
Now that I've bypassed the initial startup crash using the runtime folder workaround, I'll keep an eye out to see if this Browser Annotation crash (#28156) triggers on my end. This definitely seems like a crucial piece of the puzzle for non-ASCII users!
Update: this issue reproduced again after updating to Codex Desktop
26.611.8604.0.After the update, Codex Desktop started exiting shortly after launch again.
The previous workaround directory still existed:
However, the new version appeared to expect a different runtime hash. Codex was creating new empty staging directories such as:
but there was no finalized runtime directory named:
I copied the bundled
cua_noderuntime from the currently installed package:to:
Specifically, I copied:
into the new
a89897d3d9baa117folder.After doing that, Codex Desktop launched successfully again.
The copied
manifest.jsoncontains:The bundled Node runtime also matched the expected version:
This suggests the issue is not limited to the previous
789504f803e82e2bruntime hash. It appears to recur when a new Codex Desktop update expects a newcua_noderuntime hash, but the app fails to finalize the corresponding runtime directory under%LOCALAPPDATA%.In short, the startup crash returned on
26.611.8604.0, and manually creating the new expected runtime hash foldera89897d3d9baa117and copying the current package’sresources\cua_node\manifest.jsonandresources\cua_node\binfixed the crash again.Additional note: I was able to use Codex CLI to apply the workaround.
I asked Codex CLI to detect the latest
.staging-<hash>-...folder under:Then it created the matching final runtime folder:
and copied the required runtime files from the currently installed Codex package:
Specifically, it copied:
After verifying:
against the
node_versioninmanifest.json, Codex Desktop launched successfully.Important: I explicitly told Codex CLI not to delete existing runtime folders or
.staging-*directories.This suggests the workaround is not tied to a specific hash such as
789504f803e82e2bora89897d3d9baa117. The practical fix is to detect the latest failed staging hash and manually create the corresponding finalized runtime directory using the bundledresources\cua_nodefrom the currently installed package.This issue appears related to a
cua_nodestaging/finalization failure I reproduced on a later Codex Desktop build (26.727.6591.0). The app stayed open in my case, but Computer Use returned:The important finding was that runtime contents and runtime directory identity must be validated together. Current runtime files had first been copied under the stale directory ID
03b1cdac8af3a530, while the installed bundle computed the expected IDfb8898c05a62885efrommanifest.json,bin/node.exe, andbin/node_repl.exe. Correct files under the wrong content-addressed path were still unusable.The Microsoft Store
WindowsAppssource also required a decryption-aware relocation. The repair that worked was:xcopy /Gwhen no matching decrypted local donor exists;%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\<expected-id>;The end-to-end Notepad test then succeeded. A diagnostic-first Skill and non-destructive script are available here:
https://github.com/wwwu379-dot/codex-windows-computer-use-repair
The script preserves existing runtime directories, stops rather than overwriting a conflicting target, and does not change WindowsApps permissions or patch the application.