Skip to content

[Bug]: Antigravity /swarm has no live board UI, loses worker Lineage status after swarm_wait, leaks child tool calls to parent timeline, and stops live updates #45156

Backlog

Description

@mzloe

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 and apps/web (Antigravity ACP provider adapter + Lineage UI)

Summary

Running an Antigravity /swarm session in T3 Code hits four linked defects that prevent watching live swarm activity:

  1. No /swarm board view or alt+s shortcut exists, even though Antigravity returns open_board: "Run /swarm board (default shortcut alt+s) to open the live board." and writes .system_generated/swarm/{plan.json,board.jsonl,members.json}.
  2. Parked swarm workers (wake_mode: "mentions" or "anything") transition permanently to status: "idle", move out of Active Lineage into Previous, and never reactivate when later woken by post_message.
  3. Live child tool calls arrive on the coordinator's ACP stream with toolCallId prefixed by <childConversationId>:<callId>, leak directly into the parent thread timeline, and never route to the worker's Lineage thread.
  4. No live updates stream for active workers after the coordinator turn ends, because transcript polling stops once the launch turn settles or the worker parks.
sequenceDiagram
    participant Coord as Coordinator turn
    participant ACP as Antigravity ACP
    participant Adapter as provider-acp/adapter.ts
    participant ParentUI as Parent timeline
    participant ChildUI as Worker Lineage thread

    Coord->>ACP: swarm(add) @integrator
    ACP-->>Adapter: tool_call swarm add (conversation_id=6f7a...)
    Adapter-->>ChildUI: create thread:subagent:bdd0... (running)
    Note over ACP,Adapter: @integrator calls swarm_wait (wake_mode="mentions")
    Adapter->>Adapter: readAntigravityChildrenAtWork skips parked worker
    Adapter-->>ChildUI: status = "idle" (moves to Previous, stops follower)
    Coord->>ACP: post_message "@integrator apply fixes" (later turn)
    ACP-->>Adapter: tool_call_update id="6f7a...:call_1479..."
    Adapter-->>ParentUI: emits worker edits on parent timeline
    Note over ChildUI: stays frozen at status="idle", itemCount=10
Loading

Steps to reproduce

  1. Start an Antigravity thread in T3 Code (runtimeMode: "full-access").
  2. Run /swarm and add parallel workers plus a downstream worker that waits on the board (for example time-travel, forget, evidence, and an integrator that calls swarm_wait).
  3. Try running /swarm board or pressing alt+s as instructed by open_board.
  4. Watch the Lineage panel while the initial workers run, and then after the coordinator wakes integrator in a later turn via post_message.

Expected behavior

  • A Swarm Board view (or clear handling of /swarm board / alt+s) shows plan.json, members.json, and the live board.jsonl feed.
  • Live swarm workers stay visible in Active Lineage while running or waiting on the board, and transition back to running whenever woken by post_message.
  • Worker tool calls and transcript steps stream live into each worker's own Lineage thread, leaving the coordinator timeline focused on coordinator actions.

Actual behavior

  • /swarm board and alt+s do nothing; no UI renders .system_generated/swarm/{plan.json,board.jsonl,members.json}.
  • @integrator (thread:subagent:bdd01d497d674b0c) transitioned to status: "idle" 21 seconds after launch (20:42:52Z, itemCount: 10) when it called swarm_wait, moved into Previous in Lineage, and stayed frozen at itemCount: 10 through 30+ minutes of later work across multiple board wakes (20:50Z to 21:16Z).
  • @time-travel (thread:subagent:e3e19371bf048929) finished at 20:49:48Z, but its Lineage thread did not update until 21:00:25Z when the coordinator turn woke up.
  • Live file edits and reads executed by @integrator leaked onto the parent thread timeline with item IDs embedding @integrator's conversation ID (6f7a1cc7-31cf-4220-b2bb-e0644d38e44b).
  • Because those leaked child tool calls kept arriving on parent run ordinal: 22 (21:06:34Z to 21:12:09Z), a follow-up user message (ordinal: 23, 21:09:34Z) sat unstarted and ended cancelled.

Evidence (observed thread state and code pointers)

  • Live /swarm board trace:
    • apps/web/src/composer-logic.ts:29 handles only "model" | "side" | "btw" | "clear", and apps/web/src/keybindings.ts has no alt+s or swarm keybinding.
    • Sending /swarm board in the composer forwards it verbatim to agy acp as a user prompt; agy acp matches the leading /swarm token, injects builtin/skills/native_swarm/SKILL.md, and starts a new coordinator LLM turn with board as literal text instead of opening a board panel:
      User types "/swarm board"
        -> composer-logic.ts (not in "model" | "side" | "btw" | "clear")
        -> forwarded to agy acp as user prompt
        -> agy acp expands /swarm skill (native_swarm/SKILL.md)
        -> starts new coordinator LLM turn instead of opening a Swarm Board UI
      
  • Leaked child tool calls on parent thread (t3_thread_read activity):
    • position: 382: itemId: "...:tool:6f7a1cc7-31cf-4220-b2bb-e0644d38e44b:call_14795061380707245429" (file edit by @integrator emitted on parent thread)
    • position: 412: itemId: "...:tool:6f7a1cc7-31cf-4220-b2bb-e0644d38e44b:call_4705291365296521949" (Read SKILL.md by @integrator emitted on parent thread)
  • Frozen worker Lineage thread:
    • thread:subagent:bdd01d497d674b0c (@integrator): status: "idle", itemCount: 10, updatedAt: "2026-11-28T20:42:52.299Z", even though .system_generated/swarm/members.json reached last_read_seq: 18 at 21:15:58Z.
  • Exact root causes in pingdotgg/t3code:
    1. No Swarm Board UI: apps/server/src/provider/acp/AntigravityProtocol.ts:783-1011 formats swarm tool titles and AntigravityChildWork.ts:1291-1317 reads members.json only for killed/parked, but no file in apps/web/ or apps/server/ reads plan.json, board.jsonl, or implements /swarm board / alt+s.
    2. One-way "idle" latch on parked workers: apps/server/src/provider/acp/AntigravityChildWork.ts:1313 and 1623 skip workers with wake_mode in ["mentions", "anything"]. packages/provider-acp/src/server/adapter.ts:5467-5487 marks them "idle", which terminates startSubagentTranscriptFollower (adapter.ts:4727-4755, guarded by acpSubagentStatusBlocksTurnSettlement). apps/web/src/components/chat/ThreadRelationshipsControl.tsx:169-170 classifies "idle" as finished (isFinishedAgentStatus), moving live workers out of Active Lineage.
    3. Per-turn context.subagents scope drops cross-turn wakes: context.subagents lives on a single ActiveAcpTurn (adapter.ts:1931). When the coordinator wakes an existing worker in a later turn via post_message, context.subagents is empty, subagentsOutlivingPrompt returns early (adapter.ts:5465), and no transcript follower runs for the woken worker.
    4. Unrouted <childConversationId>:<callId> tool notifications: emitTool (adapter.ts:5563-5602) records incoming tool calls directly on context.tools for the parent turn without matching UUID-prefixed toolCallIds against known child conversation_ids.

