Skip to content
Source
Sign inSign up
pingdotgg/t3code

Antigravity CLI 1.5.x: subagents started with invoke_subagent are stopped when the turn ends, so delegated image generation never runs #38535

Closedshahid0(GitHub profile, opens in a new tab) opened this issue 2 comments

Before submitting

  • I searched existing issues and did not find a duplicate. Related issues are linked below.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Set the Antigravity provider's custom executable to the agy CLI 1.5.5, so T3 runs agy acp --gemini-dir <profile> --app-data-dir antigravity-acp.
  2. From a Claude thread, start a delegate_task on Antigravity (gemini-4-hydrogen, thought_level: low, full access) with a task agy hands to a subagent, for example: "Create one app icon image and save it to <folder>/icon.jpg … Don't end your turn while anything you started is still running; wait for it to finish first."
  3. agy calls invoke_subagent with TypeName: "image-generator". On CLI 1.5.x, image generation is only reachable through that subagent.

Expected behavior

The turn, and the delegated task, stays open until the subagent finishes, and the task's result is agy's final reply. At the very least, the subagent keeps running after the turn ends.

Actual behavior

  • agy replies "Waiting for the image generator subagent to finish..." and the turn completes. The delegated task is reported as completed, with that sentence as its result.
  • The subagent's own transcript (antigravity-acp/brain/<subagent conversation>/.system_generated/logs/transcript_full.jsonl) has no steps. Its last write is the same second the parent turn completed (14:41:29 local). No image file is written.
  • The same happens with TypeName: "research". A task that started two research subagents ended at once with "I've launched the research subagents … will report the results once they respond." Both subagent transcripts stop that same second, after at most one search_web and one run_command each, and no result ever arrives.
  • Telling agy in the brief not to end its turn while anything is still running doesn't change this.

In 4 delegated runs today, every subagent or long background command was cut off this way. Background commands are covered in #36105.

Impact

Major degradation or frequent failure. Delegated image generation never completes on the CLI. With the managed 1.4.5 runtime, generate_image is a direct tool and the same task works.

Version or commit

T3 Code 0.1.11-nightly.20261118.4864

Environment

macOS (Darwin 27.0.0), agy CLI 1.5.5 via agy acp, gemini-4-hydrogen. The session runs in default mode, because antigravityCliSessionMode maps yolo to default for the CLI.

Possibly relevant

The Antigravity adapter sets subagentsIdleOnTurnCompletion: true, which marks running subagents as settled when the turn finalizes. agy 1.5.4+ also stops a session's subagents and background tasks when the client cancels the prompt or closes the session.

Workaround

None on the CLI. Leaving the custom executable empty, so T3 uses the managed 1.4.5 runtime, brings back direct generate_image.

  • #36105 (CLI 1.5.x background commands mark the turn done early and the wakeup reply is dropped)
  • #30082 (Antigravity does not resume turns on subagent/background task completion)
  • #16442 (a command still running after the reply is marked completed)
  1. tanstack-source added labelsbug

  2. dimsedra(GitHub profile, opens in a new tab)commented

    Sharing a slightly different data point on 0.1.11-nightly.20261118.4890 with agy CLI 1.5.11 (normal thread, not delegate_task):

    In my case on 1.5.11, when the main agent launched an audit subagent via invoke_subagent and paused to wait for it, T3 immediately ended the turn as soon as the agent finished saying it was being audited.

    The subagent itself did actually finish in the background on 1.5.11, because when I later poked the agent with a follow-up ("done yet?"), it immediately replied using the round-1 audit findings and applied the fixes. The problem is that T3 never woke the main agent back up on its own when the subagent finished, so it did the exact same thing again on round 2 until I poked it a second time.

    Also shared this experience on the related issues: #36105, #38478, #30082, and #16442.

  3. This is the same problem as #30082, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

  4. juliusmarminge closed this

Sign in to join this conversation.