AI Studio Build agent keeps failing: “Agent execution terminated due to error”

Hi everyone, I keep getting this error in Google AI Studio Build:

“Encountered retryable error from model provider: Agent execution terminated due to error”

Sometimes it also shows:

“An internal error occurred.”

It even happens with very simple prompts like “reply with agent alive,” so I don’t think it is related to my app code. I also tested it with a brand-new simple Android app and got the same issue.

Things I tried:

  • Waiting for quota reset

  • Hard refresh

  • Incognito mode

  • Disabling extensions/adblock

  • Starting a new AI Studio chat

  • Restoring older app versions

  • Testing with a brand-new simple app

  • Checking that the app still builds successfully

  • Checking that manual code edits and GitHub sync still work

The issue keeps coming back, so it feels like the Build agent/tool runner is failing, not the app itself. I’m guessing other people may be running into this too.

Is there any way to reset the AI Studio Build agent/session, or is this something only Google can fix?

Hello @Bab3ki,

Please check the rate limits page for your associated Google Cloud project as detailed in the Gemini API rate limits documentation. If no limits are exceeded, please share the model you are using and a screenshot of your error to help us investigate further.