Suggested fixes

 # 1. Route child-prefixed tool calls to the worker thread (AntigravityAdapterV2 / adapter.ts)
 emitTool(context, incoming)
+  if incoming.toolCallId matches "<childConversationId>:<callId>" for a known swarm worker
+    route tool_call / tool_call_update to that worker's subagent thread
+    mark worker status = "running" (and keep parent turn free of child tool pollution)
+    return
   record on parent context.tools

 # 2. Session-scoped swarm roster tracking (AntigravityChildWork.ts + adapter.ts)
-ActiveAcpTurn.subagents (lost when launch turn finishes)
+Session-scoped swarmWorkers map synced with .system_generated/swarm/members.json
   wake_mode == "working" -> status = "running", keep/restart transcript follower
   wake_mode in ("mentions", "anything") -> status = "waiting" (alive, not finished)
   phase == "KILLED" or SUBAGENT_STATE_KILLED -> terminal status ("completed" / "cancelled")

 # 3. Lineage active grouping (ThreadRelationshipsControl.tsx:169-170)
-isFinishedAgentStatus = ["completed", "failed", "error", "cancelled", "interrupted", "idle"]
+keep "waiting" swarm workers in Active Lineage; treat only terminal states as Previous

 # 4. Swarm Board view (apps/web + apps/server)
+Watch .system_generated/swarm/{plan.json,members.json,board.jsonl} and render a Swarm Board panel
+(triggered by /swarm board or alt+s), or suppress the unsupported open_board CLI prompt until built.

Impact

Major degradation or frequent failure (live swarm progress is invisible in T3 Code and parent turns get polluted by child tool calls).

Environment

  • OS: Arch Linux (7.3.6-arch1-1)
  • Provider: Antigravity ACP (runtimeMode: "full-access")

Workaround

Call swarm{action:"status"} and read_board manually inside the coordinator thread to inspect worker state and board posts.

Activity

  1. LU90210 commented on Dec 1, 2026

    @LU90210

    Confirming this on T3 Code 0.1.13 (macOS arm64, agy 1.5.13, Gemini /swarm), and adding one more root cause observed on main (1570be59) that also drops live workers out of the working state in the right-hand Thread Relationships (Lineage) panel:

    Additional root cause in AntigravityChildWork.ts

    In readAntigravityChildrenAtWork, reported collects every message.sender ever written to the coordinator's .system_generated/messages/*.json inbox, and line 1621 short-circuits before checking members.json:

    for (const childId of childIds) {
      if (reported.has(childId)) continue;
      const swarmMember = swarmMembers.get(childId);
      if (swarmMember?.killed === true || swarmMember?.parked === true) continue;

    In a /swarm session, whenever a worker posts a board update that nudges the coordinator, Antigravity writes a message into the coordinator's inbox with sender: "<workerConversationId>" and content: "[swarm] new board message #N". Once that first message lands in the coordinator's inbox, reported.has(childId) stays true for the rest of the session — so the worker is permanently omitted from atWork even when .system_generated/swarm/members.json currently shows "phase": "RUNNING" and "wake_mode": "working".

    Live reproduction evidence (0.1.13, agy 1.5.13)

    In a 5-worker Gemini /swarm session:

    • @monitor had "phase": "RUNNING" and "wake_mode": "working" in .system_generated/swarm/members.json, yet its Lineage thread remained stuck at status: "idle" after an earlier [swarm] new board message inbox notification was delivered to the coordinator.
    • @writer and @verifier were woken across later turns and actively executed through transcript steps 81 and 88 respectively, while their Lineage threads stayed frozen at status: "idle" (item counts 26 and 6) for 45+ minutes in the Thread Relationships panel.

    Requested behavior

    • Drive Swarm worker Lineage status from session-scoped .system_generated/swarm/members.json (wake_mode: "working" → running, wake_mode: "mentions" | "anything" → active waiting rather than finished idle, killed: true / phase: "KILLED" → terminal).
    • Avoid letting historical [swarm] new board message #N inbox notices in readAntigravityChildrenAtWork override an active swarm worker's wake_mode: "working" state.
    • Transition parked swarm workers back to working/running in the Thread Relationships panel (and resume transcript polling) whenever they wake up in later turns.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions