[Bug]: Antigravity does not resume turns on subagent/background task completion #30082
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/server
Steps to reproduce#
- Start T3 Code and open a session with the Antigravity provider (
gemini-3.8-flash-high). - Run a task that delegates work to a subagent (
delegate_task) or executes background operations. - Wait for the subagent or background task to complete.
Expected behavior#
The parent Antigravity turn receives the continuation delivery and resumes processing the subagent results.
Actual behavior#
The parent session stalls indefinitely in "Waiting on background task..." because deferFinalizeForBackgroundWork and enablePostSettleContinuation are omitted from the Antigravity ACP adapter flavor. Additionally, assistant streaming paragraphs were held until full turn completion if no markdown boundary followed.
Impact#
Major degradation or frequent failure
Version or commit#
main @ cefb544af3
Environment#
macOS, Antigravity ACP runtime 1.4.5, gemini-3.8-flash-high
Workaround#
Manually interrupting or sending new prompts after subagents finish.
Related issues#
vedmalex(GitHub profile, opens in a new tab) linked this to #30083
tanstack-source added labelsbug
This was generated by AI during triage.
Confirming this on Windows 11 (
0.1.10-nightly.20261116.4787,websurface,agy.exe1.5.9,gemini-4-hydrogen) with Antigravity'sschedule/ background task wakes:- Antigravity starts a background command, sets a timer, and ends its turn (
session/promptfinishes at06:39:50Z), so T3 finalizes Run 266 and stops listening for new turns. - When the timer fires (
06:41:22Z–06:41:43Z), Antigravity runs tools and writes a reply in its native transcript (steps 5783–5790), but nothing appears in T3. - Sending a dummy message like
"huh"or"status"(06:41:51Z, Run 267) suddenly reveals those held updates instatev2.sqlite(06:41:57Z); wakes with no follow-up user message (06:45:14Z) never appear at all.
In
0.1.10-nightly.20261116.4787,makeAntigravityAcpAdapterFlavor(AntigravityAdapterV2.ts) still omitsenablePostSettleContinuation/deferFinalizeForBackgroundWork/followAgentWorkState, andAcpSessionRuntimeclosesassistantUpdatesOpenRefaftersession/promptsettles (related open PRs: #30083, #37485, #37489).Triaged with Gemini 4 Hydrogen via Antigravity.
- Antigravity starts a background command, sets a timer, and ends its turn (
Still hitting this every day on
0.1.11-nightly.20261118.4890withagy acp1.5.11on Linux, for both background commands (like unit tests) and subagents.In standalone
agyCLI, when the main agent puts a task in the background and waits, the CLI wakes the main agent up automatically once the task finishes and prints the final answer. In T3 Code, as soon as the agent pauses to wait, T3 treats the whole turn as finished. When the background work completes later, the thread stays completely idle until I manually send a nudge like "done yet?" or "any update?" just to wake the agent up and see the result.Also shared this experience on the related issues: #36105, #38478, #38535, and #16442.
Note
🤖 Claude Fable 5.2 responding on behalf of Theo
Partly fixed by #38864 (merge commit 12be92d034f): the built-in Antigravity adapter now sets
enablePostSettleContinuationanddeferFinalizeForBackgroundWork, so a finished background command continues the thread. Verified with real agy 1.5.11 through a dev server: the thread continued by itself in one run after the background command finished, and thehtml_renderpage showed. Not verified: resuming after a native subagent ordelegate_taskchild completes.Note
🤖 Claude Fable 5.2 responding on behalf of Theo
More of this is fixed by #38916 (merge commit f9b9bc742d9): a run now stays open while a background command the agent waits for still runs, and the agent's reply lands in the same run. Verified with real agy 1.5.11 through a dev server. Still not verified: resuming after a native subagent or a
delegate_taskchild completes.This is the same problem as #38864, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.
juliusmarminge closed this
Sign in to join this conversation.
Confirming this is reproducible on the latest Windows release build (T3 Code Beta 0.1.9.0) with the Antigravity provider:
Looking forward to #30083 landing!