Repository navigation
Backlog
Description
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:
- No
/swarm boardview oralt+sshortcut exists, even though Antigravity returnsopen_board: "Run /swarm board (default shortcut alt+s) to open the live board."and writes.system_generated/swarm/{plan.json,board.jsonl,members.json}. - Parked swarm workers (
wake_mode: "mentions"or"anything") transition permanently tostatus: "idle", move out of Active Lineage into Previous, and never reactivate when later woken bypost_message. - Live child tool calls arrive on the coordinator's ACP stream with
toolCallIdprefixed by<childConversationId>:<callId>, leak directly into the parent thread timeline, and never route to the worker's Lineage thread. - 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
Steps to reproduce
- Start an Antigravity thread in T3 Code (
runtimeMode: "full-access"). - Run
/swarmand add parallel workers plus a downstream worker that waits on the board (for exampletime-travel,forget,evidence, and anintegratorthat callsswarm_wait). - Try running
/swarm boardor pressingalt+sas instructed byopen_board. - Watch the Lineage panel while the initial workers run, and then after the coordinator wakes
integratorin a later turn viapost_message.
Expected behavior
- A Swarm Board view (or clear handling of
/swarm board/alt+s) showsplan.json,members.json, and the liveboard.jsonlfeed. - Live swarm workers stay visible in Active Lineage while running or waiting on the board, and transition back to
runningwhenever woken bypost_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 boardandalt+sdo nothing; no UI renders.system_generated/swarm/{plan.json,board.jsonl,members.json}.@integrator(thread:subagent:bdd01d497d674b0c) transitioned tostatus: "idle"21 seconds after launch (20:42:52Z,itemCount: 10) when it calledswarm_wait, moved into Previous in Lineage, and stayed frozen atitemCount: 10through 30+ minutes of later work across multiple board wakes (20:50Zto21:16Z).@time-travel(thread:subagent:e3e19371bf048929) finished at20:49:48Z, but its Lineage thread did not update until21:00:25Zwhen the coordinator turn woke up.- Live file edits and reads executed by
@integratorleaked 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:34Zto21:12:09Z), a follow-up user message (ordinal: 23,21:09:34Z) sat unstarted and endedcancelled.
Evidence (observed thread state and code pointers)
- Live
/swarm boardtrace:apps/web/src/composer-logic.ts:29handles only"model" | "side" | "btw" | "clear", andapps/web/src/keybindings.tshas noalt+sor swarm keybinding.- Sending
/swarm boardin the composer forwards it verbatim toagy acpas a user prompt;agy acpmatches the leading/swarmtoken, injectsbuiltin/skills/native_swarm/SKILL.md, and starts a new coordinator LLM turn withboardas 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_readactivity):position: 382:itemId: "...:tool:6f7a1cc7-31cf-4220-b2bb-e0644d38e44b:call_14795061380707245429"(file edit by@integratoremitted on parent thread)position: 412:itemId: "...:tool:6f7a1cc7-31cf-4220-b2bb-e0644d38e44b:call_4705291365296521949"(Read SKILL.mdby@integratoremitted 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.jsonreachedlast_read_seq: 18at21:15:58Z.
- Exact root causes in
pingdotgg/t3code:- No Swarm Board UI:
apps/server/src/provider/acp/AntigravityProtocol.ts:783-1011formats swarm tool titles andAntigravityChildWork.ts:1291-1317readsmembers.jsononly forkilled/parked, but no file inapps/web/orapps/server/readsplan.json,board.jsonl, or implements/swarm board/alt+s. - One-way
"idle"latch on parked workers:apps/server/src/provider/acp/AntigravityChildWork.ts:1313and1623skip workers withwake_modein["mentions", "anything"].packages/provider-acp/src/server/adapter.ts:5467-5487marks them"idle", which terminatesstartSubagentTranscriptFollower(adapter.ts:4727-4755, guarded byacpSubagentStatusBlocksTurnSettlement).apps/web/src/components/chat/ThreadRelationshipsControl.tsx:169-170classifies"idle"as finished (isFinishedAgentStatus), moving live workers out of Active Lineage. - Per-turn
context.subagentsscope drops cross-turn wakes:context.subagentslives on a singleActiveAcpTurn(adapter.ts:1931). When the coordinator wakes an existing worker in a later turn viapost_message,context.subagentsis empty,subagentsOutlivingPromptreturns early (adapter.ts:5465), and no transcript follower runs for the woken worker. - Unrouted
<childConversationId>:<callId>tool notifications:emitTool(adapter.ts:5563-5602) records incoming tool calls directly oncontext.toolsfor the parent turn without matching UUID-prefixedtoolCallIds against known childconversation_ids.
- No Swarm Board UI:
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.
Metadata
Metadata
Assignees
Labels
No labels
Activity
test(server): Antigravity swarm worker tool calls stay off the coordi…
fix(server): the run that wakes an Antigravity swarm worker takes it …
fix(server): Antigravity addresses a swarm worker's calls to the work…
LU90210 commentedon Dec 1, 2026
Confirming this on T3 Code
0.1.13(macOS arm64,agy 1.5.13, Gemini/swarm), and adding one more root cause observed onmain(1570be59) that also drops live workers out of theworkingstate in the right-hand Thread Relationships (Lineage) panel:Additional root cause in
AntigravityChildWork.tsIn
readAntigravityChildrenAtWork,reportedcollects everymessage.senderever written to the coordinator's.system_generated/messages/*.jsoninbox, and line 1621 short-circuits before checkingmembers.json:In a
/swarmsession, whenever a worker posts a board update that nudges the coordinator, Antigravity writes a message into the coordinator's inbox withsender: "<workerConversationId>"andcontent: "[swarm] new board message #N". Once that first message lands in the coordinator's inbox,reported.has(childId)staystruefor the rest of the session — so the worker is permanently omitted fromatWorkeven when.system_generated/swarm/members.jsoncurrently shows"phase": "RUNNING"and"wake_mode": "working".Live reproduction evidence (
0.1.13,agy 1.5.13)In a 5-worker Gemini
/swarmsession:@monitorhad"phase": "RUNNING"and"wake_mode": "working"in.system_generated/swarm/members.json, yet its Lineage thread remained stuck atstatus: "idle"after an earlier[swarm] new board messageinbox notification was delivered to the coordinator.@writerand@verifierwere woken across later turns and actively executed through transcript steps 81 and 88 respectively, while their Lineage threads stayed frozen atstatus: "idle"(item counts 26 and 6) for 45+ minutes in the Thread Relationships panel.Requested behavior
.system_generated/swarm/members.json(wake_mode: "working"→running,wake_mode: "mentions" | "anything"→ activewaitingrather than finishedidle,killed: true/phase: "KILLED"→ terminal).[swarm] new board message #Ninbox notices inreadAntigravityChildrenAtWorkoverride an active swarm worker'swake_mode: "working"state.working/runningin the Thread Relationships panel (and resume transcript polling) whenever they wake up in later turns.