codex - 💡(How to fix) Fix Codex extension crashes with code=3221225477 on Windows [1 participants]

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…
GitHub stats
openai/codex#18816Fetched 2026-04-22 07:52:13
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Author
Participants
Timeline (top)
labeled ×5

Error Message

Error message: "Failed to refresh token: error sending request for url (https://auth.openai.com/oauth/token)" 5. It crashes immediately with error (code=3221225477, signal=null)

RAW_BUFFERClick to expand / collapse
<img width="602" height="608" alt="Image" src="https://github.com/user-attachments/assets/429f60c3-05fa-42ee-aea7-4651e21f99f7" />

What version of the Codex App are you using (From “About Codex” dialog)?

Latest version (just installed from VS Code Marketplace)

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Windows 10/11 x64

What issue are you seeing?

The Codex (ChatGPT) extension crashes immediately after opening in VS Code.

Error message: (code=3221225477, signal=null)

In a previous attempt, I also received: "Failed to refresh token: error sending request for url (https://auth.openai.com/oauth/token)"

The extension does not load the interface and becomes unusable.

What steps can reproduce the bug?

  1. Install the ChatGPT (OpenAI) extension in VS Code
  2. Open VS Code normally (local folder, not WSL)
  3. Click on the ChatGPT / Codex extension
  4. The extension attempts to start
  5. It crashes immediately with error (code=3221225477, signal=null)

Additional:

  • Happens with VPN ON and OFF
  • Happens after reinstalling the extension
  • Happens after restarting VS Code

What is the expected behavior?

The Codex / ChatGPT extension should load normally, allow login, and display the chat interface without crashing.

Additional information

  • OS: Windows 10/11 x64
  • IDE: VS Code
  • Extension freshly installed
  • Issue persists after reinstall and clearing cache
  • Likely related to native crash or dependency issue

extent analysis

TL;DR

The Codex extension crash may be related to a native crash or dependency issue, and checking the extension's compatibility with the current VS Code version and dependencies could provide a workaround.

Guidance

  • Verify that the VS Code version is compatible with the latest Codex extension, as compatibility issues might cause the crash.
  • Check the system's dependencies and libraries required by the Codex extension to ensure they are up-to-date and properly installed.
  • Investigate the "Failed to refresh token" error, which might indicate an issue with authentication or network connectivity, despite the problem occurring with VPN on and off.
  • Consider testing the extension on a different system or environment to isolate if the issue is system-specific.

Example

No code snippet is provided as the issue seems related to a native crash or dependency problem rather than a code-specific error.

Notes

The issue's cause is not explicitly clear, and without more detailed logs or error messages, it's challenging to provide a definitive fix. The suggestions are based on the information given and the nature of the errors described.

Recommendation

Apply workaround: Given the uncertainty around the exact cause, applying a workaround such as checking for compatibility issues, updating dependencies, or testing on a different environment might be the most practical next step. This approach allows for troubleshooting without waiting for a potential fix from the developers.

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 extension crashes with code=3221225477 on Windows [1 participants]