codex - 💡(How to fix) Fix GitHub OAuth callback fails with "Unable to find Electron app" on Windows

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

  1. Codex displays an error. Error message: Error launching app
  • Running "codex://test" manually reproduces the same error
  1. Codex displays an error window instead of completing authentication. Running codex://test should also be handled correctly by the application without generating any error. Observed error: Error launching app
RAW_BUFFERClick to expand / collapse

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

26.527.3686.0

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Windows 11 x64

What issue are you seeing?

When attempting to connect GitHub from within the Codex desktop application, the GitHub authentication flow completes successfully in the browser, but the callback back to Codex fails.

Steps to reproduce:

  1. Open Codex desktop app.
  2. Go to Plugins > GitHub.
  3. Click Connect.
  4. Complete GitHub authentication in the browser.
  5. GitHub redirects to codex://oauth_callback.
  6. Codex displays an error.

Error message:

Error launching app

Unable to find Electron app at: C:\Program Files\WindowsApps\OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0\app\oauth_callback?code=...

Cannot find module: C:\Program Files\WindowsApps\OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0\app\oauth_callback?code=...

Additional diagnostics:

  • Windows 11 x64
  • Codex version 26.527.3686.0
  • Installed from Microsoft Store
  • Chrome and Microsoft Edge both reproduce the issue
  • Running "codex://test" manually reproduces the same error
  • Codex launches normally
  • GitHub authentication succeeds
  • Failure occurs only when handling the codex:// OAuth callback

Feedback ID: no-active-thread-019e76c2-c9d9-73c3-8dc9-0373dd4efb89

<img width="552" height="192" alt="Image" src="https://github.com/user-attachments/assets/8ca2b4e5-d290-4647-9058-ba9a68ea89f4" />

What steps can reproduce the bug?

Feedback ID: no-active-thread-019e76c2-c9d9-73c3-8dc9-0373dd4efb89

Steps to reproduce:

  1. Open Codex Desktop App on Windows 11.
  2. Go to Plugins > GitHub.
  3. Click "Connect".
  4. Browser opens GitHub authentication page.
  5. Complete GitHub login and authorization.
  6. GitHub redirects to: codex://oauth_callback?code=...
  7. Codex displays an error window instead of completing authentication.

The same problem can be reproduced by manually running:

codex://test

or

Start-Process "codex://test"

The application opens normally, but protocol callbacks fail.

What is the expected behavior?

After GitHub authentication is completed, Codex should receive the OAuth callback through the codex:// protocol and successfully connect the GitHub account.

Running codex://test should also be handled correctly by the application without generating any error.

Additional information

Environment:

  • Windows 11 x64
  • Codex version: 26.527.3686.0
  • Installed from Microsoft Store
  • ChatGPT Plus subscription

Additional diagnostics performed:

  • Reinstalled Codex
  • Rebooted Windows
  • Tested with Google Chrome
  • Tested with Microsoft Edge
  • GitHub authentication succeeds in browser
  • Failure occurs only during codex:// protocol handling

Observed error:

Error launching app

Unable to find Electron app

Cannot find module

The issue appears to be related to handling of the custom protocol (codex://) or OAuth callback registration.

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 GitHub OAuth callback fails with "Unable to find Electron app" on Windows