Windows ChatGPT/Codex Desktop 26.820.9563.0 can hang ~8 minutes before creating its main window

Open 💬 4 comments Opened Aug 27, 2026 by likaho991007-design
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

Summary

On Windows, the current ChatGPT/Codex Desktop package 26.820.9563.0 does not create any visible window. Multiple ChatGPT.exe processes remain running and responsive, but every process has MainWindowHandle = 0.

This started after an earlier startup failure that showed:

Unable to locate the Codex CLI binary

The bundled/local Codex CLI itself is present and works correctly.

App / CLI versions

Installed AppX package:

Name: OpenAI.Codex
Version: 26.820.9563.0
InstallLocation: C:\Program Files\WindowsApps\OpenAI.Codex_26.820.9563.0_x64__2p2nqsd0c76g0
Status: Ok

Local Codex CLI:

C:\Users\CC\AppData\Local\OpenAI\Codex\bin\d5f4c71927a04589\codex.exe
codex-cli 0.150.0-alpha.8

Running codex.exe --version succeeds.

Observed behavior

Launching the desktop app from the Start menu produces no visible window and no user-facing error.

The latest desktop log contains only:

2026-08-27T05:18:12.542Z info Launching app agentRunId=null allowDebugMenu=false allowDevtools=false allowInspectElement=false buildFlavor=prod enableSparkle=false enableUpdater=true nodeEnv=undefined packaged=true platform=win32
2026-08-27T05:18:12.602Z info Appshot hotkey inactive configured=true enabled=false platform=win32

No further log lines are written.

After launching with an isolated profile plus GPU/sandbox flags, the processes remain alive, but no BrowserWindow is created:

Get-Process ChatGPT | Select-Object Id,Responding,MainWindowTitle,MainWindowHandle

Output:

   Id Responding MainWindowTitle MainWindowHandle
   -- ---------- --------------- ----------------
 6676       True                                0
 7760       True                                0
 9588       True                                0
15300       True                                0

So this is not an off-screen/hidden window; the processes are responsive but have no main window handle.

Reproduction / troubleshooting already tried

  1. Uninstalled and reinstalled the Windows app.
  2. Rebooted Windows multiple times.
  3. Verified AppX package status is Ok.
  4. Verified the Codex CLI binary exists and runs (codex-cli 0.150.0-alpha.8).
  5. Temporarily set CODEX_CLI_PATH to the working codex.exe, then removed it again for a clean test.
  6. Tested launching with a dummy argument.
  7. Tested:
--disable-gpu --disable-gpu-compositing --disable-software-rasterizer

No window appears.

  1. Tested with a fresh profile and sandbox disabled:
--no-sandbox --disable-gpu --disable-software-rasterizer --user-data-dir=<fresh temp dir>

With these flags the ChatGPT processes stay running, but still no window is created (MainWindowHandle=0).

  1. Checked Crashpad reports directory; no new .dmp was produced for these attempts.
  2. Disabled OrayIddDriver Device, uninstalled the Sunlogin/Oray remote desktop software, and rebooted. No change.
  3. Verified Windows Null kernel driver:
SERVICE_NAME: Null
TYPE: 1 KERNEL_DRIVER
STATE: 4 RUNNING
  1. Verified NUL redirection works (NUL_OK).

GPU / display environment

NVIDIA GeForce RTX 5070 Laptop GPU
DriverVersion: 32.0.15.7712

Intel(R) Arc(TM) 140T GPU (16GB)
DriverVersion: 32.0.101.7026

A third-party virtual display driver (OrayIddDriver Device) was present originally, but disabling it, uninstalling the associated software, and rebooting did not resolve the issue.

Expected behavior

The ChatGPT/Codex Windows desktop app should create and display its main window normally.

If startup fails before BrowserWindow creation, the app should surface an actionable error rather than silently leaving responsive background processes with MainWindowHandle=0.

Additional context

The failure signature resembles several existing Windows startup issues where logs stop after Launching app / Appshot hotkey inactive, but this report is for the newer 26.820.9563.0 package and differs in that the processes can remain alive and responsive while no main window is ever created.

View original on GitHub ↗

4 Comments

github-actions[bot] contributor · 1 day ago

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

  • #40972

Powered by Codex Action

likaho991007-design · 1 day ago

Update after additional observation/log capture:

