Gemini 4 Argon High handled similar HTML/SVG animation and file-generation tasks normally last week. This week, long tasks repeatedly show “Model unavailable, retrying in …”. The thinking timer restarts, but the task makes little or no progress.
Environment
OS: Windows x64
Model: Gemini 4 Argon High
The problem was already present on Antigravity App 2.28.2 on November 3, 2026.
The app updated to 2.29.0 on November 4, but the problem persisted.
Network: FlClash with TUN enabled. Singapore and Japan egress nodes have been used.
A third-party process-level proxy component was previously trialed, then removed. The failures also occurred without that component loaded.
Comparison results
Task: create a single HTML file containing an SVG animation of a pelican riding a bicycle.
Argon High repeatedly stalls and retries during the full file-generation task.
A short reply without tools succeeds.
Asking Argon High to output HTML directly in chat, without tools, produced approximately 1,133 lines in about seven minutes.
A minimal file-writing task containing only OK succeeded, although the UI reported about three minutes.
Gemini 3.8 Flash completed the animation-file task in a comparison run.
Switching to the Japan node improved some connection symptoms, but Argon still experienced five-minute stream idle timeouts.
Exact errors
Date: November 4, 2026.
Times are Asia/Shanghai, UTC+8.
These correspond to 08:39:14 UTC and 08:49:29 UTC.
Other requests also encountered EOF or “local error: tls: bad record MAC”. I have not established whether these errors share the same cause.
Questions
Is there a known backend or desktop streaming regression affecting these long tasks?
Can the team investigate the request times above?
Is there a supported Windows desktop setting for the five-minute stream idle timeout, or a fix available?
I found a similar CLI report:
Reducing reasoning effort or splitting edits may help temporarily, but similar tasks worked normally last week. I would appreciate guidance on restoring normal operation.
Thanks for the link. I checked my running language server on Windows with Antigravity 2.29.0, and it uses https://daily-cloudcode-pa.googleapis.com. I have not modified app.asar.
I also saw the unsuccessful reports and your later rollback. Is there now a verified fix for Gemini 4 Argon High on Windows 2.29.0?
Thank you for putting together such a thorough comparison with exact UTC timestamps and the CLI issue reference, @sama_dio, and thanks to @ahotebana for linking the 2.28+ endpoint thread.
Your test results (where Argon High outputs 1,133 lines of HTML directly in chat in ~7 minutes, but hits stream reading error: stream idle timeout (5m0s): context deadline exceeded and local error: tls: bad record MAC when generating the file via tools on Windows with FlClash TUN) pinpoint two distinct things interacting at once:
Why Direct Chat Succeeds at 7 Minutes While Tool-Assisted File Generation Hits the 5m0s Cliff: When Argon High writes HTML directly in chat, the SSE stream flushes visible text tokens continuously after the initial thinking phase, resetting the 5m0s per-chunk idle timer on every token. When it generates a 1,000+ line SVG animation inside a write_file tool call, the model has to finish its full High-effort Chain-of-Thought and serialize the entire JSON tool call argument before the stream advances to execution. If that combined silent window crosses 300.0s, the client’s 5m0s stream reader deadline fires and restarts the attempt from scratch.
Fixing local error: tls: bad record MAC and EOF on Windows FlClash TUN. : That tls: bad record MAC error comes from the virtual TUN adapter (sing-box / mihomo inside FlClash) when a long-lived TLS 1.3 stream sits idle for several minutes and then bursts a large 50+ KB tool-call frame across a mismatched TUN MTU. Two quick adjustments in FlClash stop those mid-stream drops:
Lower the TUN mtu setting in FlClash from 9000 (or 1500) down to 1360, and enable tcp-keep-alive (keep-alive-interval: 15) in your Clash config so NAT tables along the Singapore/Japan path never drop the socket during Argon High’s silent thinking phase.
Alternatively, switch from TUN Mode to System Proxy mode for language_server.exe so Windows’ native TCP stack handles segmentation directly.
Keeping Argon High Tool Calls Under the 300s Window: Until the client exposes a configurable streamIdleTimeout for High-thinking models, ask Argon High to create the HTML/SVG scaffold first (<100 lines) and then add the SVG <path> / <animateTransform> layers in 2-3 incremental edit_file steps (or Switch to Medium thinking effort for the single-file write). Splitting the write into two incremental edits keeps each turn well under 90 seconds so the 5m0s retry loop never triggers.
Thank you for putting together such a thorough comparison with exact UTC timestamps and the CLI issue reference, @sama_dio, and thanks to @ahotebana for linking the 2.28+ endpoint thread.
Your test results (where Argon High outputs 1,133 lines of HTML directly in chat in ~7 minutes, but hits stream reading error: stream idle timeout (5m0s): context deadline exceeded and local error: tls: bad record MAC when generating the file via tools on Windows with FlClash TUN) pinpoint two distinct things interacting at once:
Why Direct Chat Succeeds at 7 Minutes While Tool-Assisted File Generation Hits the 5m0s Cliff: When Argon High writes HTML directly in chat, the SSE stream flushes visible text tokens continuously after the initial thinking phase, resetting the 5m0s per-chunk idle timer on every token. When it generates a 1,000+ line SVG animation inside a write_file tool call, the model has to finish its full High-effort Chain-of-Thought and serialize the entire JSON tool call argument before the stream advances to execution. If that combined silent window crosses 300.0s, the client’s 5m0s stream reader deadline fires and restarts the attempt from scratch.
Fixing local error: tls: bad record MAC and EOF on Windows FlClash TUN. : That tls: bad record MAC error comes from the virtual TUN adapter (sing-box / mihomo inside FlClash) when a long-lived TLS 1.3 stream sits idle for several minutes and then bursts a large 50+ KB tool-call frame across a mismatched TUN MTU. Two quick adjustments in FlClash stop those mid-stream drops:
Lower the TUN mtu setting in FlClash from 9000 (or 1500) down to 1360, and enable tcp-keep-alive (keep-alive-interval: 15) in your Clash config so NAT tables along the Singapore/Japan path never drop the socket during Argon High’s silent thinking phase.
Alternatively, switch from TUN Mode to System Proxy mode for language_server.exe so Windows’ native TCP stack handles segmentation directly.
Keeping Argon High Tool Calls Under the 300s Window: Until the client exposes a configurable streamIdleTimeout for High-thinking models, ask Argon High to create the HTML/SVG scaffold first (<100 lines) and then add the SVG <path> / <animateTransform> layers in 2-3 incremental edit_file steps (or Switch to Medium thinking effort for the single-file write). Splitting the write into two incremental edits keeps each turn well under 90 seconds so the 5m0s retry loop never triggers.
There is currently no official client-side configuration toggle in 2.29.0 that overrides the 5-minute stream deadline. The endpoint substitution (pointing to daily-cloudcode-pa or cloudcode-pa) addresses backend 503 capacity routing, but leaves the client-side socket read deadline completely untouched.
The underlying failure mechanism is hardcoded in the Go language server binary (language_server_windows_x64.exe). Inspecting process invocation:
The SSE stream reader enforces an internal 300-second idle read deadline (streamIdleTimeout = 5m0s) between received network frames. When running Gemini 4 Argon High over large prompt contexts (100k+ tokens), the model generates its internal Chain-of-Thought reasoning before emitting the first stream token. If that thinking phase exceeds 300 seconds without wire activity, the client socket trips context deadline exceeded, terminating the stream and triggering an unrecoverable retry cycle.
Until Google exposes a configurable stream idle timeout in settings.json or implements periodic SSE keep-alive comments during reasoning, two concrete mitigations keep generation stable:
Decomposed Phasing: Direct the agent to write a minimal scaffold first, followed by incremental edits for implementation blocks. Keeping individual turns under 90 seconds prevents the 300-second idle timer from ever engaging.
Calibrated Reasoning Effort: Drop thinking effort to Medium for monolithic generation tasks, reserving High effort for architectural refactoring where generation volume per turn is constrained.
Thank you for the detailed comparison tests and exact UTC timestamps. Here are direct answers to your three questions:
1 & 2. What caused the 5-minute timeouts & what changed in v2.31.0:
When Gemini 4 Argon (High) generates a large single-file SVG/HTML write inside a tool call, it completes its full Chain-of-Thought reasoning and JSON tool argument serialization before flushing output. If that silent window exceeds 5 minutes (5m0s), the client’s stream idle timeout cancels and retries the request.
Please update to Antigravity App v2.31.0 (Changelog), which specifically fixed an issue where requests failed when a thinking model took more than a minute to start responding (and also launched Gemini 4 Carbon for Ultra/Enterprise—see Models).
3. Stream idle timeout setting & best practices:
There is no user-configurable streamIdleTimeout setting yet.
Also, please do not modify app.asar—instead, update to v2.31.0, use Medium thinking effort for large single-file generations, or ask Argon High to write the HTML scaffold first and add SVG paths in incremental edits.