Skip to content

Studio: show an error when ChatGPT sign-in is denied - #16950

Merged
danielhanchen merged 3 commits into
unslothai:mainfrom
NilayYadav:codex-oauth-callback-error
Nov 7, 2026
Merged

danielhanchen merged 3 commits into
unslothai:mainfrom
NilayYadav:codex-oauth-callback-error

Conversation

@NilayYadav

Copy link
Copy Markdown
Collaborator

When connecting a ChatGPT / Codex subscription with "Connect in browser", declining the consent screen (or an account that ChatGPT refuses) sends the browser back to Studio's local callback with an error instead of a code. The browser tab said "Authorization failed", but Studio itself ignored that callback, so the connection screen kept waiting with no message until the sign-in timed out 15 minutes later. Pasting that same callback URL into the Complete box only said the URL had no authorization code and also left the sign-in waiting.

Now a callback that carries an error ends the sign-in right away, in both paths. The connection screen shows "ChatGPT authorization was denied or failed. Start a new connection." and "Connect in browser" can be clicked again. Callbacks with a wrong state are still ignored, so a stray request cannot end a sign-in in progress.

@NilayYadav NilayYadav self-assigned this Nov 6, 2026
@NilayYadav

Copy link
Copy Markdown
Collaborator Author

@codex security review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T12:19:26.634958Z 302060a Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 186f519720

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 302060a04a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit b1f9e3f into unslothai:main Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants