Skip to content

GitHub OAuth callback fails with "Unable to find Electron app" on Windows #25203

Closed as duplicate

Description

@Tjnmelo

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:

  1. Open Codex desktop app.
  2. Go to Plugins > GitHub.
  3. Click Connect.
  4. Complete GitHub authentication in the browser.
  5. GitHub redirects to codex://oauth_callback.
  6. 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

Image

What steps can reproduce the bug?

Feedback ID: no-active-thread-019e76c2-c9d9-73c3-8dc9-0373dd4efb89

Steps to reproduce:

  1. Open Codex Desktop App on Windows 11.
  2. Go to Plugins > GitHub.
  3. Click "Connect".
  4. Browser opens GitHub authentication page.
  5. Complete GitHub login and authorization.
  6. GitHub redirects to:
    codex://oauth_callback?code=...
  7. 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

  1. added
    appIssues related to the Codex desktop app
    on May 30, 2026
  2. added
    bugSomething isn't working
    windows-osIssues related to Codex on Windows systems
    authIssues related to authentication and accounts
    on May 30, 2026
  3. Tjnmelo commented on May 30, 2026

    @Tjnmelo
    Author

    I can confirm this is the same issue.

    Environment:

    • Windows 11 x64
    • Codex 26.527.3686.0
    • ChatGPT Plus

    Affected flow:

    • GitHub OAuth

    I reproduced the same behavior:

    • GitHub authentication succeeds in browser
    • codex://oauth_callback fails
    • "Unable to find Electron app"
    • "Cannot find module"

    I also confirmed that running:

    codex://test

    produces the same error.

  4. LizhToGo commented on May 30, 2026

    @LizhToGo

    I can confirm this is the same root cause, with an action-style Codex deep link rather than only toast/OAuth.

    Environment:

    • Windows x64
    • Codex package: OpenAI.Codex_26.527.3686.0_x64__2p2nqsd0c76g0

    Repro:

    Start-Process 'codex:?type=action&action=0&tag=test'

    Also reproduces with:

    Start-Process 'codex://?type=action&action=0&tag=test'

    Actual result:
    Electron shows "Error launching app" and tries to load the deep-link query string as part of the app path, e.g.:

    C:\Program Files\WindowsApps\OpenAI.Codex_...\?type=action&action=0&tag=test
    

    Troubleshooting tried:

    • Windows app repair
    • Windows app reset
    • MSIX re-registration attempt
    • Uninstall/reinstall Codex
    • Reboot

    Still reproduces. This looks like the same Windows external activation/protocol handling issue as this thread and related notification/OAuth reports.

  5. lincolnkerry commented on May 30, 2026

    @lincolnkerry

    I can reproduce the same issue on Windows 11 with Codex 26.527.3686.0.

    Affected connectors:

    • GitHub
    • Slack

    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.

  6. lnorton89 commented on May 30, 2026

    @lnorton89

    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

    Image
  7. neusse commented on May 30, 2026

    @neusse

    I get the error random and it is not OAUTH.

    Image
  8. yummytummy1337-cell commented on May 31, 2026

    @yummytummy1337-cell
    Image

    same issue when trying to pair my github account to windows codex.

  9. cloudorcl-lab commented on May 31, 2026

    @cloudorcl-lab

    Same error

    Image
  10. hsqwq commented on May 31, 2026

    @hsqwq

    Same error
    Image

  11. Life-Cai commented on May 31, 2026

    @Life-Cai
    Image
  12. wangskyone commented on May 31, 2026

    @wangskyone

    I reproduced the same result on Windows 11, but so far I haven't noticed any functional impact.

    Image
  13. 14 remaining items

  14. sczwly commented on Jun 1, 2026

    @sczwly

    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:

    1. Open Codex Desktop on Windows.
    2. Go to Plugins.
    3. Try to connect GitHub or Gmail.
    4. Complete browser authorization.
    5. Codex shows Electron "Error launching app" instead of completing OAuth.
  15. EATZULU commented on Jun 1, 2026

    @EATZULU

    Will the beta version released today solve the problem?

  16. sczwly commented on Jun 2, 2026

    @sczwly

    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:

    1. Install the beta.
    2. Run Win + R -> codex://test
    3. Expected: Codex handles the URL without showing the Electron “Unable to find Electron app” dialog.
    4. Then retry GitHub or Gmail OAuth.

    Could you share the beta version number or confirm whether codex://test works on it?

  17. willycotes commented on Jun 2, 2026

    @willycotes

    Has anyone tried it with the beta version yet? I'm too lazy to install it and then have to delete it.

  18. marco-acevedo-official commented on Jun 2, 2026

    @marco-acevedo-official

    I am experiencing this exact issue when I try to connect plugins

  19. VincentVonk commented on Jun 2, 2026

    @VincentVonk

    I can also reproduce this on Codex 26.527.60818, Windows 11 24H2 build 26100.8457, ChatGPT Plus.

    Same behavior:

    • GitHub OAuth succeeds in browser
    • Browser launches codex://oauth_callback
    • Codex shows "Unable to find Electron app"
    • Manual protocol test via codex://test also fails

    Repair/reset/reinstall and manually adding HKEY_CLASSES_ROOT\codex\shell\open\command did not resolve it.

  20. ToshyroLFFF commented on Jun 2, 2026

    @ToshyroLFFF

    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:

    OpenAI.Codex_26.527.7698.0_x64__2p2nqsd0c76g0
    Status: Ok
    InstallLocation: C:\Program Files\WindowsApps\OpenAI.Codex_26.527.7698.0_x64__2p2nqsd0c76g0
    

    Protocol association:

    ProgId REG_SZ AppXybfp6cjpb1wf0pftw0fd4bz59gzn1401
    

    The OAuth callback is launched correctly by Windows:

    "C:\Program Files\WindowsApps\OpenAI.Codex_26.527.7698.0_x64__2p2nqsd0c76g0\app\Codex.exe" codex://connector/oauth_callback?code=REDACTED&state=REDACTED
    

    But Codex shows:

    Error launching app
    
    Unable to find Electron app at:
    ...\oauth_callback?code=...
    
    Cannot find module:
    ...\oauth_callback?code=...
    

    This reproduces after:

    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"
    

    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.

  21. pkworng commented on Jun 3, 2026

    @pkworng

    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:

    • Codex app version: 26.601.2237.0
    • Platform: Windows
    • Install type: Microsoft Store package
    • Workspace/projects on D:, but Codex package is installed under C:\Program Files\WindowsApps

    Observed behavior:

    • GitHub auth completes in the browser
    • Redirect to codex://oauth_callback?... triggers the Electron error dialog
    • Error matches the existing reports: Unable to find Electron app / Cannot find module

    Local diagnostics:

    • AppxManifest.xml registers the codex protocol to app/Codex.exe
    • Codex runtime metadata also points to separate binaries under %LOCALAPPDATA%\OpenAI\Codex\bin\...
    • This makes it look like a Windows deep-link routing/dispatch problem rather than a D:\ workspace/install-location issue
    • Still reproducible on 26.601.2237.0 as of 2026-06-03
  22. certainly-cyber commented on Jun 3, 2026

    @certainly-cyber

    Has anyone tried it with the beta version yet? I'm too lazy to install it and then have to delete it.

    Hi everyone, I've updated to the new version, and this issue seems to have been resolved!

  23. lnorton89 commented on Jun 3, 2026

    @lnorton89

    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.

  24. UPmeme commented on Jun 3, 2026

    @UPmeme

    I’m seeing the same OAuth callback failure on Windows with the Gmail plugin.

    Environment:

    • Codex Desktop Windows version: 26.527.7698.0
    • Platform: Windows x64
    • Installed from Microsoft Store / WindowsApps package path
    • Browser used for OAuth: Chrome
    • Plugin: Gmail

    Repro steps:

    1. Open Codex Desktop on Windows.
    2. Go to Plugins and connect Gmail.
    3. Complete the Google OAuth consent flow in Chrome.
    4. When Google redirects back to codex://oauth_callback?..., Codex shows an Electron launch error instead of completing the connector authorization.

    Observed error:

    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_...'
    

    Additional diagnostics / attempted fixes:

    • Reinstalled Codex.
    • Re-registered the MSIX manifest with Add-AppxPackage -Register -DisableDevelopmentMode ...\AppxManifest.xml after fully closing Codex.
    • Confirmed the package manifest declares the codex protocol.
    • Tried manually registering codex: under HKCU\Software\Classes\codex, but launching the callback still caused Electron to treat oauth_callback?... as an app path, so the manual association was removed.
    • The failure still happens after restarting Codex and repeating a fresh Gmail authorization flow.

    This seems to match the existing codex://oauth_callback handling issue, but in this case it is blocking Gmail connector authorization rather than GitHub.

  25. DevDengChao commented on Jun 3, 2026

    @DevDengChao

    I'm able to use codex:// on Codex 26.601.21317 now.

  26. lnorton89 commented on Aug 6, 2026

    @lnorton89

    Nice, good to hear three months later you joker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appauthIssues related to authentication and accountsbugSomething isn't workingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions