Repository navigation
Description
Environment
- Codex Desktop / Microsoft Store package:
OpenAI.Codex 26.825.6671.0 - Platform: Windows x64
- Package install location:
C:\Program Files\WindowsApps\OpenAI.Codex_26.825.6671.0_x64__2p2nqsd0c76g0 - Standalone Codex CLI available and working:
codex-cli 0.142.5
What issue are you seeing?
Codex Desktop launches several ChatGPT.exe background processes but never shows a window.
Observed process state on every launch:
- main
ChatGPT.exe: present - crashpad handler: present
- GPU process: present
- network service: present
- storage service: present
ChatGPT.exe --type=renderer: missingcodex.exe ... app-server: missing- main process
MainWindowHandle = 0
The desktop log stops at:
Launching app
Appshot hotkey inactive
I also enumerated top-level windows for the main process and found a Chrome_WidgetWin_0 with Visible=False. A synchronous ShowWindow attempt did not restore the UI and caused the PowerShell caller to block, so this is not simply a hidden-window issue.
Runtime staging behavior
The failure is reproducible in a completely fresh local runtime directory.
After moving the old %LOCALAPPDATA%\OpenAI\Codex aside and launching the freshly reinstalled app, Codex immediately recreated:
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\.staging-415ffebf3d576e9b-<random>
but never produced the finalized runtime directory:
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\415ffebf3d576e9b
Before the clean reset, repeated launches created many different .staging-415ffebf3d576e9b-* directories. In those staging directories, bin\node.exe was present but bin\node_repl.exe was missing.
The packaged source file does exist:
C:\Program Files\WindowsApps\OpenAI.Codex_26.825.6671.0_x64__2p2nqsd0c76g0\app\resources\cua_node\bin\node_repl.exe
Workarounds already attempted
- Ended all ChatGPT/Codex processes and relaunched.
- Restarted Windows.
- Repaired/reset the app.
- Uninstalled and reinstalled the Microsoft Store package.
- Verified standalone CLI works:
codex.cmd --version
codex-cli 0.142.5
- Located the native CLI executable and set
CODEX_CLI_PATHto that actualcodex.exe(not the npm.cmdshim). This did not change the startup behavior. - Moved
%LOCALAPPDATA%\OpenAI\Codexaside so the app regenerated an entirely fresh runtime/cache. The same.staging-415ffebf3d576e9b-*failure immediately reproduced. - Following the workaround described in [Windows][26.825.5331.0] Headless startup caused by Application Protected node_repl.exe relocation failure (0x80071770) #41540, copied the missing packaged
node_repl.exeinto the active staging directory usingxcopy /G. The file copied successfully, but on26.825.6671.0the app still did not launch a renderer or app-server and no window appeared.
Reproduction steps
- Install
OpenAI.Codex 26.825.6671.0from Microsoft Store on Windows x64. - Launch Codex Desktop.
- Observe several
ChatGPT.exebackground processes but no visible window. - Verify there is no
--type=rendererprocess and nocodex.exe app-serverprocess. - Inspect
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node. - Observe a new
.staging-415ffebf3d576e9b-*directory, but no finalized415ffebf3d576e9bruntime directory. - Kill all processes and launch again; another staging directory may be created and the app remains headless.
Expected behavior
Codex Desktop should complete CUA runtime materialization, launch codex.exe app-server, create the renderer process, and show the application window.
If runtime materialization fails, the app should surface a visible actionable error rather than staying indefinitely headless with only background processes.
Additional information
This appears closely related to:
- Windows app starts without renderer or app-server and shows no window #41752 — same
26.825.6671.0symptom: main/GPU/utility processes start, but no renderer or app-server and no window - [Windows][26.825.5331.0] Headless startup caused by Application Protected node_repl.exe relocation failure (0x80071770) #41540 — Application Protected
node_repl.exerelocation failure causing headless startup on26.825.5331.0 - [Windows]PerformanceCUA runtime materializer retries 4,680 doomed encrypted copy operations, causing ~8-minute first launch after updates #41822 —
26.825.6671.0CUA runtime materialization behavior with runtime hash415ffebf3d576e9b
The notable difference from #41540 is that manually supplying node_repl.exe to the active staging directory did not unblock startup on 26.825.6671.0.
I preserved the failing installation state and can provide additional sanitized process/runtime diagnostics if maintainers specify what would be useful.
Activity
github-actions commentedon Aug 31, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
zemeng5208 commentedon Aug 31, 2026
I maintain WinBridge Recovery for Windows Codex Desktop local-state recovery: https://github.com/zemeng5208/winbridge-recovery
This one is a fairly direct match for the CUA runtime relocation/materialization layer that WinBridge checks. The repeated
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\.staging-415ffebf3d576e9b-*directories, no finalized415ffebf3d576e9bruntime, and earlier staging copies wherenode.exeexisted butnode_repl.exedid not are all useful local-state signals.For this case, WinBridge can help distinguish whether 26.825.6671.0 has left a genuinely partial CUA runtime versus a runtime that is complete enough on disk but never gets finalized/selected. It checks the expected runtime identity/version, the staging and final directories, required helper files (including
node.exe/node_repl.exeand related CUA helpers), stale staging remnants, and whether the active paths still resolve to the current packaged/runtime state. Where the source is Application Protected/EFS, it can also identify that separately from an ordinary lock/path/ACL failure instead of treating all failed materialization as the same error.The result in step 8 is important, though: because supplying the missing
node_repl.exewithxcopy /Gdid not make 26.825.6671.0 finalize the runtime or spawn the renderer/app-server, I would not assume this is only the single-file EFS case from #41540. There may be another missing/partial runtime component or a 26.825.6671.0 upstream bootstrap/materializer regression after the local files are already healthy.WinBridge only repairs/validates user-owned local state; it does not modify
WindowsApps, bypass package protection, or patch the Desktop runtime. So if a verified complete415ffebf3d576e9bruntime still leaves the app headless and the current build refuses to finalize/select it, that part needs an upstream Codex fix rather than a guaranteed local repair.Edwardxlai commentedon Sep 2, 2026
Still reproducing on
26.831.1445.0, and I have a data point that I think pins down the exact API-level fix.Environment
OpenAI.Codex 26.831.1445.0(Microsoft Store / MSIX)C:\Program Files\WindowsApps\OpenAI.Codex_26.831.1445.0_x64__2p2nqsd0c76g0Same symptom as described here: several
ChatGPT.exeprocesses,MainWindowHandle = 0, and the desktop log stops dead at:The staging hash rotates on every Store update, so the fix does not stick
This is the part that makes it feel like a regression rather than a one-time breakage. The target directory name under
runtimes\cua_node\is version-specific:26.825.4187.0e4d75eceaa042f2026.831.1445.0799aa322aa55dbc2I manually materialised
e4d75eceaa042f20and the app started normally. It then auto-updated overnight to26.831.1445.0, which wants799aa322aa55dbc2, the copy failed again, and the app went headless again — leaving two fresh.staging-799aa322aa55dbc2-*directories behind.Across the whole episode the abandoned staging directories accumulated to 1.87 GB (13 directories, ~150–240 MB each) before I cleared them. Nothing prunes them, so every failed launch adds another partial copy.
Confirming the EFS cause and what actually fixes it
#32732already identified the EFS angle; this narrows it to the specific call.Reading the source file works fine — my account can decrypt it:
Copy-Itemon the same file fails:That is
ERROR_ENCRYPTION_FAILED(6000 /0x80071770) — the same code in the title of #41540. It surfaces through libuv aserrno -4094 UNKNOWN, which is what the app logs asbundled_executable_relocation_failed.robocopycannot even enumerate the tree (Files : 0). 5620 of the files underapp\resourcescarryFILE_ATTRIBUTE_ENCRYPTED. This is normal for Store payloads — Raycast's MSIX package on the same machine is likewise fully marked.The failure is on the destination side, not the read side. A plain stream copy that never asks Windows to preserve the encrypted attribute succeeds on 100% of the files:
Same source, same destination, same account — 4684/4684 files, zero failures. The only difference is not going through
CopyFileExW's encryption-preserving path.So the fix looks like passing
COPY_FILE_ALLOW_DECRYPTED_DESTINATION(0x00000008) toCopyFileExWin the relocation code, or dropping to a stream copy on Windows. Node'sfs.copyFiledoes not expose that flag, which is likely why the bundled-executable relocation path hits this at all.Suggestions beyond the copy flag
.staging-*directories on startup. 1.87 GB of abandoned partial copies accumulated silently.26.820the relocation failed in ~300 ms and the app fell back to a CLI onPATHand worked. The newer builds appear to retry/copy slowly instead, which is what converts the failure into an indefinite hang.Happy to run any diagnostic on this machine — it reproduces on every Store update.
computersniper commentedon Sep 4, 2026
Still reproducing on
26.901.1978.0, with another version-specific runtime hash and a measured recovery timeline.Environment
OpenAI.Codex 26.901.1978.0(Microsoft Store / MSIX, package statusOk)26200cua_noderuntime ID:ad3b5049246cde44Headless startup state
At
2026-09-04 14:56:33local time, the packaged app started but remained headless:ChatGPT.exe, crashpad, GPU, network, and storage processes were present and responsive;MainWindowHandle = 0;--type=rendererprocess was present;codex.exe app-serverwas present;The new runtime was not finalized. Under
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node, I observed:.staging-ad3b5049246cde44-hzkgF7: 4,419 files / 266.3 MB, nomanifest.json;manifest.json;799aa322aa55dbc2runtime from26.831.1445.0was present but correctly not reused.The packaged source for this build contains 4,684 files / 322.0 MB, including
manifest.json,bin\node.exe, andbin\node_repl.exe.How it recovered this time
I left the same process tree running instead of killing/restarting it. At approximately
15:13:18, the app finally promoted/finalized:%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\ad3b5049246cde44Validation after finalization:
manifest.json: presentbin\node.exe: presentbin\node_repl.exe: presentThe existing main process then gained a nonzero window handle and title
ChatGPT; renderer processes appeared immediately afterward. Total silent headless time was roughly 16 minutes 45 seconds.No app reset, uninstall/reinstall, cache deletion, credential change, WindowsApps permission change, or manual runtime copy was performed in this
26.901.1978.0recovery.For comparison, on the same machine with
26.831.1445.0, repeated staging did not finalize; buffered stream-copying all 4,684 official packaged runtime files into the version-specific final directory, validating count/bytes/key files, and then atomically promoting the directory restored normal startup. That remains consistent with the Application Protected/EFS relocation analysis above.Upstream implications
This confirms the bug survives another Store update and rotates to a new runtime hash. Depending on timing/error handling, the protected-file fallback may be either extremely slow or leave abandoned partial staging trees.
Suggested fixes remain:
COPY_FILE_ALLOW_DECRYPTED_DESTINATIONor a reliable streaming fallback for the full runtime tree on Windows;.staging-*directories after a verified final runtime exists;No account identifiers, credentials, conversation content, or private project paths are included.
qingchuan-x commentedon Nov 17, 2026
Still reproducing on 26.1111.2228.0 (2026-11-17)
Adding a fresh Windows data point — same family as #28673 / #28258 / #41822:
OpenAI.Codex26.1111.2228.0 (MSIX) +OpenAI.CodexPrimaryRuntime.v26-1112-737.0, codex-cli 0.167.0-alpha.4.1, Windows 11 x64 (build 26100), ASCII user profile.AppData\Local\OpenAI\Codex\runtimes\cua_nodeaccumulated 330 orphaned.staging-bfa21d187eb00b05-*directories (~46.4 GB) in roughly one day while the app was running (~1.7 GB/h), taking the C: drive (200 GB) to 0 bytes free.bbc9141fe9f920ac, complete) was present the whole time; staging forbfa21d187eb00b05never finalized — consistent with the EFS/Application-Protected relocation failure (0x80071770) analysis above..staging-*directories freed 46.4 GB instantly; within a day, the app (now on 26.1111.2228.0) started staging a new hash (c38161ad8494f88c) underCodex\bin— so the pattern survives updates and is not limited toruntimes\cua_node.Happy to capture logs/diagnostics if maintainers want specific output.