Antigravity 2.23.0: "Model unavailable" retry loop is a 60-second cutoff on silent model responses (logs and data)

AI disclosure: this report was written with AI assistance (Claude Code with Claude Opus 5.5; controlled experiments by Antigravity’s own agent with Gemini 4 Argon), working from local logs at the reporter’s direction. Figures can be recomputed from the public repository linked below, except a few that come from local conversation records, which the report marks.

Summary

In Antigravity 2.23.0 on Linux, agent steps repeatedly show Model unavailable, retrying in Ns (attempt k/9). After nine failed attempts (17–20 minutes) the conversation stops with:

agent executor error: generating and executing: stream reading error: unexpected EOF

The language server log shows these are not server errors. Model requests that receive no data are closed about 60 seconds after they start. The most likely trigger is a large file-write tool call, which reaches the client only once it is fully generated. The client sends the same request again on each retry.

Full report, CSV data, log excerpts and scripts:

Environment

Item Value
Client Antigravity 2.23.0 (language server 2.23.0), Linux x64. The same banner was also seen on 2.22.0 on 2026-10-13 (no logs kept). 2.23.1 not tested.
Model Gemini 4 Argon (High)
Endpoint daily-cloudcode-pa.googleapis.com/v1internal:streamGenerateContent?alt=sse (default)
Data 2026-10-14 20:34 UTC to 2026-10-15 02:18 UTC

Steps to reproduce

  1. Open a workspace in Antigravity 2.23.0 with Gemini 4 Argon (High).
  2. Ask the agent to create a new file of about 1,200 lines in a single step (one write_to_file call).
  3. After about 60 s, the banner Model unavailable, retrying in 4s (attempt 1/9) appears. Every retry is closed the same way. In controlled runs this happened in 3 of 3 attempts at 60.25–60.36 s.
  4. For contrast, ask for long reasoning with a short answer, or about 1,500 words of prose with no tool calls. These complete even after 3–4 minutes.

Evidence

Top: when failed requests were cut. Middle: controlled runs. Bottom: silence on the stream during a large file write and during long reasoning. Every chart and its data are in the repository.

1. No server errors. 136 retried failures and 12 final failures during normal use. No retry or final-error line mentions code 503, UNAVAILABLE, RESOURCE_EXHAUSTED or No capacity; every failure is a closed connection (EOF).

2. Requests with no data close at about 60 s.

Error in run.go:395 retry line Failures Timed Range Median
request failed: Post "...": EOF (no response headers) 104 79 60.270–61.075 s 60.352 s
stream reading error: unexpected EOF (cut mid-stream) 32 25 67.449–106.123 s 73.216 s

In 11 of the 32 mid-stream cuts, a response line was logged exactly 60.0 s (60.018–60.033 s) before the cut. ResponseIDs and Trace IDs for those 11 are listed in the report, section 3.1, for server-side lookup. Two examples:

  • 9u7PaqvNG5Gx_PUPndmw-Ag (Trace 0x40c89778a484c8..): response line 2026-10-14 21:07:26.993 UTC, cut 21:08:27.019 UTC.
  • GO7PasTvNaKC-8YP6cTR2QY (Trace 0x82380b9d462bf8..): response line 21:03:31.303 UTC, cut 21:04:31.321 UTC.

3. Successful responses never waited much past 60 s. Of 2,178 responses that completed without error (Antigravity’s local conversation records), only 2 waited longer than 60 s for their first data: 60.18 s and 60.31 s.

4. Large tool calls arrive in one burst; text streams.

Response type (completed without error) Responses Median wait for first data Median first-to-last data
Tool call of 10 KB or more, no text 124 32.4 s 0.32 s
No tool call, 2,000 B or more of text 36 7.7 s 11.9 s

This matches the Vertex AI function-calling documentation: a function call is returned only after all of its arguments are generated, unless the preview option streamFunctionCallArguments is enabled.

5. Controlled runs (E runs one at a time, stopped at the first failure; V runs started together; middle and bottom charts above). A single 1,200-line file write was closed at 60.25–60.36 s in 3 of 3 runs with no data received. The same file in 12 calls of 100 lines completed once in 3 runs. Long reasoning (up to 266 s) and about 1,500 words of prose (up to 108 s) completed in 6 of 6 runs, never going more than 31 s without data. Three more large-write runs started together were all cut.

Not known

  • Which component closes the connection. In the controlled file-write runs, the last data in either direction was the request itself, so a per-request deadline and a connection idle timer would fire at the same moment. Two observations narrow it down: the client logs EOF (the other end closed the connection, not a client timeout), and the client’s connections carry TCP keepalives (ss -o showed timers of 13–25 s), which would reset a timer that only watches packets on the network path. That points to the component that terminates TLS, such as Google’s front end, but a packet capture would be needed to confirm which side sends the close. Separately, connections that had finished their last exchange also disappeared after 58–60 s idle; that may be the same timer or the client’s own idle-connection limit. No public documentation found names a 60-second limit for googleapis.com endpoints.
  • Whether slow backend responses are a second cause. Some failures followed small requests. A request with no reply looks the same in the log whether the backend is slow or a large tool call is being generated.

Requests

  1. Keep data flowing during long tool-call generation, for example by enabling streamed function-call arguments or sending keep-alive events.
  2. Label a closed connection accurately instead of “Model unavailable”.
  3. Do not send the same request nine times after it was closed at the same point; fail early and suggest a smaller edit.

