Hi team, please fix the 60-second timeout issue during large code generations. When the model writes a long script, it hits a hard 60s cutoff and throws either a fake “network lost” error or an HTTP 429. Having to manually ask the model to output code in tiny chunks is a poor developer experience, especially on a Google platform.
What seems to be happening under the hood: The request hits a hard 60s gateway/load balancer timeout (likely due to response buffering or interrupted SSE streaming). Because the proxy drops the connection without proper CORS headers on the 504 timeout, the frontend catches it as a generic ERR_NETWORK / Failed to fetch and shows a false “network lost” message. Immediately after, the client silently auto-retries the exact same heavy request, colliding with the TPM (Tokens Per Minute) quota already consumed by the failed first attempt, which triggers the HTTP 429 (Resource Exhausted) error.