You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Antigravity: a Turn that recovered from a transient native error and replied is still marked failed #736
An Antigravity Turn that hit a transient native error, recovered, and finished with a complete reply is still shown as failed.
agy ends a Turn with status: "ERROR" and puts the error in result.error whenever any step of that Turn failed, even when the agent retried past the failure and completed every later step up to its final reply. #554 (Fixes #553) only covers the case where a replied Turn repeats an error an earlier Turn already reported. When the error first appears in the current Turn, the Host still marks the Turn failed.
Expected behavior
A Turn that replied, and whose failing step is followed by finished steps ending in the final reply, completes as succeeded. A Turn whose error is its last step, or that did not reply, keeps failing.
Actual behavior
The Turn shows the full reply but ends as failed, with an error like:
Antigravity Turn ended with status ERROR: API error (attempt 1): request failed: Post "https://daily-cloudcode-pa.googleapis.com/v1internal:streamGenerateContent?alt=sse": local error: tls: bad record MAC
In agy's Conversation DB (~/.gemini/antigravity-cli/conversations/<id>.db) for that Turn, the error step (step_type 17) is at idx 142, and steps 143–174 all have status DONE. The last one, 174, is a planner response (step_type 15) holding the final reply.
Reproduction
Run an Antigravity Turn long enough to make several model requests.
Have one model request fail with a transient network error (here tls: bad record MAC through a local proxy chain). agy retries and keeps going.
The agent finishes and replies, but the Turn ends as failed.
The Turn needs to be the first in its thread to hit this error. Otherwise #554 already covers it.
codexhost version
0.17.1 (the code on main at v0.17.2 behaves the same)
Codex Desktop version
(not relevant, adapter-side outcome mapping)
OS / Architecture
macOS / arm64
Installation
npm global (@codexhost/cli)
Harness / Version
Antigravity CLI (agy) 1.4.12, model Gemini 4 Argon High
Activity