codex - 💡(How to fix) Fix Codex Desktop Windows: connector OAuth "Open in Codex" opens Electron error instead of completing callback

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

Codex Desktop on Windows fails to complete connector OAuth after browser login. When authenticating Codex connectors and clicking "Open in Codex" in the browser, Windows opens an Electron error dialog instead of returning the OAuth callback to the running Codex app. Actual error dialog: Error launching app

  • The Electron error text matches Electron's default app loader path for "Unable to find Electron app", suggesting the codex://...oauth_callback?... activation URL is being interpreted as an Electron app path / first positional argument before the packaged Codex app handles it.
  1. Observe that an Electron "Error launching app" dialog opens instead of Codex completing the connector authentication. I searched existing openai/codex issues for the exact error text and related terms, including:
  • Error launching app

Code Example

Error launching app

Unable to find Electron app at C:\Program
...\oauth_callback?code=[REDACTED]

Cannot find module 'C:\Program
...\oauth_callback?code=[REDACTED]'
RAW_BUFFERClick to expand / collapse

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

OpenAI.Codex_26.527.3378.0_x64__2p2nqsd0c76g0

What subscription do you have?

ChatGPT Pro ($200/month)

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64 (Windows 11 Pro)

What issue are you seeing?

Codex Desktop on Windows fails to complete connector OAuth after browser login. When authenticating Codex connectors and clicking "Open in Codex" in the browser, Windows opens an Electron error dialog instead of returning the OAuth callback to the running Codex app.

This is a Codex Desktop/App protocol callback issue, not a Codex CLI issue.

Observed with:

  • OpenAI Developer plugin connection
  • Supabase connector connection
  • Browser used for the login flow: Brave

Actual error dialog:

Error launching app

Unable to find Electron app at C:\Program
...\oauth_callback?code=[REDACTED]

Cannot find module 'C:\Program
...\oauth_callback?code=[REDACTED]'

Local investigation:

  • The installed MSIX package is OpenAI.Codex_26.527.3378.0_x64__2p2nqsd0c76g0.
  • AppxManifest.xml registers the codex protocol with executable app/Codex.exe.
  • The Electron error text matches Electron's default app loader path for "Unable to find Electron app", suggesting the codex://...oauth_callback?... activation URL is being interpreted as an Electron app path / first positional argument before the packaged Codex app handles it.

What steps can reproduce the bug?

  1. Open Codex Desktop on Windows.
  2. Start connecting a connector or plugin that uses browser OAuth, such as the OpenAI Developer plugin or Supabase connector.
  3. Complete the browser login flow.
  4. Click "Open in Codex" in the browser.
  5. Observe that an Electron "Error launching app" dialog opens instead of Codex completing the connector authentication.

What is the expected behavior?

Codex Desktop should receive the codex://...oauth_callback... protocol activation URL, route it to the running app, and complete connector authentication.

The OAuth callback URL should not be interpreted as an Electron application path.

Additional information

A redacted screenshot is attached showing the Electron dialog. The OAuth code= value has been fully redacted before sharing.

I searched existing openai/codex issues for the exact error text and related terms, including:

  • Unable to find Electron app
  • Error launching app
  • oauth_callback
  • Open in Codex
<img width="558" height="209" alt="Image" src="https://github.com/user-attachments/assets/a531ea80-39de-45ec-9675-adf36c659fdc" />
  • codex://
  • protocol handler
  • Supabase connector OAuth
  • OpenAI Developer connector OAuth

I found related Codex Desktop OAuth reports, but not this specific Windows protocol callback failure where the OAuth callback is treated as an Electron app path.

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 Desktop Windows: connector OAuth "Open in Codex" opens Electron error instead of completing callback