Skip to content

[Windows][26.917.8451.0] Codex launches headless because cua_node staging never finalizes; xcopy /G restores UI #47724

Open

Description

@study-233

What version of the Codex App are you using?

OpenAI.Codex 26.917.8451.0

What platform is your computer?

Windows x64. PowerShell 7.6.6.

What issue are you seeing?

Codex Desktop launches multiple ChatGPT.exe background processes but never creates a visible window.

All observed ChatGPT.exe processes remained responsive, but every process had:

Responding         True
MainWindowHandle   0
MainWindowTitle    <empty>

Example from the affected launch:

Id    Responding MainWindowHandle MainWindowTitle
20000 True       0
25544 True       0
30824 True       0
37708 True       0
43900 True       0
51468 True       0

The failure correlates with cua_node runtime materialization never finalizing.

Under:

%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node

the previous finalized runtime existed:

df473e5367fa2b42

but every launch of 26.917.8451.0 created a new staging directory for the new runtime ID:

.staging-7f75cff94511d5f8-<random>

and never produced:

7f75cff94511d5f8

Repeated launches accumulated many staging directories, including several created minutes apart on 2026-09-24.

Deleting all stale .staging-* directories did not fix the problem. On the next launch, Codex immediately created another .staging-7f75cff94511d5f8-* directory and again stayed headless.

Reproduction / observed sequence

  1. Install/update Codex Desktop to 26.917.8451.0 on Windows.
  2. Launch Codex.
  3. Several ChatGPT.exe processes start, but no window appears.
  4. Get-Process ChatGPT | Select Id,Responding,MainWindowHandle,MainWindowTitle shows every process with MainWindowHandle = 0.
  5. Inspect %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node.
  6. A new .staging-7f75cff94511d5f8-<random> directory appears, but the finalized 7f75cff94511d5f8 directory is never created.
  7. Kill ChatGPT and the sandbox service, delete the staging directory, and launch again.
  8. Another staging directory with the same runtime ID is created and the app remains headless.

Confirmed workaround

I stopped all Codex-related processes:

Get-Process ChatGPT -ErrorAction SilentlyContinue | Stop-Process -Force
Get-Process "codex-windows-sandbox-service" -ErrorAction SilentlyContinue | Stop-Process -Force

Then I copied the complete packaged cua_node runtime into the expected finalized content-addressed directory using xcopy /G:

$pkg = Get-AppxPackage OpenAI.Codex
$src = Join-Path $pkg.InstallLocation "app\resources\cua_node"
$dst = "$env:LOCALAPPDATA\OpenAI\Codex\runtimes\cua_node\7f75cff94511d5f8"

New-Item -ItemType Directory -Force -Path $dst | Out-Null
& "$env:SystemRoot\System32\xcopy.exe" "$src\*" "$dst\" /E /I /H /Y /G

Verification after copying:

Runtime ID    : 7f75cff94511d5f8
node.exe      : True
node_repl.exe : True
manifest.json : True
file count    : 2283

After deleting the failed .staging-* directory and launching Codex again, the window appeared immediately and the app worked normally.

No changes were made to ~\.codex, WindowsApps permissions, registry settings, or application binaries.

Expected behavior

Codex should successfully materialize/finalize the bundled cua_node runtime and continue startup normally.

If runtime relocation fails, the app should show an actionable error instead of silently remaining headless with responsive background processes and MainWindowHandle = 0.

The runtime installer should also recover from incomplete staging state instead of creating a new failed .staging-* directory on every launch.

Additional information

This appears to be a regression / continuation of the Windows runtime-relocation issue reported in #42412 and related earlier reports.

The important new data point is that the same failure still reproduces on 26.917.8451.0 with runtime ID 7f75cff94511d5f8, and manually installing the complete packaged runtime with xcopy /G immediately restores the GUI.

Activity

  1. added
    bug
    app
    windows-os
    on Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions