Infinite Loop in API Request generation via Gemini AI Studio "Build" feature

Hello,

I am reporting a potential bug regarding the code generated by the “Build” feature in Gemini AI Studio.

Summary of the issue: When using the “Build” feature to generate a functional application, the resulting code logic contains a structural flaw that leads to an unintended infinite loop of API calls.

Steps to reproduce:

  1. Open Gemini AI Studio and select the “Build” feature.

  2. Provide a prompt to generate an application that requires sequential processing.

  3. Upon executing the generated code, the API request logic fails to properly check exit conditions, resulting in continuous, rapid-fire API calls until the execution environment is manually terminated.

Expected behavior: The generated code should include proper exit conditions or rate limiting to prevent uncontrolled API request loops.

Actual behavior: The code generates an infinite loop that continues until an external intervention occurs, which poses a significant risk to execution stability.

I would appreciate it if the technical team could investigate the logic generation process of the “Build” feature and implement a fix for these recurring loop conditions.

Thank you for your support.