Skip to content

[Windows][Codex Desktop] In-app browser crashes Codex when opening localhost #38175

Open

Description

@SolusKossi

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

26.803.10989.0

What subscription do you have?

Business

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What issue are you seeing?

Codex Desktop crashes when an agent initializes the in-app browser and navigates to a locally hosted Flask application.

The browser operation returns aborted, shortly after which the entire Codex Desktop app closes.

This has happened approximately six times across multiple tasks. Shell-only testing works normally, and avoiding the in-app browser prevents the crash.

What steps can reproduce the bug?

  1. Start a Flask application on http://127.0.0.1:5000.
  2. Ask Codex to inspect or test it using the in-app browser.
  3. Codex initializes the browser and attempts to navigate to the local URL.
  4. The browser operation returns aborted.
  5. Codex Desktop crashes.

What is the expected behavior?

The local page should open in the in-app browser. If navigation fails, the error should be contained and Codex Desktop should remain running.

Additional information

The local Flask application remains available and works normally outside the Codex in-app browser.

Activity

  1. added
    appIssues related to the Codex desktop app
    on Aug 12, 2026
  2. github-actions commented on Aug 12, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. kcwl-gona commented on Aug 16, 2026

    @kcwl-gona

    Confirming that this still reproduces on a newer Windows Codex Desktop build.

    Environment:

    • Codex Desktop: 26.810.7004.0 (x64)
    • Windows: 10.0.26200, x64
    • Date observed: 2026-08-17

    Reproduction:

    1. Start or keep a local web service available on 127.0.0.1.
    2. Ask Codex to use the in-app Browser for UI verification.
    3. As soon as Browser Use is invoked / the embedded browser is opened, the Codex desktop app exits or crashes.
    4. Reopening Codex and avoiding Browser Use prevents the crash.

    The behavior is reported as deterministic on this build: any Browser invocation triggers the crash. Shell/API-based checks continue to work.

    During one Browser screenshot attempt, the tool stream also logged a Statsig POST timeout to ab.chatgpt.com (10 seconds). The screenshot itself was returned, so this may only be adjacent telemetry rather than the crash cause.

    Expected:

    • Browser failures should be contained to the browser session/tab.
    • Codex Desktop should remain running, and the active task should continue.

    No project credentials, browser contents, or business data are included in this report.

  4. ngflizwx-ui commented on Sep 29, 2026

    @ngflizwx-ui

    Additional reproduction on a newer Windows desktop build.

    • Microsoft Store/MSIX package: OpenAI.Codex 26.924.2738.0 (x64).
    • Date/time: 2026-09-29, UTC+08:00. The app's Electron/Chromium browser (main) process crashed at 21:47:00, 21:54:41, and 22:05:24. The third crash occurred after a Windows reboot.
    • Each crash was preceded by the same active task opening a localhost HTML preview through Codex's in-app Browser Use webview. The page became DOM-ready at 21:46:50, 21:54:32, and 22:05:07 respectively, about 9–17 seconds before the corresponding crash.
    • Three Crashpad sidecars each contain {"capture_kind":"crash","osarch":"x86_64","ptype":"browser"}. Windows AppModel-Runtime recorded the app container being destroyed and a later relaunch.
    • No matching Windows Application Error/WER event, Resource Exhaustion Detector event, Defender action, or retained local minidump was found in the inspected window. The app remained responsive after the last relaunch while that preview was not reopened.

    Expected: a local preview or webview failure should be isolated to the tab/operation; the desktop app and active tasks should stay running.

    This is a strong timing correlation, not proof that the HTML page itself is the native root cause. The private page URL, project path, chat identifiers/content, and raw logs are omitted.

    Follow-up investigation (same date)

    A fourth browser/main-process crash occurred at 22:35:30 UTC+08:00 while a different task was using another localhost page from the same workbench family. The tab was created at 22:34:07, Page.navigate timed out at 22:34:27, the page became DOM-ready at 22:34:45, and the debugger listener was registered again at 22:35:22. The fourth Crashpad sidecar also reports ptype=browser.

    The user and earlier logs confirm the same workbench worked earlier that day on the same installed app version (app release 26.924.22138, MSIX 26.924.2738.0). This is not evidence of an app update between successful use and these failures.

    Task call records show explicit ax.write() calls in the operations spanning crashes 1, 2, and 4; the recorded operation for crash 3 was navigation without an explicit ax.write(). Thus accessibility extraction is an investigation lead, not an established common cause.

    A later HTTP-only measurement of the live workbench returned 158,143,306 bytes with about 23.2 seconds to response headers. We found and locally removed an unnecessary full-project deep copy in the workbench's save-baseline calculation. That calculation fell from 14.7 to 3.1 seconds; all 46,766 hashes matched, and 37 save-related tests passed. An isolated HTTP handler then served the identical response length in 13.5 seconds. This is a page-performance mitigation only: we have not reproduced the page in Codex again and do not claim the native crash is fixed. Earlier incidents also loaded quickly, so the navigation timeout alone does not explain all four crashes.

    No native stack or retained minidump is available locally. Private pages, assets, task identifiers and raw logs remain omitted.

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

    appIssues related to the Codex desktop appbrowserbugSomething isn't workingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions