codex - 💡(How to fix) Fix Codex Windows desktop app crashes on startup: app-server websocket closed code=3221225781

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Error shown: Most recent error: Codex app-server websocket closed (code=3221225781)

  • Immediately after that, this error screen appears.
  • I tried creating config.toml with Windows sandbox settings, but the same error happened.
RAW_BUFFERClick to expand / collapse

Codex Windows desktop app crashes immediately after opening.

Error shown: (code=3221225781, signal=null) Most recent error: Codex app-server websocket closed (code=3221225781)

What happens:

  • I install/open Codex on Windows.
  • The app checks for updates and says the latest version is installed.
  • Immediately after that, this error screen appears.
  • Reload does not fix it.
  • Check for updates does not fix it.
  • Open Config.toml does nothing.
  • I manually checked C:\Users\DeAnno.codex.
  • There was no config.toml originally.
  • I tried creating config.toml with Windows sandbox settings, but the same error happened.
  • I also tried Repair/Reset from Installed Apps, but the crash still happens.
  • There is no sandbox.log file, so it may be crashing before sandbox startup.

Environment:

  • Windows 11 Pro
  • Codex installed from Microsoft Store
  • Using Codex desktop app, not VS Code
<img width="1202" height="747" alt="Image" src="https://github.com/user-attachments/assets/cc1a7a99-4725-4692-a8e1-02d8dc1627a8" />

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex Windows desktop app crashes on startup: app-server websocket closed code=3221225781