Skip to content

Codex Windows desktop app exits immediately after launch on Windows 10 #28035

Open

Description

@wenbo0285-crypto

What happened?

The Codex Windows desktop app installs successfully, but it exits immediately after launch. No window remains open.

This started after a recent Codex desktop app update. Reinstalling newer builds did not fix it.

Environment

  • OS: Windows 10 Pro 22H2
  • OS build: 19045.6456
  • Architecture: x64
  • Codex app versions tested:
    • 26.609.3341.0
    • 26.609.4994.0
  • Install source:
    • Microsoft Store / Codex Installer from chatgpt.com/codex/open-app
  • Microsoft Edge WebView2 Runtime: 149.0.4022.62
  • Microsoft Desktop App Installer / winget: 1.28.240.0
  • ChatGPT Desktop app works on the same machine
  • Codex CLI works on the same machine:
    • codex-cli 0.139.0

Steps to reproduce

  1. Install Codex Windows desktop app from the official installer / Microsoft Store.
  2. Launch Codex from Start Menu, Microsoft Store, or chatgpt.com/codex/open-app.
  3. The app starts briefly, then exits within a few seconds.
  4. No usable Codex window appears.

Expected behavior

Codex desktop app should open and stay running.

Actual behavior

Codex process starts and exits immediately. After 5 seconds and 30 seconds, there is no Codex.exe process running.

Troubleshooting already attempted

  • Reinstalled Codex using the latest installer.
  • Removed the existing AppX package and reinstalled.
  • Re-registered the AppX package manifest.
  • Cleared / backed up Codex local app data:
    • %LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0
  • Cleared / backed up Codex home data:
    • %USERPROFILE%\.codex
  • Reset Microsoft Store cache with wsreset.exe.
  • Updated Microsoft Desktop App Installer / winget.
  • Forced reinstall through winget / Microsoft Store.
  • Verified WebView2 and VC++ runtimes are installed.
  • Checked Defender / Code Integrity logs; no clear block found.
  • Verified ChatGPT Desktop launches correctly.

Relevant Windows event behavior

AppModel Runtime shows that Windows successfully creates the AppContainer and launches Codex.exe, then terminates the package shortly after.

Observed AppModel event IDs include:

  • 210
  • 211
  • 201
  • 217

Example behavior:

  • OpenAI.Codex_26.609.4994.0_x64__2p2nqsd0c76g0
  • OpenAI.Codex_2p2nqsd0c76g0!App
  • Codex.exe is launched
  • package is terminated a few seconds later

No new clear Application Error crash entry appears for the latest launch attempts.

Notes

This appears specific to the Codex Windows desktop app on this Windows 10 environment. The same machine can run:

  • ChatGPT Desktop app
  • Codex CLI

Activity

  1. added
    bug
    app
    windows-os
    on Jun 13, 2026
  2. FerPdd0066 commented on Sep 2, 2026

    @FerPdd0066

    Additional current reproduction on Windows 10 Pro 22H2 build 19045 (x64), observed 2026-09-01, with strong A/B evidence across desktop builds.

    Environment / current package:

    • Windows 10 Pro 22H2, build 19045, x64
    • Local interactive console session (not RDP)
    • GPU: Intel HD Graphics P530, driver 31.0.101.2112
    • Microsoft Store product: 9PLM9XGG6VKS
    • Stable package: OpenAI.Codex 26.831.1445.0
    • Beta also tested: OpenAI.CodexBeta 26.727.4816.0

    Current stable symptom:

    • Main UI opens and finishes loading visibly.
    • About 32 seconds after AppX launch, the entire package exits silently.
    • AppModel-Runtime: Event 210 (container created), 211/201 (process added/launched), then 217 (container destroyed).
    • No matching Windows Application Error / WER event.
    • No Crashpad dump.
    • No matching Code Integrity / WDAC / AppLocker event.
    • No process remains after exit.

    Controlled tests already ruled out:

    • CODEX_SPARKLE_ENABLED=false: no change.
    • Dummy command-line argument: no change.
    • --disable-direct-composition: no change.
    • NODE_OPTIONS / Electron override environment: not present.
    • AppLocker/WDAC: no block events; local Codex runtime signatures are valid OpenAI signatures.
    • Console vs RDP: reproduction is on physical/console session, so RDP-specific explanation does not apply.
    • CUA node runtime was present and complete when checked.

    Important A/B across desktop builds on the same machine/state:

    • Stable 26.831.1445.0: opens, then silently exits.
    • Beta 26.727.4816.0: also silently exits.
    • Retained older stable 26.527.3686.0: can be launched in the AppX context and remains open indefinitely (does not hit the silent 30s teardown). This strongly suggests the OS/account/basic AppX environment can keep Codex Desktop alive and that the failure was introduced after the older desktop generation.

    However, 26.527 is too old to be a usable workaround against the current service/runtime contract: its bundled/runtime side reports OpenAI Codex v0.135.0-alpha.1, logs model-catalog parse errors such as unknown variant max (expects only none/minimal/low/medium/high/xhigh), and the old UI fails when submitting normal prompts.

    Backend/auth/network are healthy enough to execute a real Codex turn outside the old desktop UI: a direct codex exec --ephemeral --skip-git-repo-check "Responda somente com a palavra OK" completed successfully, returned OK, and exited with code 0. The active config is model = "gpt-5.5", model_reasoning_effort = "high", service_tier = "default".

    One additional lifecycle observation: launching the retained 26.527 desktop caused the shared %LOCALAPPDATA%\OpenAI\Codex\bin runtime inventory to change from the previously observed current runtime to older 0.130.0-alpha.5 / 0.135.0-alpha.1 entries, so desktop versions may be rewriting shared local runtime state when launched. This may be relevant to cross-version state/race behavior.

    This reproduction also closely matches #35560 (visible UI, ~30s lifetime, clean AppX Event 217 teardown with no crash evidence).

    Request to maintainers:

    1. Is there a supported diagnostic flag/logging mode that can identify what requests or lifecycle action triggers the clean package teardown immediately before Event 217?
    2. Is there a known-good Windows 10 build newer than 26.527 but compatible with the current service/runtime contract that can be installed/pinned while this is investigated?
    3. Is there a supported way to prevent Desktop from replacing/downgrading the shared local Codex runtime when testing older retained MSIX builds?
    4. If private sanitized logs/process traces are useful, please specify the exact files/commands desired; we have avoided destructive resets and can reproduce consistently.
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