Hi,
I am experiencing repeated failures with the Google AI Studio Build Agent while working on an existing TaskFlow project.
The error shown is:
“Encountered retryable error from model provider:
Agent execution terminated due to error.”
Details:
- The TaskFlow application itself is working correctly.
- Firebase Authentication and Firestore are working correctly.
- The project preview works normally.
- The Build Agent can inspect files and make changes successfully at first.
- During later edit requests, the agent repeatedly terminates with the error above.
- Retrying the same request produces the same failure.
- This has happened multiple times during the same project/session.
The latest failure happened while the agent was making relatively small frontend changes. Before terminating, it had already successfully read and edited several files.
This makes it appear to be a Build Agent/model-provider/session issue rather than an application runtime or Firebase issue.
I have attached a screenshot showing the repeated agent termination errors.
Could you please investigate this?
I would prefer not to recreate the project because the existing application and Firebase integration are working correctly.
Environment:
-
Google AI Studio Build
-
React + Vite project
-
Firebase Authentication + Firestore
-
Windows
-
Google Chrome




