Skip to content

[Windows] GitHub connection fails with "OAuth state not found"; signing into ChatGPT web resolves it #55314

Open

Description

@metralhadora12-cmd

Environment

  • Codex desktop app on Windows.
  • Installed Windows package version observed during diagnosis: 26.1013.4894.0 (package version, not independently checked in the About dialog).
  • Observed on October 19, 2026.
  • Subscription: not collected.

Problem

Connecting the GitHub plugin opens the browser. The user reported no error in the browser, but the desktop app displays this toast after returning:

OAuth state not found

The plugin was confirmed installed and enabled. A read-only GitHub authentication check during the failure returned USER_NOT_LOGGED_IN.

Observed flow

  1. Start connecting GitHub from the desktop app.
  2. Complete the browser portion of the connection flow; no browser error was reported.
  3. Return to the desktop app.
  4. Observe OAuth state not found; GitHub remains unauthenticated.

This describes the affected user's experience; a clean-account reproduction has not been performed.

Workaround

The user reported that signing into the web version of ChatGPT resolved the connection problem.

The exact browser session state before the failure was not captured. This workaround suggests a possible session interaction, but the root cause is unconfirmed. The connection has not been independently retested after the user reported resolution.

Expected behavior

GitHub authorization should complete from the desktop app. If an additional ChatGPT browser sign-in is required, the flow should request it explicitly and resume authorization instead of displaying an unexplained state error.

Related reports

This report covers GitHub specifically and the reported ChatGPT web sign-in workaround. No tokens, authorization URLs, private project data, or session transcripts are included.

Activity

  1. added
    bug
    app
    windows-os
    auth
    skills
    on Oct 19, 2026
  2. github-actions commented on Oct 19, 2026

    @github-actions
    Contributor
  3. ffmfg-tal commented on Oct 20, 2026

    @ffmfg-tal

    Additional affected Windows desktop case, observed October 20, 2026: this also occurs when adding a second GitHub profile to an already installed, working GitHub plugin.

    Observed sequence:

    1. Start adding another GitHub profile from the ChatGPT desktop app.
    2. Complete the GitHub authorization flow and return to the desktop app.
    3. A brief OAuth error appears, with no actionable diagnostics in the UI.

    Read-only local diagnosis found four matching callback failures across two desktop processes. The callback reaches the desktop app, which then receives:

    POST /aip/connectors/links/oauth/callback
    HTTP 404
    {"detail":"OAuth state not found"}
    

    The existing GitHub connection still authenticated successfully during diagnosis. The new profile could subsequently be connected successfully by starting a fresh connection flow in ChatGPT in a browser (user-confirmed). This narrows the affected scenario to the desktop-initiated flow, but does not establish the underlying cause or prove all desktop attempts fail.

    Two correlation points for OpenAI investigation:

    • 2026-10-20T19:33:00.479Z, diagnosticId 02c2df88-30da-4f01-9e32-df15839510f5
    • 2026-10-20T19:33:06.423Z, diagnosticId ded0f5eb-0910-4a93-9e8c-04a7935489fd

    Expected: adding an additional profile should complete from the desktop app. If it cannot, the UI should preserve useful error details and offer a recovery path, such as completing the connection in the browser.

    Exact desktop About version and subscription were not collected. Matching errors were found in local Codex desktop logs; the user describes the initiating surface as ChatGPT desktop. No tokens, OAuth state values, authorization codes, account names, raw logs, or session transcripts are included here.

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

    appauthbugskillswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions