Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Follow-up to #33583 / #33596. #33596 makes the 15-minute watchdog report the recorded 502, but the turn still sits silent for the full timeout, and a follow-up message restarts that timeout. This was raised in a comment on #33583 (first point), but that issue is now closed and the gap has no issue of its own.
Area
apps/server
Steps to reproduce
- Start an Antigravity thread (seen with
gemini-4-neon, Antigravity ACP runtime 1.4.5,oauth-personal). - Have the backend return a 502 to a model call. In our case it was the call right after the agent opened a ~19 MB audio file with its file-view tool, which Antigravity attached to the request as
video/mp4media. Other Antigravity sessions running at the same time had no errors. - Wait without sending anything, then send a follow-up such as "why is this taking so long?" while the turn still shows as running.
Expected behavior
As soon as the session log has a terminal upstream error (for example the second consecutive 502 at about 10 minutes, after which agy acp never resolves session/prompt), T3 fails the turn with that error or retries it. A follow-up message sent into a prompt that has already failed upstream should not restart the wait.
Actual behavior
Session log for the thread (transcript.jsonl, times in UTC):
12:55:50 PLANNER_RESPONSE (last model reply; next steps open the 19 MB file as video/mp4 media)
12:56:03 VIEW_FILE / RUN_COMMAND steps finish <- last ACP activity
13:01:08 ERROR_MESSAGE 502 "The model is currently unreachable."
13:06:15 ERROR_MESSAGE 502 "The model is currently unreachable."
13:09:24 USER_INPUT (follow-up steered into the same turn)
13:13:22 ERROR_MESSAGE 502 "The model is currently unreachable."
13:14:30 user pressed Stop
- For 18 minutes the thread showed as running with no error and no reply. The only assistant items are two
The request was cancelled by the client.messages, written when the steer and then Stop cancelled the prompt. - On current
main(2bc7878),watchPromptInactivitycallscheckPromptOutcomeonly fromretireInactivePrompt, after the fullpromptInactivityTimeout. Nothing reads the session log while the prompt is silent, so an error recorded at minute 5 or 10 is not seen until minute 15. - The steer path (
context.lastProgressAt = context.promptSentAtand a re-armed watchdog) restarts the 15-minute clock. Asking "is it stuck?" therefore made the dead turn wait another full timeout.
Suggested fix, building on #33596 and the first point of the comment on #33583: while a prompt is silent and promptInactivityPaused is false, check the outcome about once a minute. Surface a retry state on the first upstream error step, and fail or retry the turn once two consecutive upstream errors sit at the end of the log. Pre-tool hook denials also use step_type = 17, so leave them out. A steer into a prompt whose log already ends in an upstream error should fail or restart the session, not re-arm the timer.
Impact
Major degradation or frequent failure
Version or commit
Seen on 0.1.7 (desktop, macOS arm64). The code path is unchanged on main 2bc7878 (2026-11-23), which includes #33596.
Environment
macOS 27 arm64, Antigravity ACP runtime 1.4.5, oauth-personal, model gemini-4-neon, full-access mode.
Logs or stack traces
The session log is at ~/.t3/userdata/providers/antigravity/<hash>/antigravity-acp/brain/<sessionId>/.system_generated/logs/transcript.jsonl. The rows above are the type, error_code, error and created_at fields of its last entries.
Workaround
Press Stop and send the request again. Sending a follow-up message does not help.
Activity
Vansh-Raja commentedon Nov 26, 2026
Confirming the same
steerWithPromptwatchdog-reset behavior on0.1.13-nightly.20261125.5258(Ubuntu 24.04 aarch64, Nodev24.19.0, Antigravityagy1.5.17).What happened
Two Antigravity threads stopped emitting ACP progress after an
ENOSPCcrash in the underlyingagyprocess (the parent process stayed open because of a local custom ACP binary wrapper, so the ACP transport remained open but completely silent).When the user sent follow-up check-in messages at ~13 min and ~20 min ("Where are you stuck?"),
AcpAdapterV2.steerWithPromptinterrupted and re-armedAcpAdapterV2.watchPromptInactivityeach time, preventing the 15-minute inactivity watchdog from ever retiring the unresponsive turn until an explicitstopinterrupt was issued.Redacted span from
server.trace.ndjson:Suggested fix
In
AcpAdapterV2.steerWithPrompt, avoid resettinglastProgressAt/ re-armingwatchPromptInactivitysolely because the client sent a steer message — only reset the inactivity clock once the ACP provider actually emits a response orsession/updateprogress event (or track a separate short ack timeout after steering a silent prompt).