Hello Google AI Studio Team,
I am experiencing an issue with the GitHub integration in AI Studio.
Issue: When I open the GitHub Sync panel, AI Studio displays the following error:
“Failed to load file differences. The GitHub repository could not be found, or you lack permissions. Please ensure the AI Studio GitHub App is installed.”
However, everything appears to be configured correctly.
What I have verified:
The repository exists and is accessible.
The repository is Public.
The default branch is main.
The repository loads normally on GitHub.
The AI Studio GitHub App has been configured.
I have disconnected and reconnected GitHub.
I have refreshed AI Studio and retried the sync.
Despite all of the above, AI Studio still fails to load the file differences and shows the same error.
Could you please investigate whether this is an issue with the GitHub integration or repository synchronization? If there are any additional logs or troubleshooting steps I can provide, I’d be happy to help.
Thank you.
I’m having the exact same issue — identical error message, and I’ve also verified everything (repo exists, correct owner, correct branch, App reinstalled, permissions set to all repos). Even revoking the GitHub App authorization completely and reconnecting from scratch didn’t fix it. Also tried in incognito to rule out cache/session issues — same result every time.
This seems to be a broader bug on Google’s side rather than something fixable from the user’s end. Hoping the team can look into this — happy to provide more details if needed.
I had the exact same issue and managed to fix it. Here’s what worked for me:
- Clear your browser data (cache and cookies).
- In AI Studio, open the workspace where you’re experiencing the issue and unlink the existing GitHub repository.
- Then go to GitHub → Settings → Applications. I don’t remember whether I uninstalled the GitHub App first or revoked the GitHub authorization first, so I’d recommend doing both:
- Uninstall the AI Studio GitHub App from Installed GitHub Apps.
- Revoke the authorization from Authorized OAuth Apps.
- Go back to AI Studio and create a Remix of your current project.
- In the remixed project, open Settings → GitHub and click Install & Authorize.
- Complete the GitHub authentication and grant Read & Write access to All repositories.
- After GitHub redirects you back to AI Studio, create a new repository. Don’t use the exact same repository name—change it slightly (even adding one extra character is enough).
- Once the new repository is created, AI Studio should load the file differences and the Commit Changes option should appear.
This completely resolved the issue for me. Hopefully it works for you as well.
Thank you so much, this really helped me out — I appreciate you taking the time to share it!