GitHub OAuth callback fails with "Unable to find Electron app" on Windows
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
<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:
- 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.
37 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
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.
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.
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.
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
<img width="556" height="211" alt="Image" src="https://github.com/user-attachments/assets/cb3d50b9-8cdf-4418-8c5d-1e745c4276ab" />
I get the error random and it is not OAUTH.
<img width="554" height="204" alt="Image" src="https://github.com/user-attachments/assets/84b08f11-39f8-4206-91a4-c2ac49de314f" />
<img width="672" height="170" alt="Image" src="https://github.com/user-attachments/assets/4ec9e9ac-11c1-4f09-81b7-e7d5231bb62a" />
same issue when trying to pair my github account to windows codex.
Same error
<img width="584" height="234" alt="Image" src="https://github.com/user-attachments/assets/3d98cbda-3b2a-4bc5-832a-20e941631472" />
Same error
<img width="418" height="166" alt="Image" src="https://github.com/user-attachments/assets/e4c65ff7-4b24-4c4a-9aac-d6dc80bb8a30" />
<img width="558" height="221" alt="Image" src="https://github.com/user-attachments/assets/ee89c2b1-eff0-434a-a636-0fadc5d7b63b" />
I reproduced the same result on Windows 11, but so far I haven't noticed any functional impact.
<img width="938" height="388" alt="Image" src="https://github.com/user-attachments/assets/398771c3-1b9d-4fe9-955f-7ba029f9c6c6" />
I’m also seeing this on Windows 10, Codex 26.5
<img width="695" height="236" alt="Image" src="https://github.com/user-attachments/assets/5e6661fd-b78d-4d97-8fa2-a2889744a451" />
27.3686.0.
Clicking desktop notifications opens the same
type=click&tag=...Electron error dialog.Dealing with the same issue, have followed all noted steps as everyone above and receive the same identical errors. Windows 11 25H2 26200.8457
Follow-up diagnostics from my Windows 10 machine after reproducing the Gmail connector OAuth failure.
Environment observed locally:
19045OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0OkThe packaged
codex:protocol registration appears to exist and be internally consistent:I also found
HKCU\\Software\\Classes\\codexcontaining only theURL Protocolvalue. I tried both of these paths:codex\\shell\\open\\commandhandler pointing to the installedCodex.exewith"%1". The callback still failed with the same Electron module-path error. I removed the manual override afterward.Since both the packaged AppX handler and an explicit executable-plus-URL handler produce the same result, this does not look like a browser-specific problem or a simple missing Windows URL association. It appears to fail after external activation reaches Codex, likely in the Windows/Electron startup or deep-link argument handling path.
Practical impact: Gmail connector authorization cannot complete on this machine.
I added a small evidence packer for this deeplink/OAuth/notification activation class in
trace-to-skill@0.1.62:It is not a fix; it just helps reports include the fields that seem useful here: exact redacted
codex://...URI, connector/plugin, browser, error dialog text, whether Codex was already running, AppX/MSIX protocol registration (AppUserModelID,DelegateExecute, HKCU/HKCRcodexkeys), package path, command-line args,Start-Process "codex://test"repro, notificationtype=click&tagrepro, and repair/reinstall/re-register attempts.Release: https://github.com/grnbtqdbyx-create/trace-to-skill/releases/tag/v0.1.62
<img width="547" height="198" alt="Image" src="https://github.com/user-attachments/assets/36aa640f-c452-47fe-8b1a-6eecb7fa5c4e" />
I’m also seeing this on Windows 11
<img width="696" height="274" alt="Image" src="https://github.com/user-attachments/assets/852d8360-860f-4453-b8ba-f39e8d3e154a" />
<img width="560" height="214" alt="Image" src="https://github.com/user-attachments/assets/100f5c22-4305-41d5-907e-947d1f667c98" />
I can confirm the same issue on Windows with the Microsoft Store/MSIX Codex app.
Environment:
C:\Program Files\WindowsApps\OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0\...26.527.3686.0Independent repro without GitHub/OAuth:
Actual result:
This confirms the failure is not specific to GitHub, Supabase, Figma, browser choice, or any individual plugin. The bare
codex://testprotocol URL is being interpreted as an Electron app/module path instead of being passed to the running Codex app as a protocol/deep-link event.So any connector flow that returns through
codex://oauth_callback?code=...fails at the final callback step, even though the browser-side authorization succeeds.Additional diagnostic information to rule out a custom/non-default install path issue:
Output:
This shows Codex is installed in the normal Microsoft Store/MSIX
WindowsAppslocation, not a custom install path.I also checked the traditional Win32-style protocol handler registry keys:
These did not return output, which may be expected for an MSIX/AppX protocol registration. However,
Start-Process "codex://test"does launch Codex/Electron and then fails by treating the deep-link segment as a module/app path. So the protocol is reaching the Codex app, but the deep-link argument is being handled incorrectly.<img width="551" height="206" alt="Image" src="https://github.com/user-attachments/assets/be6013d8-b70b-4ec4-af8f-e0efe8b21030" />
I can reproduce this on Windows with Codex Desktop
26.527.3686.0.Additional diagnostics:
OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0Get-AppxPackage -Name OpenAI.CodexreportsStatus: OkStart-Process "codex://test"still opens an Electron error dialog:Error launching appUnable to find Electron app at ...\app\c...\testCannot find module ...\app\c...\testtype=click&tag=...being interpreted as an Electron app pathThis suggests the app can handle the
codex://argument whenapp.asaris supplied explicitly, but the Windows MSIX/AppX protocol activation path launchesCodex.exewithout the correct Electron app entrypoint, causing Electron to treat the protocol payload as the app path.Already tried:
Add-AppxPackage -Register ...AppxManifest.xmlAdd-AppxPackage -RegisterByFamilyName -MainPackage "OpenAI.Codex_2p2nqsd0c76g0" -ForceApplicationShutdownHKCU\Software\Classes\codexoverrideThe issue persists after reboot.
same
<img width="834" height="329" alt="Image" src="https://github.com/user-attachments/assets/35e04c07-6655-40b2-a0d8-ee5c02dc1683" />
🛠️ Current Workarounds & Suggestions
Since this is a bug in the core startup logic of the application, standard system-level troubleshooting will not resolve it.
Other users in this thread have already tested these, so you can save yourself some time and effort. The following actions DO NOT fix the issue:
Uninstalling and reinstalling the Codex app.
"Repairing" or "Resetting" the app via Windows Settings.
Restarting the computer.
Changing the default browser (the failure occurs with both Chrome and Edge).
Modifying the Windows Registry (URL protocol associations).
Use the Web Version: Until an official fix is released, it is highly recommended to temporarily use the web version in your browser. The web version's OAuth authorization flow does not rely on the local client's deep-link wakeup mechanism, allowing you to successfully connect and use third-party plugins like GitHub without issues.
Wait for a Microsoft Store Update: This is a packaging issue that can only be resolved by an official update. Keep an eye on the Microsoft Store for a new version of the Codex (or OpenAI) client (specifically, a version higher than the current 26.527.3686.0).
Monitor this Issue: You can click the "Subscribe" button on the right side of this GitHub page. This way, you'll be notified immediately if official maintainers intervene or if someone provides a viable temporary script.
=======================================
My solution → 2. Temporary Workaround:
On the application page of the web version of ChatGPT (which is the link to the LLM chat interface and has launched the application), I successfully performed the authorization operation for my ChatGPT account and Gmail. Then, as long as I install the plugin on Codex, I can use it normally.
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:
Will the beta version released today solve the problem?
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?
Has anyone tried it with the beta version yet? I'm too lazy to install it and then have to delete it.
I am experiencing this exact issue when I try to connect plugins
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.
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:
```HKCU\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\codex\UserChoice
ProgId REG_SZ AppXybfp6cjpb1wf0pftw0fd4bz59gzn1401
"C:\Program Files\WindowsApps\OpenAI.Codex_26.527.7698.0_x64__2p2nqsd0c76g0\app\Codex.exe" codex://connector/oauth_callback?code=REDACTED&state=REDACTED
Error launching app
Unable to find Electron app at:
...\oauth_callback?code=...
Cannot find module:
...\oauth_callback?code=...
Get-AppxPackage -Name OpenAI.Codex | Reset-AppxPackage
Add-AppxPackage -DisableDevelopmentMode -Register "C:\Program Files\WindowsApps\OpenAI.Codex_26.527.7698.0_x64__2p2nqsd0c76g0\AppxManifest.xml"
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\...Hi everyone, I've updated to the new version, and this issue seems to have been resolved!
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.
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.I'm able to use
codex://on Codex 26.601.21317 now.