Repository navigation
GitHub OAuth callback fails with "Unable to find Electron app" on Windows #25203
Description
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:
- Open Codex desktop app.
- Go to Plugins > GitHub.
- Click Connect.
- Complete GitHub authentication in the browser.
- GitHub redirects to codex://oauth_callback.
- 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
What steps can reproduce the bug?
Feedback ID: no-active-thread-019e76c2-c9d9-73c3-8dc9-0373dd4efb89
Steps to reproduce:
- Open Codex Desktop App on Windows 11.
- Go to Plugins > GitHub.
- Click "Connect".
- Browser opens GitHub authentication page.
- Complete GitHub login and authorization.
- GitHub redirects to:
codex://oauth_callback?code=... - 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.
Activity
github-actions commentedon May 30, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Tjnmelo commentedon May 30, 2026
I can confirm this is the same issue.
Environment:
Affected flow:
I reproduced the same behavior:
I also confirmed that running:
codex://test
produces the same error.
LizhToGo commentedon May 30, 2026
I can confirm this is the same root cause, with an action-style Codex deep link rather than only toast/OAuth.
Environment:
OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0Repro:
Also reproduces with:
Actual result:
Electron shows "Error launching app" and tries to load the deep-link query string as part of the app path, e.g.:
Troubleshooting tried:
Still reproduces. This looks like the same Windows external activation/protocol handling issue as this thread and related notification/OAuth reports.
lincolnkerry commentedon May 30, 2026
I can reproduce the same issue on Windows 11 with Codex 26.527.3686.0.
Affected connectors:
OAuth completes in the browser, but the codex://oauth_callback deep link opens an Electron error:
"Error launching app"
"Unable to find Electron app at C:\Program ... \oauth_callback?code=..."
"Cannot find module ..."
Reinstalling Codex did not resolve it.
lnorton89 commentedon May 30, 2026
Also encountered this behavior when trying to give access to gmail/netlify plugins via chrome.
Codex Version: 26.527.31326
OS: Windows 10 Pro 22H2 19045.6466
neusse commentedon May 30, 2026
I get the error random and it is not OAUTH.
yummytummy1337-cell commentedon May 31, 2026
same issue when trying to pair my github account to windows codex.
cloudorcl-lab commentedon May 31, 2026
Same error
hsqwq commentedon May 31, 2026
Same error

Life-Cai commentedon May 31, 2026
wangskyone commentedon May 31, 2026
I reproduced the same result on Windows 11, but so far I haven't noticed any functional impact.
14 remaining items
sczwly commentedon Jun 1, 2026
Codex Windows Store version: 26.527.3686.0
OS: Windows 10 10.0.19045.6456 x64
Package: OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0
Issue:
GitHub and Gmail plugin OAuth both fail after browser authorization.
Windows protocol settings show CODEX / URL:codex -> Codex.
But Win + R -> codex://test opens an Electron error dialog:
Unable to find Electron app at:
C:\Program Files\WindowsApps\OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0\app\c...\test
Cannot find module:
C:\Program Files\WindowsApps\OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0\app\c...\test
Registry:
reg query HKEY_CLASSES_ROOT\codex /s
Output:
HKEY_CLASSES_ROOT\codex
URL Protocol REG_SZ
(默认) REG_SZ URL:codex
Repro steps:
EATZULU commentedon Jun 1, 2026
Will the beta version released today solve the problem?
sczwly commentedon Jun 2, 2026
Not sure yet. The issue still reproduces on Windows Store version 26.527.3686.0.
If today’s beta contains a fix for Windows protocol activation / codex:// OAuth callbacks, it should be easy to verify:
Could you share the beta version number or confirm whether codex://test works on it?
willycotes commentedon Jun 2, 2026
Has anyone tried it with the beta version yet? I'm too lazy to install it and then have to delete it.
marco-acevedo-official commentedon Jun 2, 2026
I am experiencing this exact issue when I try to connect plugins
VincentVonk commentedon Jun 2, 2026
I can also reproduce this on Codex 26.527.60818, Windows 11 24H2 build 26100.8457, ChatGPT Plus.
Same behavior:
Repair/reset/reinstall and manually adding HKEY_CLASSES_ROOT\codex\shell\open\command did not resolve it.
ToshyroLFFF commentedon Jun 2, 2026
codex-oauth-callback-bug-redacted.zip
I’m seeing the same issue on Windows while connecting Microsoft Teams / Outlook connectors, not GitHub.
Codex Desktop package:
Protocol association:
The OAuth callback is launched correctly by Windows:
But Codex shows:
This reproduces after:
It looks like the Windows protocol handler invokes the right executable, but the Codex/Electron bootstrap treats the codex://connector/oauth_callback?... argument as an Electron app/module path instead of routing it as an OAuth callback.
pkworng commentedon Jun 3, 2026
I’m seeing the same Windows GitHub OAuth callback failure on a newer Codex build, so this appears to still be reproducible after May 30, 2026.
Environment:
Observed behavior:
codex://oauth_callback?...triggers the Electron error dialogUnable to find Electron app/Cannot find moduleLocal diagnostics:
AppxManifest.xmlregisters thecodexprotocol toapp/Codex.exe%LOCALAPPDATA%\OpenAI\Codex\bin\...certainly-cyber commentedon Jun 3, 2026
Hi everyone, I've updated to the new version, and this issue seems to have been resolved!
lnorton89 commentedon Jun 3, 2026
Yeah I'm discontinuing my subscription, I'm done subsidizing OpenAI while they give zero effort into their bug tracker. The users come together, provide info on these bugs and there's zero collaboration from OpenAI. Get fucked, lick my balls and suck my dick--bitch.
UPmeme commentedon Jun 3, 2026
I’m seeing the same OAuth callback failure on Windows with the Gmail plugin.
Environment:
Repro steps:
codex://oauth_callback?..., Codex shows an Electron launch error instead of completing the connector authorization.Observed error:
Additional diagnostics / attempted fixes:
Add-AppxPackage -Register -DisableDevelopmentMode ...\AppxManifest.xmlafter fully closing Codex.codexprotocol.codex:underHKCU\Software\Classes\codex, but launching the callback still caused Electron to treatoauth_callback?...as an app path, so the manual association was removed.This seems to match the existing
codex://oauth_callbackhandling issue, but in this case it is blocking Gmail connector authorization rather than GitHub.DevDengChao commentedon Jun 3, 2026
I'm able to use
codex://on Codex 26.601.21317 now.lnorton89 commentedon Aug 6, 2026
Nice, good to hear three months later you joker.