You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Windows] ChatGPT desktop app closes and reopens on Send (26.1117.3838.0) #62901
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
Open the ChatGPT desktop app on Windows and start a new chat.
Type a short, plain-text message.
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.
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.
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.
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.
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.
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!
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.
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
The app launches and the Codex main interface loads normally.
I create/open a conversation and send the very first plain-text message.
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.
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.
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 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.
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.
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.
Activity
MikeKurzewski commentedon Nov 23, 2026
I am getting the same error when sending messages in a new or existing chat. Error persists even after attempting updates and fully restarting.
arzelia commentedon Nov 23, 2026
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.
nigthfly86 commentedon Nov 23, 2026
Same, Win 11, Version 26.1117.41037
First prompt goes through ok, second prompt always generates an error
sekarganesh93 commentedon Nov 23, 2026
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.scottb613 commentedon Nov 23, 2026
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
MessagePortMaininOpenAI.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.sekarganesh93 commentedon Nov 23, 2026
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 connectionerror 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.
Larichd commentedon Nov 23, 2026
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!
nnnaaaaiiii commentedon Nov 24, 2026
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.
jumao-zhanjiang commentedon Nov 24, 2026
I am experiencing the same Windows desktop crash and am adding a reproduction report.
My environment
OpenAI.Codex26.1117.4957.026.1120.5083.0Reproduction
Exact error:
Troubleshooting
26.1117.4957.0to26.1120.5083.0; the error persists.I have screenshots of the error before and after the update. Please investigate whether this is the same underlying MessagePort failure as this report.
alod0685-png commentedon Nov 24, 2026
The problem is the same. Updating it didn’t fix it. Codex_Windows_bug_report_2026-11-24.md
scottb613 commentedon Nov 24, 2026
Yep - concur - got an update last night - installed - even rebooted - still BROKEN.
scottb613 commentedon Nov 24, 2026
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.
DaneShuler commentedon Nov 24, 2026
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.
scottb613 commentedon Nov 24, 2026
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.
DaneShuler commentedon Nov 24, 2026
I tried that and still no luck...
scottb613 commentedon Nov 24, 2026
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.
optilun commentedon Nov 25, 2026
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.0to26.1120.6357.0. The current screenshot confirms the newer package version and the following dialog during an active Codex conversation: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.