Hi everyone,
I’m developing a fairly large React + Vite application in Google AI Studio, connected to GitHub and deployed on Vercel.
I’ve noticed some very strange behavior.
The AI successfully edits the code.
TypeScript passes with 0 errors.
The build completes successfully.
AI Studio reports that the changes were applied.
However, the Publish version inside AI Studio often does not reflect those changes.
In contrast, if I synchronize the project with GitHub, let Vercel deploy it, then the changes appear correctly.
Even stranger, some changes do work immediately in AI Studio Publish (for example, a recent update to my price parsing/formatting logic), while many UI changes never appear until I push to GitHub and view the Vercel deployment.
I also have another issue where the Preview inside AI Studio is permanently blank (white screen), although the project builds successfully and works correctly on Vercel.
So at the moment my workflow is:
Develop in AI Studio.
Sync to GitHub.
Wait for the Vercel deployment.
Test on Vercel because I can’t fully trust AI Studio Publish or Preview.
Has anyone experienced this inconsistency between AI Studio Publish and the GitHub/Vercel deployment?
Is there any known cache issue, synchronization delay, or limitation that could explain why some changes are reflected immediately while others are not?
Any advice would be greatly appreciated.
Thanks!
I’ve run into this issue multiple times as well.
From what I’ve observed, sometimes Gemini successfully applies the requested code changes on the server side, but the AI Studio client doesn’t fully synchronize. As a result, the editor or Publish/Preview can continue showing an older version of the project even though the latest changes have already been generated.
What has consistently worked for me is:
- Revert to the version just before your latest changes.
- Then immediately restore/revert back to the latest version.
This usually forces the client to synchronize with the latest state, and the changes start appearing correctly.
For the blank Preview/white screen issue, simply reload AI Studio or perform a hard refresh of the page. That has resolved it for me every time.
I hope this helps! It may not be the root cause in every case, but it’s worked reliably in my experience.