[Bug]: Antigravity /swarm worker tool calls (<childConversationId>:<callId>) leak onto the coordinator timeline #49605
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#
- Start an Antigravity thread in T3 Code (
runtimeMode: "full-access"). - Run
/swarmwith workers that perform file reads/edits (including a downstream worker parked onswarm_waitthat is woken in a later turn viapost_message). - Observe the coordinator (parent) thread timeline while workers execute tool calls.
Expected behavior#
Worker tool calls arriving with toolCallId prefixed <childConversationId>:<callId> should be routed to that worker's own subagent thread (or suppressed from parent projection when the worker transcript follower already ingests them), leaving the coordinator timeline focused on coordinator actions without interfering with follow-up user turns.
Actual behavior#
- Worker file edits and file reads arrive on the coordinator's ACP stream with
<childConversationId>:<callId>IDs (for example...:tool:6f7a1cc7-31cf-4220-b2bb-e0644d38e44b:call_14795061380707245429and...:tool:6f7a1cc7-31cf-4220-b2bb-e0644d38e44b:call_4705291365296521949) and leak directly onto the parent coordinator timeline. - In multi-turn sessions, leaked child tool calls continuing on an active parent run also coincided with a follow-up user message sitting unstarted and ending
cancelled.
Impact#
Major degradation or frequent failure
Version or commit#
main @ 307dc643 (also observed on T3 Code 0.1.13 / v0.1.14-nightly)
Environment#
macOS arm64, Antigravity (agy 1.5.13+), Gemini /swarm
Context & root cause on main#
Follow-up tracking issue split out from #45156 (which was closed after partial fix #46929 merged to main, before child tool call routing landed).
- Related open PRs currently targeting this area (none merged yet on
main@307dc643): #49158, #46935, #46915. - Related non-Swarm issue: #46894 (
invoke_subagentchild tool cards splitting a parent reply).
On main (307dc643d0c2d1e1cec87a304f78be18e92722e4):
apps/server/src/provider/acp/AntigravityProtocol.ts:583-587(normalizeAntigravitySessionUpdate) does not re-address<childConversationId>:<callId>tool updates to the worker's child session.packages/provider-acp/src/server/adapter.ts:6247-6286(emitTool) records incoming tool calls directly on the parent turn'scontext.toolswithout matching UUID-prefixedtoolCallIds against known swarm workerconversation_ids.
Workaround#
None; child tool cards remain mixed into the coordinator timeline until routed away.
tanstack-source added labelsbug
Sign in to join this conversation.