(URGENT) Bug Report: Google AI Studio GitHub OAuth succeeds but connection never completes

Bug Report: Google AI Studio GitHub OAuth succeeds but connection never completes

Summary

Google AI Studio cannot complete the GitHub connection even though GitHub OAuth authorization succeeds successfully.

After authorizing GitHub, I am redirected to:

aistudio.google.com/auth/github/redirect?status=success

The page says that I am being redirected to Google AI Studio and provides a “this setup page” link. However, after following the setup page, Google AI Studio still shows:

“Sign in to GitHub to continue”

The GitHub connection is therefore stuck in a loop.

Steps to reproduce

  1. Open Google AI Studio.
  2. Open a project and go to the GitHub panel.
  3. Click Sign in to GitHub to continue.
  4. GitHub opens and asks to authorize/install the Google AI Studio GitHub App.
  5. Install/authorize the app.
  6. Set repository access to All repositories.
  7. Complete the GitHub authorization.
  8. GitHub redirects to Google AI Studio with:

aistudio.google.com/auth/github/redirect?status=success

  1. The page says:

You are being redirected to Google AI Studio to continue installation.

  1. If the automatic redirect does not happen, click the provided “this setup page” link.
  2. Google AI Studio opens again, but the GitHub panel still says:

“Sign in to GitHub to continue”

Troubleshooting already performed

I have already tried:

  • Revoking/removing the GitHub authorization
  • Uninstalling and reinstalling the Google AI Studio GitHub App
  • Restarting Chrome
  • Hard refresh with Ctrl+F5
  • Checking JavaScript — enabled
  • Checking third-party cookies — allowed
  • Allowing pop-ups and redirects for:
    • https://aistudio.google.com
    • https://github.com
  • GitHub App repository access set to All repositories
  • Repeating the complete GitHub authorization flow

The problem remains unchanged.

Important observation

GitHub authorization itself appears to succeed.

The OAuth callback explicitly returns:

status=success

However, Google AI Studio does not recognize the successful GitHub authorization afterward and continues showing “Sign in to GitHub to continue.”

This appears to be an OAuth/session state persistence or backend integration issue rather than a GitHub permission or browser configuration issue.

Expected behavior

After successful GitHub authorization, Google AI Studio should recognize the GitHub connection and allow me to select or create a repository for GitHub Sync.

Actual behavior

GitHub authorization succeeds, but Google AI Studio remains stuck on:

“Sign in to GitHub to continue”

The authorization flow can be repeated indefinitely without completing the connection.

Environment

  • Google AI Studio
  • Google Chrome
  • Windows PC
  • GitHub personal account
  • Google AI Studio GitHub App installed
  • Repository access: All repositories

Please investigate the GitHub OAuth/session state on the Google AI Studio side. It appears that the OAuth callback succeeds but the resulting GitHub connection is not being persisted or recognized by AI Studio.

Hello @J_L1 ,

To help us investigate on this, could you please share a few screenshots or a short screen recording/video of the behavior?