Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Antigravity orchestrator hangs indefinitely after delegated tasks complete (missing post-settle continuation) #17412

Closedhardik88t(GitHub profile, opens in a new tab) opened this issue 4 comments

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

  1. In T3 Code, configure an Antigravity provider (e.g. gemini-3.8-flash-high or gemini-3.1-pro-high).
  2. Start a new thread with Antigravity as the primary agent/orchestrator.
  3. Have the Antigravity orchestrator launch child agents/subagents via the t3-code MCP tool delegate_task with mode: "async" (e.g. delegating review tasks or subagent checks).
  4. Have the Antigravity orchestrator conclude its prompt turn after launching the tasks.
  5. Wait for the delegated child tasks/subagent threads to finish and settle.

Expected behavior

When all child subagents complete:

  1. planDelegatedCompletionDelivery should deliver the completion wake to the parent thread.
  2. T3 Code should automatically initiate a continuation turn on the parent Antigravity session to deliver the subagent results (continuationRequests.offer(...)).
  3. The parent Antigravity agent resumes and processes the child results without manual intervention.

Actual behavior

  1. When child tasks finish, the parent thread remains indefinitely in the "Working" state.
  2. No continuation turn is ever initiated to wake up the Antigravity session.
  3. The parent thread hangs indefinitely until the user manually interrupts or stops it.

Root Cause Analysis

In apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts:

  1. AntigravityProviderCapabilitiesV2 has:
    turns: {
      supportsActiveSteering: false
    }
  2. In makeAntigravityAcpAdapterFlavor, unlike other ACP adapters such as makeGrokAcpAdapterFlavor:
    // makeGrokAcpAdapterFlavor has:
    deferFinalizeForBackgroundWork: true,
    enablePostSettleContinuation: true
    
    // makeAntigravityAcpAdapterFlavor omits both:
    preferResumeSession: true,
    subagentsIdleOnTurnCompletion: true
  3. Because flavor.enablePostSettleContinuation is not enabled, in makeAcpAdapterV2:
    const postSettleContinuationEnabled = flavor.enablePostSettleContinuation === true && continuationRequests !== void 0;
    postSettleContinuationEnabled evaluates to false.
  4. As a result:
    • bufferPostSettleWake and offerContinuationRun never trigger on Antigravity sessions.
    • When child tasks complete and call continuationRequests.offer(...), the Antigravity ACP adapter never converts this into an active continuation prompt for the Antigravity session.
    • Combined with supportsActiveSteering: false, T3 cannot steer an active turn, and cannot resume a settled turn via continuation, leaving Antigravity orchestrators permanently stuck.

Impact

Major degradation or frequent failure

Version or commit

0.0.46-nightly.20261008.2849 (commit d81afa0a6f40)

Environment

Linux x86_64, T3 Code Desktop App Nightly, Antigravity ACP provider (gemini-3.8-flash-high)

Workaround

  1. Use an orchestrator provider that supports native steering and post-settle continuation (e.g., Claude or Codex) as the parent thread, and delegate child tasks to Antigravity.
  2. Alternatively, invoke delegate_task with mode: "wait" and an explicit timeoutMs to keep the call synchronous within the active turn.
  1. Checked current main 70e5e384da. The open-issue scan found no duplicate of the async-child completion wake failure.

    Runtime reproduction is blocked on this Linux VM: the live provider catalog reports Antigravity disabled with no models, and neither antigravity nor antigravity-acp is on PATH. The reported parent/child flow was not run; source inspection alone does not establish reproduction.

    Does this still occur on the latest nightly? Please include the T3 version, Antigravity ACP version, and a sanitized server/provider log excerpt covering the parent turn ending and the final child settling. This also needs verification in an environment with a working Antigravity account.

  2. juliusmarminge added labelsneeds more info

  3. Closing: no reply in 7 days after we asked for more information. Comment with the missing details and we will reopen.

  4. Yes it is actually occurs and it is very annoying

  5. Still reproducing on latest main.

    When Antigravity acts as orchestrator and launches subagents or delegated background tasks, the parent thread remains permanently stuck in the "Working" / "Thinking" state after the subagents finish.

    This is directly related to #28175 (where localharness trajectory gets stuck in STATE_WAITING_FOR_SUBAGENTS / STATE_WAITING_FOR_TASKS and session/prompt never returns, while the UI withholds the final paragraph due to responseStreamingMode: "paragraph").

    Reopening this issue as the subagent continuation logic for Antigravity in AntigravityAdapterV2.ts (enablePostSettleContinuation) is still missing.

Sign in to join this conversation.