Windows Codex app deep link / OAuth callback fails: "Unable to find Electron app"
Open 💬 11 comments Opened May 30, 2026 by dnl2052
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
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
- Browser/Windows tries to open Codex
- Error appears: "Unable to find Electron app"
- Error path references:
C:\Program Files\WindowsApps\OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0\app\codex\...\new
- Same issue happens when connecting Figma MCP in Codex Plugins.
Environment:
- Windows
- Codex App version: 26.527.3686.0
- Codex CLI version: 0.135.0
- Browser: Microsoft Edge
- Package:
OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0
Already tried:
- Reset Codex app from Windows settings
- Restarted Windows
- Get-AppxPackage OpenAI.Codex | Reset-AppxPackage
- Logged out/in
- Installed Codex CLI
- Figma plugin authorization reaches browser but callback back to Codex fails
Expected:
Browser OAuth/deep link should return to the Codex desktop app and finish login/plugin setup.
What steps can reproduce the bug?
Feedback ID: no-active-thread-019e764f-97a0-7920-86ba-64c17e9675cb
What is the expected behavior?
_No response_
Additional information
_No response_
11 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
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.
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.
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.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"
same error for Chrome plugin 😢
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:
This fix worked for me on Win11 attempting to install Linear plugin. Thank you!
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.I'm getting reports of the issue being solved in 26.601.21317
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.``
text
``Codex.exe codex://connector/oauth_callback?code=...&state=...
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:``
text
`Codex.exe -- "codex://diagnostic-appx-progid-double-dash/"
--` / activation argument handling is part of the failure mode.which suggests the missing
Workaround validated:
codex://desktop callback.``
bash
``codex mcp add figma --url https://mcp.figma.com/mcp
codex mcp listshowed:``
text
``figma https://mcp.figma.com/mcp enabled OAuth
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.