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] GitHub connection fails with "OAuth state not found"; signing into ChatGPT web resolves it #55314
appIssues related to the Codex desktop appauthIssues related to authentication and accountsbugSomething isn't workingskillsIssues related to skillswindows-osIssues related to Codex on Windows systems
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
Start connecting GitHub from the desktop app.
Complete the browser portion of the connection flow; no browser error was reported.
Return to the desktop app.
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.
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.
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:
Start adding another GitHub profile from the ChatGPT desktop app.
Complete the GitHub authorization flow and return to the desktop app.
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.
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.
appIssues related to the Codex desktop appauthIssues related to authentication and accountsbugSomething isn't workingskillsIssues related to skillswindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Oct 19, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
ffmfg-tal commentedon Oct 20, 2026
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:
Read-only local diagnosis found four matching callback failures across two desktop processes. The callback reaches the desktop app, which then receives:
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:
02c2df88-30da-4f01-9e32-df15839510f5ded0f5eb-0910-4a93-9e8c-04a7935489fdExpected: 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.