Codex Desktop exits after 26.609/26.611 updates due to cua_node runtime staging/finalization issue

Resolved 💬 6 comments Opened Jun 12, 2026 by ask-my-neighbor Closed Jun 18, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

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.0
  • 2026-06-06: 26.602.3474.0 -> 26.602.4764.0
  • 2026-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-gpu still crashes.
  • Launching with a fresh --user-data-dir still crashes.
  • Launching with an ASCII-only temporary user data dir, e.g. C:\CodexTempProfile, still crashes.
  • Temporarily overriding LOCALAPPDATA, APPDATA, and USERPROFILE to 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_node runtime 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_

View original on GitHub ↗

6 Comments

github-actions[bot] contributor · 2 months ago

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

  • #27780
  • #27722
  • #27506
  • #27546
  • #27707

Powered by Codex Action

ask-my-neighbor · 2 months ago

[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

if (-not (Test-Path -LiteralPath $target)) {
    New-Item -ItemType Directory -Path $target -Force | Out-Null
    
    # Mirror manifest and bin into the new subfolder
    Copy-Item -LiteralPath (Join-Path $base "manifest.json") -Destination (Join-Path $target "manifest.json") -Force
    Copy-Item -LiteralPath (Join-Path $base "bin") -Destination (Join-Path $target "bin") -Recurse -Force
    
    Write-Host "Success: Directory created and runtime layout mirrored successfully."
} else {
    Write-Host "Target folder already exists."
}

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.

ask-my-neighbor · 2 months ago

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!

ask-my-neighbor · 2 months ago

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:

%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\789504f803e82e2b

However, the new version appeared to expect a different runtime hash. Codex was creating new empty staging directories such as:

.staging-a89897d3d9baa117-...

but there was no finalized runtime directory named:

%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\a89897d3d9baa117

I copied the bundled cua_node runtime from the currently installed package:

C:\Program Files\WindowsApps\OpenAI.Codex_26.611.8604.0_x64__2p2nqsd0c76g0\app\resources\cua_node

to:

%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\a89897d3d9baa117

Specifically, I copied:

manifest.json
bin

into the new a89897d3d9baa117 folder.

After doing that, Codex Desktop launched successfully again.

The copied manifest.json contains:

runtime_archive_version: 0.0.1/20260609232601-73ffe8b8261e

The bundled Node runtime also matched the expected version:

v24.14.0

This suggests the issue is not limited to the previous 789504f803e82e2b runtime hash. It appears to recur when a new Codex Desktop update expects a new cua_node runtime 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 folder a89897d3d9baa117 and copying the current package’s resources\cua_node\manifest.json and resources\cua_node\bin fixed the crash again.

ask-my-neighbor · 2 months ago

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:

%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node

Then it created the matching final runtime folder:

%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\<hash>

and copied the required runtime files from the currently installed Codex package:

Get-AppxPackage OpenAI.Codex
InstallLocation\app\resources\cua_node

Specifically, it copied:

manifest.json
bin

After verifying:

<target>\bin\node.exe --version

against the node_version in manifest.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 789504f803e82e2b or a89897d3d9baa117. The practical fix is to detect the latest failed staging hash and manually create the corresponding finalized runtime directory using the bundled resources\cua_node from the currently installed package.

wwwu379-dot · 24 days ago

This issue appears related to a cua_node staging/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:

Windows Computer Use Sky runtime is unavailable

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 ID fb8898c05a62885e from manifest.json, bin/node.exe, and bin/node_repl.exe. Correct files under the wrong content-addressed path were still unusable.

The Microsoft Store WindowsApps source also required a decryption-aware relocation. The repair that worked was:

  1. compute the expected runtime ID from the current bundle;
  2. copy to a new staging directory with xcopy /G when no matching decrypted local donor exists;
  3. verify the three critical SHA-256 hashes;
  4. move the validated staging directory to %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\<expected-id>;
  5. fully restart Codex and test in a new task.

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.