Skip to content

[Windows] ChatGPT desktop app closes and reopens on Send (26.1117.3838.0) #62901

Open

Description

@sekarganesh93

What issue are you seeing?

The ChatGPT desktop app for Windows shows a JavaScript error in the main process: Peer closed MessagePort connection. The app then closes and reopens. This happens in existing conversations and in a brand-new chat with a short, plain-text prompt.

Environment

  • Windows desktop app, installed via Microsoft Store
  • Package: OpenAI.Codex
  • Version: 26.1117.3838.0

Steps to reproduce

  1. Open the ChatGPT desktop app on Windows and start a new chat.
  2. Type a short, plain-text message.
  3. Press Send.

Expected: The message sends and the app stays open.

Actual: The error appears and the app closes and reopens.

Troubleshooting already tried

Restarted the app, rebooted Windows, and ran both Repair and Reset in Windows Settings. The issue persists after Reset. ChatGPT on the web still works.

Related report

See #62349 for the same error string on Windows. That report describes a window stuck on the loading logo on a different build. This report concerns a repeatable close-and-reopen when pressing Send, even in a fresh chat. The underlying cause may be different.

Activity

  1. added
    bug
    app
    windows-os
    on Nov 21, 2026
  2. MikeKurzewski commented on Nov 23, 2026

    @MikeKurzewski

    I am getting the same error when sending messages in a new or existing chat. Error persists even after attempting updates and fully restarting.

    image
  3. arzelia commented on Nov 23, 2026

    @arzelia

    Getting this error too on mac desktop Version 26.1117.41037. Tried clearing code cache but problem still persists. It seems to happen more on work or codex threads even new ones.

  4. nigthfly86 commented on Nov 23, 2026

    @nigthfly86
    image

    Same, Win 11, Version 26.1117.41037
    First prompt goes through ok, second prompt always generates an error

  5. sekarganesh93 commented on Nov 23, 2026

    @sekarganesh93
    Author

    Reproduction update from the original reporter: I see the same second-prompt pattern on Windows. In a fresh chat, the first short, plain-text prompt goes through. When I send a second short, plain-text prompt in that same chat, the app shows Peer closed MessagePort connection, then closes and reopens. Both prompts are simple text. This clarifies the original steps: send two prompts in the same chat, not just one.

  6. scottb613 commented on Nov 23, 2026

    @scottb613

    Additional reproduction from a Windows user (2026-11-23): I can use ChatGPT normally, but when I switch to Codex and attempt to submit a message/post, the desktop app displays 'A JavaScript error occurred in the main process' with 'Uncaught Exception: Error: Peer closed MessagePort connection' (stack shows MessagePortMain in OpenAI.Codex). Rebooting Windows did not resolve it. Switching back to ChatGPT allows messages to be sent normally. This appears specific to submitting in Codex rather than all ChatGPT messages. Screenshot of error captured and available on request. App version not independently confirmed for this reproduction.

  7. sekarganesh93 commented on Nov 23, 2026

    @sekarganesh93
    Author

    Update: OpenAI Support suggested testing with a separate Windows user profile. I created one on the same laptop, and Codex in the ChatGPT desktop app worked normally in that profile. I didn’t see the Peer closed MessagePort connection error during the test.

    For comparison, in my original Windows profile, the first short plain-text prompt in a fresh Codex chat went through, but sending the second caused the app to close and reopen with that error. A separate Windows profile is a workaround for me so far. I haven’t verified a fix in my original profile.

  8. Larichd commented on Nov 23, 2026

    @Larichd

    I'm having exactly the same issue on Windows 11, version 26.1117.4957.0.
    The first message in Codex works fine, but as soon as I send a second one, the app crashes with the "Peer closed MessagePort connection" error. It happens in every chat, even with simple text messages.
    I've already tried restarting Windows, repairing the app, stopping background services, and resetting the local app data. Nothing helped.

    It's really frustrating because I basically can't use Codex at all right now. Hopefully this gets fixed soon!

  9. nnnaaaaiiii commented on Nov 24, 2026

    @nnnaaaaiiii
    image Same, Win 11, Version 26.1117.41037 First prompt goes through ok, second prompt always generates an error

    Exactly the same issue here. Same Codex package version (26.1117.4957.0), identical error message and stack trace. Updating and resetting the ChatGPT desktop app did not help.

  10. jumao-zhanjiang commented on Nov 24, 2026

    @jumao-zhanjiang

    I am experiencing the same Windows desktop crash and am adding a reproduction report.

    My environment

    • Windows desktop app installed from Microsoft Store
    • Package: OpenAI.Codex
    • Initial version: 26.1117.4957.0
    • Updated version: 26.1120.5083.0

    Reproduction

    1. The app launches and the Codex main interface loads normally.
    2. I create/open a conversation and send the very first plain-text message.
    3. The app immediately shows a JavaScript main-process error. I cannot get to a second message.

    Exact error:

    Uncaught Exception:
    Error: Peer closed MessagePort connection.
    at MessagePortMain.<anonymous>
    at MessagePortMain.emit (node:events:514:20)
    at MessagePortMain._internalPort.emit (node:electron/js2c/browser_init:2:54439)
    

    Troubleshooting

    • ChatGPT in the browser works normally.
    • Updated the Microsoft Store app from 26.1117.4957.0 to 26.1120.5083.0; the error persists.
    • Ran Windows Settings > Apps > ChatGPT > Advanced options > Repair; the error persists.
    • The failure happens on the first message in a conversation, not only after a long conversation.

    I have screenshots of the error before and after the update. Please investigate whether this is the same underlying MessagePort failure as this report.

  11. alod0685-png commented on Nov 24, 2026

    @alod0685-png

    The problem is the same. Updating it didn’t fix it. Codex_Windows_bug_report_2026-11-24.md

  12. scottb613 commented on Nov 24, 2026

    @scottb613

    Yep - concur - got an update last night - installed - even rebooted - still BROKEN.

  13. scottb613 commented on Nov 24, 2026

    @scottb613

    Oh - I opened a real case with support via the GUI Troubleshooting Screen - - -

    https://learn.chatgpt.com/docs/reference/troubleshooting

    Bottom Right "Ask AI" Bubble.

    Referenced this thread - insisting an escalation and ticket number.

    I think I'm emailing with a real person now.

  14. DaneShuler commented on Nov 24, 2026

    @DaneShuler

    Has anyone had any luck recovering codex desktop capabilities? I just tried to go through chatgpt support and it said escalating to a specialist after working with the AI for awhile and then I sat there for hours with nothing, no ticket number, no email, nothing.

  15. scottb613 commented on Nov 24, 2026

    @scottb613

    I gave up waiting - I went into Settings - Apps - ChatGPT - "Advanced Options". Selected both REPAIR and RESET - basically you lose your projects and it's a fresh install.

  16. DaneShuler commented on Nov 24, 2026

    @DaneShuler

    I gave up waiting - I went into Settings - Apps - ChatGPT - "Advanced Options". Selected both REPAIR and RESET - basically you lose your projects and it's a fresh install.

    I tried that and still no luck...

  17. scottb613 commented on Nov 24, 2026

    @scottb613

    The one other thing I did - with ChatGPT closed - I went into %USERPROFILE% and moved .codex to .codex-backup. Then do Selected both REPAIR and RESET. Maybe there was something in there. It's working now for me.

  18. optilun commented on Nov 25, 2026

    @optilun

    Follow-up from the Windows x64 user previously reported in #63104 (comment #63104 (comment)).

    As of November 25, 2026 (local time), the identical error persists after updating from package 26.1117.4957.0 to 26.1120.6357.0. The current screenshot confirms the newer package version and the following dialog during an active Codex conversation:

    A JavaScript error occurred in the main process
    Uncaught Exception:
    Error: Peer closed MessagePort connection.
        at MessagePortMain.<anonymous> (...:45475)
        at MessagePortMain.emit (node:events:514:20)
        at MessagePortMain._internalPort.emit (node:electron/js2c/browser_init:2:54439)
    

    Uninstalling and reinstalling the app previously did not help. The exact trigger and underlying cause remain unconfirmed. The user still cannot use the desktop app reliably. Since #63104 was closed, I am posting the new-version evidence here in the still-open related issue.

    Please escalate this persistent desktop issue to the engineering team and provide a supported recovery path that preserves local projects, settings and conversations. A screenshot is available; it is not attached publicly because it contains project information.

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