Skip to content

[Windows][26.917.8451.0] Codex UI does not open; MainWindowHandle=0 and WER MoAppHang while CLI works #47783

Open

Description

@newtaro0506

What version of the Codex App are you using (From “About Codex” dialog)?

26.917.8451.0 (Windows package version; Codex UI does not open, so the “About Codex” dialog is inaccessible)

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Windows 11 x64, build 10.0.26200

What issue are you seeing?

The Codex UI inside the ChatGPT desktop app does not open on Windows 11.

Steps to reproduce

  1. Launch the ChatGPT desktop app.
  2. Select Codex from the app.
  3. A Codex process starts, but no Codex UI/window appears.
  4. The process remains running, but MainWindowHandle = 0.
  5. Windows Error Reporting records a MoAppHang.

Expected behavior

The Codex desktop UI should open normally after selecting Codex.

Actual behavior

No Codex window is created. The Codex process starts, but the UI never appears.

PowerShell shows:

MainWindowHandle = 0

Windows Error Reporting:

  • Event ID: 1001
  • Event name: MoAppHang
  • Time: 2026-09-24 02:27:57
  • Package: OpenAI.Codex_26.917.8451.0_x64__2p2nqsd0c76g0
  • P2: praid:App
  • P3: 153.0.8010.53
  • P4: 6aab63c8
  • P5: 4e21
  • P6: 67246080
  • Report ID: 8e198255-fca5-441b-9d57-9dcf7ad18eba

CLI behavior

Codex CLI 0.156.1 works and GPT-6 Astra responds successfully.

However, codex-tui.log contains:

ChatGPT account ID not available, please re-run codex login (code -32603)

The warning still occurs after a successful codex logout / codex login and after changing:

cli_auth_credentials_store = "keyring"

Despite this warning, GPT-6 Astra continues to work normally from the CLI.

The log around the warning also shows the GPT-6 Astra /responses WebSocket initialization proceeding normally.

Troubleshooting already tried

  • ChatGPT desktop app Repair
  • ChatGPT desktop app Reset
  • Reinstallation
  • PC restart
  • Check for Updates
  • codex doctor
  • codex logout / codex login
  • Successful ChatGPT OAuth login
  • cli_auth_credentials_store = "keyring"
  • [windows] sandbox = "unelevated"
  • Confirmed approval_policy = "untrusted" is not present
  • Tested on a different network using iPhone/NTT Docomo tethering
  • The desktop Codex UI still fails to open on both networks

The CLI works, but the Windows desktop Codex UI does not.

I cannot obtain a /feedback session ID because the Codex UI never opens.

I have not included auth.json or any authentication tokens.

What steps can reproduce the bug?

  1. Start the ChatGPT desktop app on Windows 11.
  2. Open the model/view selector and select Codex.
  3. The Codex process starts in Task Manager.
  4. No Codex window or UI appears.
  5. The Codex process remains running, but PowerShell reports MainWindowHandle = 0.
  6. Windows Error Reporting records a MoAppHang event.

This reproduces consistently after app restart and PC restart.

I also reproduced the same desktop UI failure while using a different network connection (iPhone / NTT Docomo tethering).

The Codex CLI itself works and GPT-6 Astra responds normally, so the issue appears specific to the Windows desktop Codex UI.

What is the expected behavior?

After selecting Codex in the ChatGPT desktop app, the Codex UI/window should open normally and become usable.

The Codex process should create a visible window instead of remaining headless with MainWindowHandle = 0.

The app should not generate a Windows Error Reporting MoAppHang event during startup.

Additional information

Additional diagnostics:

  • Codex CLI version: 0.156.1
  • CLI authentication status: Logged in using ChatGPT
  • GPT-6 Astra works successfully from the CLI.
  • The desktop Codex process starts, but no visible window is created and MainWindowHandle = 0.

Windows Error Reporting:

  • Event ID: 1001
  • Event: MoAppHang
  • Time: 2026-09-24 02:27:57
  • Package: OpenAI.Codex_26.917.8451.0_x64__2p2nqsd0c76g0
  • Report ID: 8e198255-fca5-441b-9d57-9dcf7ad18eba

With log_dir explicitly configured, codex-tui.log contains:

ChatGPT account ID not available, please re-run codex login (code -32603)

This warning persists after:

  • codex logout / codex login
  • successful ChatGPT OAuth authentication
  • changing cli_auth_credentials_store to "keyring"

I also tested a separate network connection (iPhone / NTT Docomo tethering), and the desktop Codex UI still did not open.

The Agent environment setting is not accessible in my desktop app: codex://settings opens Settings, but I cannot switch between Windows native and WSL.

Because the Codex UI never appears, I cannot use /feedback to obtain a session ID.

I can provide the relevant redacted codex-tui.log excerpt if needed. I have not shared auth.json, OAuth tokens, or other credentials.

Activity

  1. added
    app
    on Sep 24, 2026
  2. added
    bug
    windows-os
    on Sep 24, 2026
  3. newtaro0506 commented on Sep 24, 2026

    @newtaro0506
    Author

    Additional diagnostic regarding the suggested duplicate #47724:

    I checked the local cua_node runtime.

    There are no .staging-* directories under:

    %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node

    The finalized runtime directory exists:

    7f75cff94511d5f8

    Both required executables are present:

    • bin\node.exe — 93,381,936 bytes
    • bin\node_repl.exe — 33,806,512 bytes

    So this does not appear to match the incomplete cua_node staging / missing node_repl.exe failure described in #47724.

    The symptoms appear closer to #46764, where the runtime is complete but the app still launches headlessly with MainWindowHandle = 0.

    My case additionally has a Windows Error Reporting MoAppHang event and the CLI warning:

    ChatGPT account ID not available, please re-run codex login (code -32603)

  4. newtaro0506 commented on Sep 25, 2026

    @newtaro0506
    Author

    Additional installation verification from OpenAI Support:

    winget list "ChatGPT" returns:

    • Name: ChatGPT
    • ID: 9PLM9XGG6VKS
    • Version: 26.917.8451.0
    • Source: msstore

    winget list "Codex" returns:

    • MSIX\OpenAI.Codex_26.917.8451.0_x64__2p2nqsd0c76g0
    • Version: 26.917.8451.0

    OpenAI Support confirmed that this indicates the expected Microsoft Store ChatGPT app with the Codex package installed.

    Environment:

    • Windows 11 build 10.0.26200
    • WER event: MoAppHang
    • Event ID: 1001
    • Report ID: 8e198255-fca5-441b-9d57-9dcf7ad18eba

    Relevant non-secret config currently includes:

    log_dir = "C:\\Users\\<redacted>\\.codex\\log"
    cli_auth_credentials_store = "keyring"
    
    [windows]
    sandbox = "unelevated"
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