Skip to content

Peer closed MessagePort connection #63135

Open

Description

@miweiyu921-oss

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

26.1117.4957.0

What subscription do you have?

plus

What platform is your computer?

Windows 11 24H2 (OS build 26100.3476), x64, Microsoft Store / MSIX, Codex Desktop 26.1117.4957.0

What issue are you seeing?

Title: [Windows desktop] "Peer closed MessagePort connection" on first send after 26.1117.4957.0 update

Environment

  • Codex/ChatGPT Desktop (Microsoft Store) 26.1117.4957.0, package OpenAI.Codex_26.1117.4957.0_x64__2p2nqsd0c76g0
  • Bundled app-server 0.171.0-alpha.13; Windows 11 24H2, OS build 26100.3476
  • Auto-updated 2026-11-22 16:56:58 (UTC+8); local proxy 127.0.0.1:7897 set via ~/.codex/.env

Symptom

First message in every new session triggers a main-process dialog: "Error: Peer closed MessagePort connection. at MessagePortMain. ... MessagePortMain.emit ... node:electron/js2c/browser_init", then the UI reloads. 8 occurrences across all 7 app sessions since 18:02 local time today.

Repro

  1. Quit all app processes, launch from Start menu. 2. Open a new blank thread. 3. Send a short message. 4. Error dialog appears and UI reloads.

Log evidence (%LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs)

  • "[Composer] submit failed ... Peer closed MessagePort connection" once per session
  • 304x copyfile errors / 76x plugin_marketplace_folder_write_failed; bundled plugins never appear in ~/.codex/plugins/cache ("plugin is not installed" x25)
  • 153x EXDEV writing .statsig-state.json; "durable" host websocket never reaches ready
  • After configuring ~/.codex/.env with the proxy, "Local Work executor connected to rendezvous attempt=1" succeeds with zero timeouts/tunnel errors, yet the error persists -> not a network/proxy issue

Tried (no effect)

Renamed Roaming\Codex to Codex.backup twice; killed all processes and restarted; web app works fine on the same browser/network; no app crash entries in Windows Application event log.

Expected

Sending a message should not throw a main-process exception or reload the UI.

No tokens, cookies or conversation content included. Full logs available via in-app feedback on request.

What steps can reproduce the bug?

Title: [Windows desktop] "Peer closed MessagePort connection" on first send after 26.1117.4957.0 update

Environment

  • Codex/ChatGPT Desktop (Microsoft Store) 26.1117.4957.0, package OpenAI.Codex_26.1117.4957.0_x64__2p2nqsd0c76g0
  • Bundled app-server 0.171.0-alpha.13; Windows 11 24H2, OS build 26100.3476
  • Auto-updated 2026-11-22 16:56:58 (UTC+8); local proxy 127.0.0.1:7897 set via ~/.codex/.env

Symptom

First message in every new session triggers a main-process dialog: "Error: Peer closed MessagePort connection. at MessagePortMain. ... MessagePortMain.emit ... node:electron/js2c/browser_init", then the UI reloads. 8 occurrences across all 7 app sessions since 18:02 local time today.

Repro

  1. Quit all app processes, launch from Start menu. 2. Open a new blank thread. 3. Send a short message. 4. Error dialog appears and UI reloads.

Log evidence (%LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs)

  • "[Composer] submit failed ... Peer closed MessagePort connection" once per session
  • 304x copyfile errors / 76x plugin_marketplace_folder_write_failed; bundled plugins never appear in ~/.codex/plugins/cache ("plugin is not installed" x25)
  • 153x EXDEV writing .statsig-state.json; "durable" host websocket never reaches ready
  • After configuring ~/.codex/.env with the proxy, "Local Work executor connected to rendezvous attempt=1" succeeds with zero timeouts/tunnel errors, yet the error persists -> not a network/proxy issue

Tried (no effect)

Renamed Roaming\Codex to Codex.backup twice; killed all processes and restarted; web app works fine on the same browser/network; no app crash entries in Windows Application event log.

Expected

Sending a message should not throw a main-process exception or reload the UI.

No tokens, cookies or conversation content included. Full logs available via in-app feedback on request.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    app
    on Nov 22, 2026
  2. added
    bug
    windows-os
    app-server
    on Nov 22, 2026
  3. github-actions commented on Nov 22, 2026

    @github-actions
    Contributor
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