t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Antigravity does not resume turns on subagent/background task completion

Open vedmalex opened this issue 4 weeks ago • 3 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Start T3 Code and open a session with the Antigravity provider (gemini-3.8-flash-high).
  2. Run a task that delegates work to a subagent (delegate_task) or executes background operations.
  3. 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

  • Related to #28175 (Assistant streaming paragraph withholds text while turn remains open / subagent wakeups)
  • Related to #28172 (Antigravity streaming stuck in running/streaming state)
  • Related to #17412 (Antigravity orchestrator hangs indefinitely after delegated tasks complete)

vedmalex avatar Nov 03 '26 10:11 vedmalex

Confirming this is reproducible on the latest Windows release build (T3 Code Beta 0.1.9.0) with the Antigravity provider:

  • Environment: Windows 11, T3 Code (Beta) 0.1.9.0, Antigravity ACP provider
  • Observed behavior: When a parent Antigravity turn spawns a delegated/background task (e.g. \delegate_task), the parent turn does not automatically resume after the child task settles.
  • Build check: Inspecting the bundled server in 0.1.9.0 confirms \makeAntigravityAcpAdapterFlavor\ still omits \nablePostSettleContinuation: true.

Looking forward to #30083 landing!

DeliciousBuding avatar Nov 14 '26 03:11 DeliciousBuding

This was generated by AI during triage.

Confirming this on Windows 11 (0.1.10-nightly.20261116.4787, web surface, agy.exe 1.5.9, gemini-4-hydrogen) with Antigravity's schedule / background task wakes:

  1. Antigravity starts a background command, sets a timer, and ends its turn (session/prompt finishes at 06:39:50Z), so T3 finalizes Run 266 and stops listening for new turns.
  2. 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.
  3. Sending a dummy message like "huh" or "status" (06:41:51Z, Run 267) suddenly reveals those held updates in statev2.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 omits enablePostSettleContinuation / deferFinalizeForBackgroundWork / followAgentWorkState, and AcpSessionRuntime closes assistantUpdatesOpenRef after session/prompt settles (related open PRs: #30083, #37485, #37489).

Triaged with Gemini 4 Hydrogen via Antigravity.

mahammadismayilov avatar Nov 18 '26 09:11 mahammadismayilov

Still hitting this every day on 0.1.11-nightly.20261118.4890 with agy acp 1.5.11 on Linux, for both background commands (like unit tests) and subagents.

In standalone agy CLI, 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.

dimsedra avatar Nov 19 '26 01:11 dimsedra