[Windows][26.825.6671.0] Headless startup persists after clean runtime reset; cua_node staging never finalizes
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
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 #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:
- #41752 — same
26.825.6671.0symptom: main/GPU/utility processes start, but no renderer or app-server and no window - #41540 — Application Protected
node_repl.exerelocation failure causing headless startup on26.825.5331.0 - #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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Windows x64 launch and inspecting %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node alongside the packaged app\resources\cua_node\bin\node_repl.exe. Compare the staging and finalized runtime behavior with #41540 and #41822, including why copying node_repl.exe no longer unblocks startup. Done means runtime materialization completes, the app-server and renderer launch, and startup reports an actionable error when it cannot.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, rust
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100