Workarounds

  • Ask the agent to write large files in parts, for example at most 100 lines per call. In the controlled runs this reduced the cuts but did not remove them.
  • Stop a run at the first “Model unavailable” banner during a large edit instead of waiting through nine attempts.

Related topics

The repository includes scripts/reconstruct_attempts.py, which runs on any Antigravity language_server.log. A cluster of no response headers failures just above 60 s indicates the same cutoff.

Hi @Xiphiros,

Could you please upgrade to the Antigravity latest version v2.23.1 and let me know is the issue resolves or the issue still persists after upgraded to the latest version!

@Ambati_Rajendra Thanks for the suggestion. The issue persists on v2.23.1.

Retest on 2026-10-15 with Antigravity 2.23.1 (language server 2.23.1), Linux x64, Gemini 4 Argon (High). Same procedure as the original report: each workload ran in a fresh agent, one at a time, with the other conversations paused, and each run was stopped at its first failure.

Workload Result on 2.23.1
1,200-line file in one write_to_file call (3 runs) Closed with no response at 60.37, 60.18 and 60.30 s
1,400-line file in one call Closed with no response at 60.18 s
Two 900-line files in two parallel calls Closed with no response at 60.20 s
Short reasoning prompt, then a 1,400-line file in one call Closed with no response at 60.18 s
Long streamed reasoning, then a 1,400-line file in one call Cut mid-stream at 286.42 s
Control: long reasoning with a one-line answer, no tools Completed in 227.59 s

The “no response” failures are logged as request failed: Post "...streamGenerateContent?alt=sse": EOF, and the mid-stream cut as stream reading error: unexpected EOF. No 503 or other server error appears in the log during the retest.

This is the same pattern as on 2.23.0: every large single-call file write is closed at 60.2 to 60.4 s, while a response that keeps streaming runs for minutes. The 2.23.1 changelog lists only the onboarding license-picker fix, so no change was expected.

For server-side lookup (UTC, 2026-10-15): the no-response failures occurred at 11:54:13, 11:55:45, 11:57:11, 11:58:44, 12:05:58 and 12:12:10; they have no ResponseID because no response ever started. Mid-stream cut at 12:04:05: ResponseID F8DQaqHJNtPI-8YPqpez0.., Trace 0xef7a8805603c17... Control: ResponseID xsHQaor2CvWu_uMPn8j_8Ak, Trace 0xf57393a42cff4f6...

I have this same problem on windows too..

the claude models are better but the gemini models keep giving this error

I’m on the latest version

@Wiliam On Windows, the reason Gemini hits this error on file edits while Claude appears to survive is down to how tool-call arguments are buffered over the wire.

When Gemini reasons or writes prose, it streams tokens continuously across the SSE connection, keeping the socket alive. But when it constructs a structured file edit (like replace_file_content or write_to_file), the server buffers the entire JSON argument payload in memory before sending it.

Because the wire goes completely silent during that buffering, the reverse proxy (daily-cloudcode-pa) drops the connection at exactly 60.0 seconds of inactivity (which on Windows then triggers the Retrying (1/9) loop or displays “task cancelled by user”). Large diffs take ~65-80s to synthesise in silence, so they get severed every time.

The immediate workaround on Windows:
Instruct the agent upfront to keep file edits bounded:

“Apply changes in chunks of at most 60-80 lines per tool call.”

Keeping replacements under 80 lines allows the silent JSON payload to finish in 25-40 seconds, safely under the 60-second proxy guillotine, and the retry loop disappears.

This trick actually worked for me on the following:

  • Antigravity Version 2.24.0
  • Gemini 4 Argon (High)
  • macOS Golden Gate

Thank you @dllhell.
However this bug actually needs an ultimate fix by Google!

Retest on 2026-10-22 with Antigravity 2.25.0 (language server 2.25.0), Linux x64, Gemini 4 Argon (High). Same procedure as the 2.23.0 and 2.23.1 tests: each workload ran in a fresh isolated agent, one at a time, and each failing run was stopped after Attempt 1 logged run.go:395.

Workload Result on 2.25.0
1,200-line file in one write_to_file call (3 runs) Closed with no response at 60.32, 60.21, and 60.38 s (0 files written)
Long reasoning without tools (18,726 tokens streamed over 4m 22s) Streamed for ~202 s, then cut mid-stream at 262.00 s when a pause between thought-summary flushes reached 60 s
Control: ~1,500-word streamed technical essay, no tools Completed cleanly on Attempt 1 in 96.38 s
As on 2.23.0 and 2.23.1:
  • All three single-call 1,200-line file writes failed on Attempt 1 at 60.21–60.38 s with request failed: Post "https://daily-cloudcode-pa.googleapis.com/v1internal:streamGenerateContent?alt=sse": EOF before any HTTP response headers arrived.
  • The mid-stream cut on the 4m 22s reasoning run logged stream reading error: unexpected EOF.
  • Zero 503, UNAVAILABLE, or RESOURCE_EXHAUSTED errors appear anywhere in language_server.log.
  • Chunking file edits to <= 80–100 lines per tool call (as @dllhell and @manili noted above) remains necessary to keep server-side tool-call buffering under the 60-second idle-stream cutoff.