Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.1117.41037
What subscription do you have?
ChatGPT Plus
What platform is your computer?
MacBook Pro, Apple M3 Pro
What issue are you seeing?
I am experiencing a persistent JavaScript error in the Codex desktop application on my MacBook Pro with an Apple M3 Pro processor.
The issue occurs in both the previous and the latest versions of the application. I specifically updated the application on November 23, 2026, hoping that the issue would be resolved, but the same error persists.
Error message:
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Peer closed MessagePort connection.
at MessagePortMain.<anonymous>
(/Applications/ChatGPT.app/Contents/Resources/app.asar/.vite/build/early-bootstrap-7-ce4a67f0257ee973.js:1022:45475)
at MessagePortMain.emit (node:events:514:20)
at MessagePortMain._internalPort.emit
(node:electron/js2c/browser_init:2:54439)
Additional information:
- Device: MacBook Pro, Apple M3 Pro (Apple Silicon).
- Subscription: ChatGPT Plus.
- Application updated to the latest available version on November 23, 2026.
- The error occurs in both the previous and the latest versions.
- Updating the application did not resolve the issue.
- Simple tasks work in the browser using the same account.
- I also experienced problems after attaching 16 images to a conversation.
- OpenAI Support directed me to report this issue on GitHub.
Expected behavior:
The Codex application should work normally without JavaScript errors or crashes.
Actual behavior:
The application repeatedly displays the “Peer closed MessagePort connection” error, preventing normal use.
Please investigate this issue. Is there a known workaround or an upcoming update that addresses this bug?
Thank you.
What steps can reproduce the bug?
- Launch the ChatGPT/Codex desktop application on a MacBook Pro with an Apple M3 Pro processor.
- Open Codex and attempt to use it normally.
- The application displays a JavaScript error: "Peer closed MessagePort connection."
Troubleshooting steps already attempted:
- Updated the application to the latest available version on November 23, 2026.
- Uninstalled and reinstalled the application.
- Tried using Codex through the web browser with the same account.
- Simple tasks work in the browser, but I also experienced issues after attaching 16 images to a conversation.
Updating and reinstalling the desktop application did not resolve the issue. The same error occurs in both the previous and the latest versions.
I have already contacted OpenAI Support, and they directed me to report this bug on GitHub.
The exact trigger has not yet been identified. Session ID, token usage, and context window usage are currently unavailable.
What is the expected behavior?
The Codex desktop application should launch and operate normally on macOS with Apple Silicon without JavaScript errors, unexpected crashes, or internal communication failures.
Users should be able to open existing conversations, create new ones, submit prompts, attach images, and work on projects without interruptions.
If an attachment or context limit is exceeded, the application should display a clear and informative error message instead of crashing.
Please investigate the underlying cause of the "Peer closed MessagePort connection" error and provide a permanent fix or a reliable workaround.
Additional information

Activity
github-actions commentedon Nov 24, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action