Skip to content

Windows desktop hangs when stale CODEX_CLI_PATH selects incompatible app-server #51813

Open

Description

@GrayRavenREI

Windows desktop repeatedly hangs with stale CODEX_CLI_PATH override

Summary

The Codex Windows desktop app repeatedly becomes permanently unresponsive. The composer often shows an attachment chip with an endless loading spinner. Killing ChatGPT.exe in Task Manager restores the app, but the visible conversation does not always rehydrate even though the underlying agent/session can continue.

Environment

  • Windows 10 Pro 22H2, build 19045
  • Desktop package: OpenAI.Codex_26.1002.6548.0_x64
  • Electron/ChatGPT executable version reported by WER: 155.0.8059.27
  • User-level CODEX_CLI_PATH points to a persisted .sandbox-bin/codex.exe
  • Selected app-server version: codex-cli 0.145.0-alpha.18, dated 2026-07-18
  • The current package contains a different resources/codex.exe

Evidence

  • Windows Event Viewer recorded 341 Application Hang / MoAppHang events for Codex over 60 days, all reported as Top level window is idle.
  • Seventeen hangs occurred on package 26.1002.6548.0 on 2026-10-07.
  • Startup logs explicitly report the app-server executable as the user override and source=override.
  • The desktop repeatedly sends app/installed; the selected old app-server rejects it with JSON-RPC error -32600, Invalid request: unknown variant app/installed.
  • There were 11,344 such rejections in one day. Pending request counts reached more than 1,000 in some sessions.
  • Terminated sessions commonly end with write EPIPE from the IPC router.
  • Binary inspection confirms that the overridden old binary contains plugin/installed but not app/installed; the current packaged binary contains app/installed.
  • Session transcripts remain present and continue to update after the window is killed. On restart, logs show durable WebSocket reconnection and thread-resume activity, explaining why work can continue while the UI loses the displayed chat.
  • The system drive was also critically low on space (approximately 151 MB free), which likely compounds profile/database and update failures, but the protocol mismatch is independently reproducible in the logs.

Expected behavior

The desktop app should either ignore an incompatible CODEX_CLI_PATH, perform a compatibility check before using it, or present a clear blocking error. A rejected background request should not accumulate indefinitely or freeze the renderer.

Suggested safeguards

  1. Validate the overridden app-server protocol/version during initialization.
  2. Fall back to the packaged binary when required methods are missing.
  3. Add backoff/deduplication for repeatedly rejected app/installed requests.
  4. Preserve and rehydrate the current conversation after renderer or top-level-window failure.
  5. Surface low-disk-space warnings before Chromium/SQLite state becomes unreliable.

Raw desktop logs and Windows WER report IDs are available if maintainers need them, but they are not attached publicly because they may contain conversation metadata and local paths.

Activity

  1. added
    bug
    app
    windows-os
    app-server
    on Oct 7, 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

    appapp-serverbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions