codex icon indicating copy to clipboard operation
codex copied to clipboard

Codex Windows app crashes immediately when sending image attachments — v26.1117.4957.0

Open maiamoore2001 opened this issue 1 week ago • 2 comments

Bug description

The Codex Windows desktop app crashes immediately when I press Send with image attachments. This started after a recent update. The images attach successfully, but the application crashes before Codex begins responding.

App version: 26.1117.4957.0 Device: MSI Windows laptop

Error message: A JavaScript error occurred in the main process

Uncaught Exception: Error: Peer closed MessagePort connection.

Steps to reproduce:

  1. Open the Codex Windows application.
  2. Drag image files into a conversation.
  3. Press Send.
  4. The application immediately crashes and displays the JavaScript error.

Expected behaviour:

Codex should accept and process the attached images without crashing.

Troubleshooting already attempted:

  • Resetting the application through Windows Settings
  • Uninstalling and reinstalling
  • Restarting the application
  • Checking Microsoft Store for updates

These measures have not permanently resolved the issue.

Additional findings:

Codex successfully processes the same images when they are already stored in my project folder and referenced in a text prompt. Text-only tasks also work.

This suggests the problem is associated with sending image attachments rather than image processing generally.

I have also submitted feedback through the Codex application and contacted OpenAI Support.

Impact:

This issue is repeatedly interrupting my design and website development work. I would appreciate a permanent fix.

maiamoore2001 avatar Nov 22 '26 16:11 maiamoore2001

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

  • #63011
  • #63135
  • #63104

Powered by Codex Action

github-actions[bot] avatar Nov 22 '26 16:11 github-actions[bot]

I observed that only since November 2026, even through clean Windows-installs, everything is set up, run from and being used for Codex/Chat GPT in:

C:\Program Files\WindowsApps\ in stead of C:\Users\\AppData\Local\OpenAI\(Codex)

This has since been resulting in a lot of auto-closes, crashes or unexpected behaviour, but also lot of issues, including hidden Event Viewer error suchg as unavoidable AppX- 0x80073D02 (ERROR_PACKAGES_IN_USE) / App-ModelRuntime 0x800706D9 errors cannot be resolved on the user side—regardless of any troubleshooting. They only disappear when uninstalling ChatGPT and immediately reappear upon reinstallation.

Might be related to 2026-10 Preview Update (KB5127936) or introduced by 2026-11 Security Update (KB5132061) on 11/11/2026), underlying AppX deployment, AppContainer, and package cleanup bugs introduced in this build are also impacting the Desktop ChatGPT / Codex app.

At every boot (AppXDeployment-Server - 3 errors):

  • Error 0x80073D02: The request cannot be processed because package OpenAI.CodexPrimaryRuntime.<version>_x64__3k8sg7r9htsxt is in use.
  • Deployment Remove operation with target volume C: on Package OpenAI.CodexPrimaryRuntime.<version>_x64__3k8sg7r9htsxt from: (OpenAI.CodexPrimaryRuntime.<version>_x64__3k8sg7r9htsxt) failed with error 0x80073D02.
  • AppX Deployment operation failed for package OpenAI.CodexPrimaryRuntime.<version>_x64__3k8sg7r9htsxt with error 0x80073D02. The specific error text for this failure is: Error 0x80073D02: The request cannot be processed because package OpenAI.CodexPrimaryRuntime.<version>_x64__3k8sg7r9htsxt is in use.

Every time the ChatGPT / Codex app is opened (AppXDeployment-Server - 2 errors):

  • Error 0x80073D02: The request cannot be processed because package OpenAI.CodexPrimaryRuntime.<version>_x64__3k8sg7r9htsxt is in use.
  • Deployment Remove operation with target volume C: on Package OpenAI.CodexPrimaryRuntime.<version>_x64__3k8sg7r9htsxt from: (OpenAI.CodexPrimaryRuntime.<version>_x64__3k8sg7r9htsxt) failed with error 0x80073D02.
  • Informative error 0x80073D02: Failure in the DynamicDependenciesInUse state handler.

The is a placeholder for the current version/package number as they keep updated , but the error does not get resolved.

Also introduced with a recent Windows November Update (AppModel-Runtime) and only happening on Codex/Chat GPT Windows installations.

  • DeleteAppContainerProfile failed with error 0x800706D9 because it was unable to unregister with the firewall.
  • CreateAppContainerProfile failed for AppContainer onecore\ds\security\gina\profile\profext\appcontainer.cpp Line:1962 defenderaiplatformhost DefenderAiPlatformHost with error 0x800706D9.

These errors were already appearing occasionally before these update (for months) on exits/reboots as Codex/OpenAI tries to start this system service early (along with the Codex OpenAI Sandbox service not being able to complete the function - error OS 1800 on the subsequent boot):

  • AppXDeployment (2) : Failed to start system service: appxsvc with error: 0x8007045B (2)
  • CodexSandboxService.OpenAI.Codex (2, sometimes 4) : unable to restore package uninstall listener: open the logged-in user's token and os error 1008
  • (last error records disappeares when DelayedStart 1 is added to the service).

The only way to fix these errors is by uninstalling the Deskotp ChatGPT app but it comes back again after reinstalling - i have been through any troubleshoot step. Clean PC/Windows reinstall did not help or avoid this mess from Codex/Chat GPT. Moreover, Chat GPT started to regularly crash/auto-close at certain times since a November update.

The 0x80073d02 errors keep returning on every session and now due to the November Update for: OpenAI.CodexPrimaryRuntime

mdruy avatar Nov 22 '26 19:11 mdruy