Codex Desktop Windows: connector OAuth "Open in Codex" opens Electron error instead of completing callback
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.xmlregisters thecodexprotocol with executableapp/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?
- Open Codex Desktop on Windows.
- Start connecting a connector or plugin that uses browser OAuth, such as the OpenAI Developer plugin or Supabase connector.
- Complete the browser login flow.
- Click "Open in Codex" in the browser.
- 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 appError launching appoauth_callbackOpen in Codex
<img width="558" height="209" alt="Image" src="https://github.com/user-attachments/assets/a531ea80-39de-45ec-9675-adf36c659fdc" />
codex://protocol handlerSupabase connector OAuthOpenAI 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.
34 Comments
I’m seeing the same issue.
Codex App version: 26.527.3686.0
Codex CLI version: 0.98.0
Subscription: ChatGPT Pro
Platform: Windows
Affected OAuth flows:
Error after browser authorization:
Error launching app
Unable to find Electron app at C:\Program
...\oauth_callback?state=codex_scheme_oauth_s_...
Cannot find module 'C:\Program
...\oauth_callback?state=codex_scheme_oauth_s_...'
Troubleshooting tried:
Supabase workaround:
Supabase MCP works only when bypassing OAuth with a bearer token via SUPABASE_ACCESS_TOKEN. Google Drive still fails because OAuth is required.
This took substantial troubleshooting to isolate, and it blocks connecting any OAuth-based plugin/connector on Windows.
I’m seeing the same connector OAuth callback failure on Windows, with OpenAI Developers / OpenAI Platform.
Environment:
OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0ChromeHTML)openai-developersversion1.1.0openai-platform)What works:
What fails:
Error dialog, with OAuth code redacted:
Additional local check:
codex:protocol registration exists and points to the Codex MSIX AppX protocol handler (OpenAI.Codex_2p2nqsd0c76g0!App,ContractId=Windows.Protocol).This looks like the plugin is installed correctly, but the OpenAI Platform connector OAuth callback is not being delivered back to the Codex Windows desktop app correctly.
Correction to my previous environment details: I initially reported the Windows/AppX package versions from PowerShell, but the user-visible versions are different.
Correct user-visible versions:
26.527.3132626200.8457Additional note:
OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0, which is why my earlier comment included26.527.3686.0.WindowsProductNameas “Windows 10 Pro for Workstations” whileOsNamereports “Microsoft Windows 11 专业工作站版”. The user-visible Windows Settings value is Windows 11 Pro for Workstations, so that should be treated as the correct environment label.I have the exact same issue with Codex about dialog 26.527.31326
Windows 11 Pro 25H2 26200.8457
Same root cause here with the Figma connector / "Figma MCP in ChatGPT" OAuth flow on Windows, so this is not limited to GitHub/Supabase/OpenAI Platform.
Environment:
OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g026200.8524Repro:
codex://oauth_callback?....Observed error:
Additional note:
Reset-AppxPackagedid not resolve it.This looks like the same Windows protocol/deep-link handling bug affecting another OAuth-based connector.
Additional Windows/Supabase repro from another Codex Desktop install.
Environment:
OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0codex-cli 0.135.0-alpha.1Observed behavior:
Error launching appUnable to find Electron app at C:\Program Files\WindowsApps\OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0\app\...?...state=codex_scheme...Cannot find module ...400: Server returned 400: "We couldn't connect your account. Please try again."Local diagnostics:
AppxManifest.xmlregisters<uap:Protocol Name="codex" />withExecutable="app/Codex.exe".codextoAppXybfp6cjpb1wf0pftw0fd4bz59gzn1401withContractId=Windows.ProtocolandPackageRelativeExecutable=app\Codex.exe.HKCU\Software\Classes\codexexists withURL Protocol, but noShell\open\commandchild key.Workaround:
codex://protocol/OAuth callback handling is fixed.No OAuth codes, auth IDs, project refs, tokens, or org names included here.
Additional repro from another Windows desktop install. This is still failing for plugin/connector authorization.
Environment:
OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g00.135.0Windows 10 Pro, DisplayVersion25H2, build26200.8457, 64-bitObserved behavior:
codex://connector/oauth_callback?...URL.Error launching appUnable to find Electron app at C:\Program ...\oauth_callback?code=...Cannot find module 'C:\Program ...\oauth_callback?code=...'Process evidence, with OAuth values redacted:
This looks like AppX protocol activation is passing the URL as a positional argument to Electron, and Electron then treats it as the app path/module instead of forwarding it to the running Codex app as a protocol callback.
Registry/AppX observations:
I also tested a local workaround by adding a per-user
shell\open\commandvalue like:Windows still launched the AppX protocol handler as
Codex.exe codex://connector/oauth_callback?...without the--separator, so that registry override does not appear to be sufficient for this MSIX/AppX install path. I reverted that local registry change afterward.Expected behavior:
codex://connector/oauth_callback?...activation and complete connector authorization.+1
+1
I approached this today. This plus info that my session was expired.
I logged into codex with new session and then I encountered that bug with Electron.
I wanted to check if chatgpt.com in the browser also makes problems - went there and had another info about expired session.
So I relogged in chatgpt.com account.
When I went back to codex app it was fine.
Summary: Guys, please logout and login in both places: online website and codex login flow.
Same here!
Windows 11, WSL environment configured.
Using supabase plugin.
Same here!
Same here
perdí medio día intentando resolver este problema
same here, any ETA to be fixed?
Same here
+1
igual
I can still reproduce this on a newer Windows Codex build.
Environment:
OpenAI.Codex_26.527.7698.0_x64__2p2nqsd0c76g010.0.26200.0x64Repro:
codex://oauth_callback?..., Windows opens the Electron error dialog instead of completing the connection.Observed error:
Local checks / attempted fixes:
codexand maps toOpenAI.Codex_2p2nqsd0c76g0!App/Windows.Protocol.HKCU\Software\Classes\codexstub that only hadURL Protocoland noshell\open\command.codex://handler using the AppXDelegateExecuteentry for the current package (OpenAI.Codex_26.527.7698.0_x64__2p2nqsd0c76g0).Result: the same Electron dialog still appears. This still appears to be the Windows Codex Desktop deep-link / protocol activation path treating the
codex://oauth_callbackURL as an Electron app/module path.Did you gry also refreshing the session going on web to chatgpt.com like I said?
I can reproduce what appears to be the same Windows Codex Desktop OAuth/deep-link callback failure.
Scenario
Error shown
Expected behavior
Codex should receive the
codex://oauth_callback?...deep link and complete the connector authorization.Actual behavior
The callback/deep link appears to be interpreted as an Electron app/module path, causing Electron to try to load a non-existent path under
C:\Program ...and fail.I’m not attaching the screenshot because the OAuth callback URL contains sensitive
state/callback parameters, but the dialog matches the error described in this issue.I’m seeing the same issue on Windows. The OAuth callback opens an Electron error dialog saying it is unable to find the Electron app at the oauth_callback URL.
Same issue on OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0
Windows 11 Pro 10.0.26200
Reproduces with the Notion connector / Notion MCP OAuth flow.
After completing browser auth, Codex launches with a codex://connector/oauth_callback/... URL, but Electron shows:
Error launching app
Unable to find Electron app at C:\Program ... oauth_callback?code=[REDACTED]
Cannot find module 'C:\Program ... oauth_callback?code=[REDACTED]'
I confirmed via Win32_Process that Codex.exe receives the codex://connector/oauth_callback/... argument, so Windows protocol dispatch appears to reach Codex, but the app treats the callback URL as an Electron app path.
I reproduced this on Windows with Codex App 26.527.7698.0.
Error:
Unable to find Electron app at:
C:\Program Files\WindowsApps\OpenAI.Codex_26.527.7698.0_x64__2p2nqsd0c76g0\app\codex:
Context:
Workaround that fixed it:
Set both protocol handlers to launch Electron with app.asar first:
HKCU\Software\Classes\codex\shell\open\command
HKCU\Software\Classes\AppXybfp6cjpb1wf0pftw0fd4bz59gzn1401\Shell\open\command
Value:
"C:\Program Files\WindowsApps\OpenAI.Codex_26.527.7698.0_x64__2p2nqsd0c76g0\app\Codex.exe" "C:\Program Files\WindowsApps\OpenAI.Codex_26.527.7698.0_x64__2p2nqsd0c76g0\app\resources\app.asar" "%1"
+1. pls fix as soon as possible
Facing similar issues, please fix soon +2
Below is generated by ChatGPT to summarise how it solved the issue for me.
---
Workaround that fixed Notion OAuth login for me (Windows, Codex 26.527.7698.0)
I was getting the following error when trying to connect Notion:
After authorising Notion in the browser, the callback back to Codex would fail.
What I found
The
codex://protocol handler appeared to be registered, but the command used to launch Codex was missing/broken.Checking:
either returned an error or showed that the command was not configured correctly.
I also found that:
had no default command set.
Fix that worked for me
I manually created/updated the protocol handler so that
codex://URLs launch Codex with the correct Electron app path.After setting the command to:
the OAuth callback started working and Notion connected successfully.
Notes
codex://callbacks and Notion authentication worked immediately.Cant connect Google Drive, same Error
Codex Windows app version: 26.527.7698.0
Windows: Windows 11
Repro:
Unable to find Electron app at C:\Program Files\WindowsApps\OpenAI.Codex_26.527.7698.0_x64__2p2nqsd0c76g0\app\codex:\new
Cannot find module ...
same problem
I also saw a related notification/action callback variant:
Root cause observed locally
The
codex://protocol and Codex AppX launcher classes existed, but Windows was launchingCodex.exein a way that made Electron treat the callback URL/action argument as the app/module path.The workaround that fixed it was to launch Codex with
app.asarfirst, then pass the callback URL as%1:For my install, I had to patch all three HKCU handlers:
I also had to remove the AppX activation metadata from the two
AppX...classes, especiallyDelegateExecute, otherwise Windows kept using the packaged/broken activation path.PowerShell workaround
Run this as the affected Windows user. Admin is usually not required for
HKCU, but may be needed if Windows denies a protected package key.GUYS!!! OPENAI!!! I'm paying $100 bucks a month for this f***ing thing and I haven't been able to connect to GitHub yet. How about an update? How about pausing our subscription charge until you get the thing working that many of us are paying $100 - $200 a month for, and communicating with us as to when you think you might have this fixed? WTF is wrong with corporations these days.
you can do it in web browser based ChatGPT as workaround :(
HEY! That seemed to work!!! I got GitHub, Gmail, and Google Drive all connected. THANK YOU!!!! I gotta admit I'm still kinda pissed at OpenAI for their stony silence on what seems like a very critical issue, but at least I can move forward with my project now! Wish I could buy you a beer!
Same here, when can it be fixed in windows system?