The app eventually created its main window after a long delay rather than remaining permanently windowless.

  • Main ChatGPT.exe process start time: approximately 13:41:56 local (05:41:56Z)
  • A real main window was finally present by ~13:49:36 local (05:49:36Z), i.e. roughly 7m40s later.
  • At that point the process had a non-zero MainWindowHandle and the log reported rendererWindowVisible=true.

The later startup log contains repeated bundled plugin marketplace copy failures such as:

[BundledPluginsMarketplace] plugin_marketplace_folder_write_failed
UNKNOWN: unknown error, copyfile
'C:\Program Files\WindowsApps\OpenAI.Codex_26.820.9563.0_x64__2p2nqsd0c76g0\app\resources\plugins\openai-bundled\plugins\sites\.app.json'
-> 'C:\Users\CC\.codex\.tmp\bundled-marketplaces\openai-bundled.staging-...\plugins\sites\.app.json'

These errors repeat during bundled_plugins_reconcile, although reconciliation continues afterward, so I cannot say they are the direct cause of the initial hang.

The same session also performed a missing primary-runtime install:

primary_runtime_bundle_install_outcome ... bundleVersion=26.826.11250 durationMs=108709 ... outcome=installed ... trigger=startup_missing
install-primary-runtime ... durationMs=110967 ... status=installed

However, this install completed after the window was already visible, so it does not by itself explain the full ~7m40s pre-window delay.

There is also a later recoverable plugin status error corresponding to The system cannot find the path specified (os error 3), after which the spreadsheets plugin is installed successfully.

The bot suggested #40972 as a possible duplicate. That issue is notably similar because it reports a ChatGPT.exe process with MainWindowHandle=0 that is suspended and later becomes healthy after resume. I did not capture thread state / WaitReason while this machine was in the stuck state, so I cannot yet confirm whether the same suspended-process mechanism is occurring here. If the hang reproduces, I can capture thread count, working set, and thread WaitReason before the window appears.

myleiyawen-lang · 1 day ago

Withdrawn.

ykfddf9gqv-bot · 1 hour ago

Additional reproduction on 26.825.4187.0 — repeated .staging-* runtime extraction

I reproduced the long/no-window startup behavior on another Windows 11 x64 machine after the Microsoft Store package updated through 26.825.3734.0 to:

OpenAI.Codex 26.825.4187.0
Package status: Ok

The installed MSIX app starts multiple ChatGPT.exe background processes, but the visible window can remain absent for a long time.

New runtime-cache observation

The relevant runtime root is:

%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node

A completed runtime from an earlier build exists:

759ccb73c5d75f83

For the current build, the expected completed directory never appeared:

e4d75eceaa042f20

Instead, each separate failed/aborted launch attempt created a new randomly suffixed staging directory, for example:

.staging-e4d75eceaa042f20-GNd2bb
.staging-e4d75eceaa042f20-aG7HPS
.staging-e4d75eceaa042f20-kkkCpz
.staging-e4d75eceaa042f20-iulHyr
.staging-e4d75eceaa042f20-rizfHG
.staging-e4d75eceaa042f20-Ynlda5

Later launches did not continue writing to the earlier staging directories. They started a fresh staging directory instead. The six incomplete directories accumulated approximately 1,276.9 MB before being removed after recording the evidence.

After cleanup, the state was:

ExpectedRuntimeExists: False
PreviousRuntimeExists: True
RemainingMatchingStaging: 0

Control test

As a diagnostic control, the complete packaged app directory was copied to a normal user-writable folder under %LOCALAPPDATA% and launched directly. That unpackaged copy opens quickly and reliably:

  • renderer appears about 2.5 seconds after the main process starts
  • app-server appears about 3.1 seconds after the main process starts

This manual copy is only a diagnostic control, not a recommended workaround. It suggests the machine, GPU, and Electron renderer can initialize normally, while the Store/MSIX launch path repeatedly enters or restarts runtime preparation.

Questions for maintainers

Could the Windows runtime installer:

  1. log why e4d75eceaa042f20 is never promoted from staging,
  2. reuse or clean failed staging directories instead of creating a new full copy on each launch, and
  3. avoid blocking main-window creation while runtime preparation is incomplete?

No full logs are attached here because they may contain local paths or session data, but sanitized excerpts can be provided if useful.