You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows Codex app deep link / OAuth callback fails: "Unable to find Electron app" #25188
What version of the Codex App are you using (From “About Codex” dialog)?
26.527.3686.0
What subscription do you have?
Pro
What platform is your computer?
Windows
What issue are you seeing?
Description:
On Windows, Codex desktop app opens and Codex CLI works, but browser OAuth callbacks fail when signing in or connecting the Figma MCP plugin.
What happens:
Browser login succeeds and shows localhost:1455/success
I'm seeing the same Windows/AppX deep-link failure on Codex App 26.527.3686.0, with a separate reproduction path from Linear's "Open in -> Codex desktop" integration.
codex://new?prompt=...&path=C%3A%5CUsers%5Ckukha%5CDesktop%5Csaiden.ai also fails the same way.
Directly starting the packaged app with a project path / --open-project produced the same class of error, where Electron treated C:\Users\kukha\Desktop\saiden.ai as the Electron app path/module.
Extracting the app bundle showed code paths that appear to parse codex://new?... and path, so this looks like the Windows/AppX/Electron activation path is passing the URL/path to Electron before the app's own deep-link parser can handle it.
Impact:
Linear's Codex Desktop integration can't create/open a desktop thread on Windows. We had to fall back to a workaround that opens Codex Desktop without args and copies the Linear prompt to the clipboard.
This is especially relevant for teams running the desktop app on Windows now and migrating agent execution into WSL later: the failure happens before workspace runtime choice matters, so WSL doesn't avoid it.
I’m seeing the same Windows OAuth/deep-link failure when connecting Codex marketplace plugins/connectors.
Environment:
Windows 11
Codex Windows app: OpenAI.Codex_26.527.7698.0_x64__2p2nqsd0c76g0
ChatGPT Windows app: OpenAI.ChatGPT-Desktop_1.2026.133.0_x64__2p2nqsd0c76g0
Browser: Chrome
Repro:
Install a plugin from the Codex plugin marketplace.
Try to connect/authorize a provider.
Browser authorization succeeds and attempts to return via a desktop deep link.
Windows launches the desktop app, but Electron shows:
Error launching app
Unable to find Electron app at C:\Program ...\oauth_callback?code=...
Cannot find module 'C:\Program ...\oauth_callback?code=...'
Providers reproduced:
Slack plugin/connect flow
Convex plugin/connect flow
OpenAI Developers plugin/connect flow
What I tried locally:
Re-registered the Codex AppX package with Add-AppxPackage -DisableDevelopmentMode -Register ...\OpenAI.Codex...\AppxManifest.xml
Installed ChatGPT from Microsoft Store via winget install --id=9NT1R1C2HH7J --source=msstore
Re-registered the ChatGPT AppX package with Add-AppxPackage -DisableDevelopmentMode -Register ...\OpenAI.ChatGPT-Desktop...\AppxManifest.xml
Verified chatgpt:// is registered under HKEY_CLASSES_ROOT\chatgpt
Verified ChatGPT’s AppX handler exists as AppX3tncadb9jesbf7n7rdjbat6deztktxgp
Rebooted and retried from a fresh plugin connection flow
Result: still fails the same way. The desktop app receives chatgpt://oauth_callback?... / OAuth callback handoff, but Electron appears to treat the callback URL/path as the app path instead of passing it into the running app.
One additional detail: this only fixes the normal codex:// protocol path. Clicking Codex notifications from the Windows notification center still throws the same Electron error for me.
That remaining failure appears to bypass the codex:// shell command and activate the packaged app through the MSIX AppUserModelID/package metadata instead, e.g.:
So the workaround is useful for connector/plugin OAuth, but the long-term product fix likely needs to cover every Windows activation path, including toast notification activation, not only the codex:// URL association.
Extracting app.asar showed Codex has code that scans process.argv for codex://... and maps connector/oauth_callback into a connector OAuth callback route, but the cold-start Electron/Owl path appears to interpret the URL as an app path before that handler succeeds.
A local registry experiment that launches the same executable with -- "%1" changed the process command line to:
Expected:
The existing/running Codex Desktop app should receive codex://connector/oauth_callback?... and complete connector OAuth.
Actual:
The Store/MSIX Windows desktop app opens a new Electron error dialog and treats the callback URL/path as an Electron app module path, so Figma MCP desktop authorization cannot complete.
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
sined-rahkuk commentedon May 30, 2026
I'm seeing the same Windows/AppX deep-link failure on Codex App 26.527.3686.0, with a separate reproduction path from Linear's "Open in -> Codex desktop" integration.
Environment:
"C:\Users\kukha\AppData\Local\Programs\Linear\Linear.exe" "%1"Repro from Linear:
Error launching appUnable to find Electron app at C:\Program ...?prompt=Work%20on%20Linear%20issue...Cannot find module 'C:\Program ...?prompt=Work%20on%20Linear%20issue...'Additional local checks:
codex://new?prompt=...&path=C%3A%5CUsers%5Ckukha%5CDesktop%5Csaiden.aialso fails the same way.--open-projectproduced the same class of error, where Electron treatedC:\Users\kukha\Desktop\saiden.aias the Electron app path/module.codex://new?...andpath, so this looks like the Windows/AppX/Electron activation path is passing the URL/path to Electron before the app's own deep-link parser can handle it.Impact:
Linear's Codex Desktop integration can't create/open a desktop thread on Windows. We had to fall back to a workaround that opens Codex Desktop without args and copies the Linear prompt to the clipboard.
This is especially relevant for teams running the desktop app on Windows now and migrating agent execution into WSL later: the failure happens before workspace runtime choice matters, so WSL doesn't avoid it.
marlonka commentedon Jun 1, 2026
I can reproduce this with Gmail connector OAuth on Windows.
Additional confirmation:
C:\Program Files\WindowsApps...\oauth_callback?state=...
This blocks plugin/connector OAuth setup, including Gmail.
Mylesoft commentedon Jun 2, 2026
I’m seeing the same Windows OAuth/deep-link failure when connecting Codex marketplace plugins/connectors.
Environment:
OpenAI.Codex_26.527.7698.0_x64__2p2nqsd0c76g0OpenAI.ChatGPT-Desktop_1.2026.133.0_x64__2p2nqsd0c76g0Repro:
Providers reproduced:
What I tried locally:
Add-AppxPackage -DisableDevelopmentMode -Register ...\OpenAI.Codex...\AppxManifest.xmlwinget install --id=9NT1R1C2HH7J --source=msstoreAdd-AppxPackage -DisableDevelopmentMode -Register ...\OpenAI.ChatGPT-Desktop...\AppxManifest.xmlchatgpt://is registered underHKEY_CLASSES_ROOT\chatgptAppX3tncadb9jesbf7n7rdjbat6deztktxgpResult: still fails the same way. The desktop app receives
chatgpt://oauth_callback?.../ OAuth callback handoff, but Electron appears to treat the callback URL/path as the app path instead of passing it into the running app.tugkan98 commentedon Jun 2, 2026
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 the protocol handler to launch Electron with app.asar first, then the callback URL:
"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"
Darin19 commentedon Jun 2, 2026
same error for Chrome plugin 😢
stephantamminga commentedon Jun 2, 2026
Also in 26.527.60818
Partial fix script below. Plugins work, but still throws the error when Codex notifications are clicked in the Windows notification bar:
Stropical commentedon Jun 2, 2026
This fix worked for me on Win11 attempting to install Linear plugin. Thank you!
marlonka commentedon Jun 3, 2026
Confirming the workaround posted above also fixes connector/plugin OAuth callbacks on my machine.
Tested with:
The key part is the same as already reported: the protocol handler needs to launch Electron with
resources/app.asarbefore the deep-link argument:One additional detail: this only fixes the normal
codex://protocol path. Clicking Codex notifications from the Windows notification center still throws the same Electron error for me.That remaining failure appears to bypass the
codex://shell command and activate the packaged app through the MSIX AppUserModelID/package metadata instead, e.g.:So the notification path still seems to launch something equivalent to:
instead of:
So the workaround is useful for connector/plugin OAuth, but the long-term product fix likely needs to cover every Windows activation path, including toast notification activation, not only the
codex://URL association.stephantamminga commentedon Jun 3, 2026
I'm getting reports of the issue being solved in 26.601.21317
dvdxfv commentedon Jun 4, 2026
Additional repro/evidence from another Windows machine, specifically with Figma remote MCP OAuth.
Environment:
OpenAI.Codex_26.527.7698.0_x64__2p2nqsd0c76g0C:\Program Files\WindowsApps\OpenAI.Codex_26.527.7698.0_x64__2p2nqsd0c76g0\app\Codex.exehttps://mcp.figma.com/mcpRepro:
Agree & Allow Access.codex://connector/oauth_callback?code=...&state=codex_scheme_oauth....Observed dialog:
Local investigation:
codexprotocol.AppXybfp6cjpb1wf0pftw0fd4bz59gzn1401.app.asarshowed Codex has code that scansprocess.argvforcodex://...and mapsconnector/oauth_callbackinto a connector OAuth callback route, but the cold-start Electron/Owl path appears to interpret the URL as an app path before that handler succeeds.-- "%1"changed the process command line to:--/ activation argument handling is part of the failure mode.Workaround validated:
codex://desktop callback.codex mcp listshowed:Expected:
The existing/running Codex Desktop app should receive
codex://connector/oauth_callback?...and complete connector OAuth.Actual:
The Store/MSIX Windows desktop app opens a new Electron error dialog and treats the callback URL/path as an Electron app module path, so Figma MCP desktop authorization cannot complete.