Skip to content

[Windows] Codex desktop stuck on OpenAI startup splash until app-server is terminated and reconnects #49922

Closed as duplicate

Description

@xiachuanbo

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

26.928.3736.0 (verified from the installed OpenAI.Codex Windows package); app-server 0.159.2

What subscription do you have?

ChatGPT sign-in; subscription tier not verified in this diagnostic report.

What platform is your computer?

Windows, OS version 10.0.26200, x64; Windows-native backend (not WSL)

What issue are you seeing?

Codex repeatedly remains on a pale startup screen with the OpenAI logo centered. The sidebar and main UI do not appear during the observed wait. The desktop becomes usable after an existing recovery BAT terminates codex.exe and the desktop host reconnects to a newly started backend.

This is a startup hang, not a confirmed spontaneous backend crash: the recovery BAT explicitly terminates the backend. The exact root cause is unconfirmed.

Observed repeatedly on 2026-10-01; similar startup failures are present in local logs from September 26 onward. The issue remains unresolved.

What steps can reproduce the bug?

  1. Exit Codex normally.
  2. Launch Codex from the Windows Start menu.
  3. Observe the app remain on the OpenAI logo startup screen instead of showing the main UI.
  4. Run the existing recovery BAT, whose relevant operation is to terminate codex.exe and its child processes.
  5. The desktop host remains running; after the backend reconnects, the main UI appears.

This is a workaround observed on the affected installation, not a clean-machine reproduction. The hang occurs before opening a task; token/context usage is not applicable. No in-app feedback session ID has been obtained.

What is the expected behavior?

Codex should complete normal startup and show its sidebar and main UI without requiring the user to terminate backend processes or run a recovery BAT.

Additional information

Diagnostic timeline

  • 15:11:27: startup begins.
  • 15:11:29: config/read, account/read and getAuthStatus return successfully.
  • 15:11:34: account lookup succeeds.
  • 15:12:55: backend exits and reconnects during the recovery sequence.
  • 15:12:56: shell_visible, home_visible and sidebar_ready are recorded; total startup time is approximately 89 seconds.

Window creation, renderer startup and settings loading complete well before the main UI appears. Similar recovery after backend reconnection occurred across multiple starts. This correlation does not establish the specific blocked initialization condition.

Tests that did not resolve the hang

  1. Removed stale auto-generated node_repl configuration referencing a missing old runtime, then allowed the app to regenerate it with current paths. The old path error disappeared, but startup still hung.
  2. Temporarily disabled codex-app-tools. Its tools/list timeout disappeared, but startup still hung. The plugin setting was restored.

The BAT also attempts to back up browser-sidebar-page-states.json, but its path contains an unexpected U+0008 character and does not resolve, so that file operation does not run. The observed recovery is consistent with backend termination/reconnection rather than a page-state reset.

No login/chat data or application binaries were deleted or patched. Backend version reported by the app is 0.159.2 and the affected backend is Windows-native, not WSL.

Possibly related: #49919 uses the same desktop package version, but reports recovery by explicitly selecting the bundled CLI. In this report, the initially launched backend already reports version 0.159.2 and recovery follows backend termination/reconnection. A shared cause has not been established.

Please investigate the initial desktop/backend initialization and readiness handoff, and advise which targeted diagnostics would help identify the blocking condition. Personal paths, account identifiers, credentials, and session transcripts are omitted.

Activity

  1. added
    app
    on Oct 1, 2026
  2. xiachuanbo commented on Oct 1, 2026

    @xiachuanbo
    Author

    Related: #48333 describes the same startup-spinner and backend-termination recovery pattern. This report adds reproduction on Windows package 26.928.3736.0 / app-server 0.159.2, including a single-variable test in which disabling codex-app-tools removes its tools/list timeout but does not resolve the startup hang. The shared root cause is still unconfirmed; please consolidate with #48333 if appropriate.

  3. added
    bug
    windows-os
    app-server
    on Oct 1, 2026
  4. xiachuanbo commented on Oct 1, 2026

    @xiachuanbo
    Author

    Exact recovery command used by Fix-Codex-Startup.bat

    To make the workaround reproducible, the BAT invokes PowerShell and runs this process-termination section:

    if (Get-Process -Name Codex -ErrorAction SilentlyContinue) {
        & taskkill.exe /F /IM Codex.exe /T
    }
    Start-Sleep -Seconds 2
    if (Get-Process -Name Codex -ErrorAction SilentlyContinue) {
        throw 'Codex is still running. No files were changed.'
    }

    The exact termination command inside it is:

    taskkill.exe /F /IM Codex.exe /T

    Observed procedure: launch Codex normally, leave the stuck OpenAI-logo window open, then run the existing Fix-Codex-Startup.bat. The user confirms that running this BAT allows the app to open. The desktop host executable in this installation is ChatGPT.exe; terminating Codex.exe affects the backend, after which the desktop reconnects and displays the main UI.

    Important scope: /F force-terminates matching processes and /T includes their children, so this can interrupt running Codex tasks. It was used while startup was already stuck, not as a routine action during active work.

    The original BAT subsequently tries to rename browser-sidebar-page-states.json, but the path actually contains a U+0008 character and the target does not exist. That file operation is skipped with a not-found result. Therefore the report does not claim that clearing or renaming page state is necessary. The snippet above is extracted from the BAT that recovered the app; it has not been separately validated as a standalone repair script.

    This is a temporary recovery, not a permanent fix: normal startup still reproduces the problem.

  5. xiachuanbo commented on Oct 1, 2026

    @xiachuanbo
    Author

    Screenshot and sanitized startup logs

    Attached is the original screenshot showing the OpenAI-logo startup screen, plus a sanitized excerpt from two startup attempts.

    The log attachment contains selected events and fields from the original logs, not the complete raw logs. Original UTC timestamps are retained (Asia/Shanghai = UTC+8). It preserves startup/readiness timings, backend connection transitions and selected RPC response timings.

    • Run A: plugin enabled after stale runtime paths were regenerated.
    • Run B: temporary codex-app-tools disabled test; startup still hung and only completed after backend reconnection. The plugin setting was subsequently restored.

    Local paths, usernames, process/request/session/conversation identifiers, credentials, message contents and raw stderr payloads have been omitted. Backend exits in these excerpts occurred during the recovery sequence and should not be interpreted as proof of a spontaneous crash.

    Codex stuck on the OpenAI startup splash

    Codex-startup-logs-redacted.txt

  6. goodman-oai commented on Nov 16, 2026

    @goodman-oai
    Contributor

    Tracking this startup hang in #48333. The Desktop window stayed open on the splash screen until the local backend reconnected. The reporter verified that the recovery script terminated matching Codex.exe processes and their children, after which the existing window loaded. Recovery details.

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