Preface

If you use the ChatGPT (or Codex) desktop app and a Clash-like system proxy on Windows simultaneously, you may have encountered a phenomenon where the app starts normally, but the entire process exits after about 60-90 seconds, and the system does not pop up any error dialog boxes. The README records the last application log before the crash as [windows-store-updater] Checking Windows Store for package updates. Manual troubleshooting requires sifting through crash dumps, verifying Microsoft Store channels, and proxy configurations, which is a long chain prone to omissions.

dsh-plugin-chatgpt-crash-fix turns this troubleshooting and fix into a DSH plugin. Following the DSH philosophy of “everything is a plugin,” the diagnostic scripts, fix scripts, and manuals are distributed with the plugin. A DSH proxy can automatically complete the “diagnose → fix → verify” process according to the manual.

What is this

dsh-plugin-chatgpt-crash-fix is maintained by lammarco86, under the MIT license, current version 1.0.2. It addresses a specific problem: the Windows Store package OpenAI.Codex (ChatGPT/Codex desktop app) crashes approximately 60-90 seconds after launch.

Regarding the root cause, the README describes a chain verified by crash dumps (no independent third-party verification was found in the materials):

Clash-like software sets system proxy (e.g., 127.0.0.1:7897)
  └─ Proxy fails to forward Microsoft update domains (Direct connection works, proxy fails)
       └─ Windows Update / Microsoft Store channel interrupted (0x80072EFD)
            └─ Application's Store-updater native module windows-updater.node crashes (0xC0000005)
                 └─ Entire application exits

The corresponding fix strategy is: keep the proxy enabled and let OpenAI traffic continue through the proxy; only add Microsoft domains to the proxy bypass list to allow Store / Windows Update to connect directly. Once the channel is restored, the app updates to the fixed version via the Store, and the crash stops.

Core Features

The plugin contains the following:

  • skills/chatgpt-crash-fix/SKILL.md: User manual teaching any DSH proxy the “diagnose → fix → verify” process
  • scripts/diagnose-chatgpt-crash.ps1: One-time read-only diagnostic, covering application state, crash dumps, Store channels, and proxy
  • scripts/check-store-channel.ps1: Microsoft Store / Windows Update channel check (read-only)
  • scripts/check-proxy-config.ps1: Proxy and bypass list check (read-only)
  • scripts/fix-proxy-bypass.ps1: One-click fix, backup first → add Microsoft domains to proxy bypass list → verify, supports -Restore rollback
  • lib/index.js: Cordis plugin, registers /chatgpt-crash-fix command

All three check scripts are read-only; fix-proxy-bypass.ps1 only modifies user proxy settings and always backs up before making changes.

Installation and Enablement

Install as a DSH plugin:

dsh plugin add dsh-plugin-chatgpt-crash-fix

If you only need the scripts and Skill files, you can also clone the repository directly:

git clone https://github.com/lammarco86/dsh-plugin-chatgpt-crash-fix.git

Regarding dependencies, the plugin declares @deepseek-ai/cordis 4.0.1 via peerDependencies, with Node.js version requirements ^22.19.0 || >=24.0.0. PowerShell scripts need to be run with -ExecutionPolicy Bypass; the examples below include this parameter.

Typical Usage

First, perform a read-only diagnostic to confirm if the environment matches expectations:

powershell -ExecutionPolicy Bypass -File scripts\diagnose-chatgpt-crash.ps1

This step does not modify any configuration and outputs the application state, crash dumps, Store channel, and proxy situation.

If the diagnostic report meets all three conditions— “WU fails + proxy is on + no Microsoft bypass” —execute the fix. Replace -ProxyServer with your own proxy address:

powershell -ExecutionPolicy Bypass -File scripts\fix-proxy-bypass.ps1 -ProxyServer "127.0.0.1:7897"

The script will first backup the current proxy settings, then add Microsoft domains to the bypass list and verify. To undo, use -Restore to rollback:

powershell -ExecutionPolicy Bypass -File scripts\fix-proxy-bypass.ps1 -Restore

The verification results recorded in the README: after adding Microsoft domain bypass, the Windows Update scan resumes, the app updates from 26.818.2441.0 to 26.818.5229.0 via the Store, runs continuously without exiting, and the updater log shows overallState=NoUpdates; the proxy remains on and OpenAI authentication is available. The crash dump locates the error module as ...\resources\native\windows-updater.node (0xC0000005).

Applicable Scenarios and Notes

It suits two types of people: first, users on Windows using the ChatGPT/Codex desktop app with a Clash-like system proxy enabled who encounter a crash about 60-90 seconds after launch; second, agent developers who want to let the proxy in DSH automatically complete the “diagnose → fix → verify” process according to SKILL.md.

Pay attention to the following points before use:

  1. The plugin runs with the permissions of the current dsh process; check the source code and license (MIT) before installing.
  2. Scripts only modify user proxy settings and always back up first; please review the script content before running.
  3. Do not publish crash dumps, auth.json, or proxy subscriptions through this repository; these contain sensitive information.
  4. This project has no affiliation with OpenAI, Anywhere Labs, or DeepSeek and carries no security endorsement.
  5. Root cause conclusions and verification results come from the project README; it is recommended to run a read-only diagnostic first before attempting fixes to confirm your environment matches.

Conclusion

The value of dsh-plugin-chatgpt-crash-fix lies in breaking down a difficult-to-manually-locate crash chain (system proxy → Store channel → native module crash) into a reproducible, rollback-able script process, while keeping the proxy itself unchanged. The repository and community directory page are as follows:

  • GitHub:https://github.com/lammarco86/dsh-plugin-chatgpt-crash-fix
  • Community Plugin Directory: https://www.skillhub.cn/plugins/lammarco86/dsh-plugin-chatgpt-crash-fix

The community directory is an independent site with no official affiliation with DeepSeek / Hyperbolic.