[Bug]: Parked Antigravity /swarm workers (swarm_wait) transition to idle and move to Previous agents instead of staying active as waiting #49604
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, apps/web
Steps to reproduce#
- Start an Antigravity thread in T3 Code (
runtimeMode: "full-access"). - Run
/swarmand spawn a worker that waits on the board viaswarm_wait(enteringphase: "RUNNING",wake_mode: "mentions"or"anything"in.system_generated/swarm/members.json). - Watch the right-hand Thread Relationships (Lineage) panel once the worker parks on
swarm_wait.
Expected behavior#
A live swarm worker that is parked on swarm_wait (phase: "RUNNING", wake_mode: "mentions" | "anything", not killed/stopped) should stay visible in Active Lineage with status waiting, distinguishing it from killed/stopped/finished workers while still allowing the coordinator turn to settle normally.
Actual behavior#
As soon as a swarm worker parks on swarm_wait, T3 Code transitions its subagent status to idle and moves it out of Active Lineage into Previous agents, making live standby workers look finished until a later turn wakes them back to running.
Impact#
Minor bug or occasional 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 to #45156 (closed after #46929 fixed idle→running reactivation and live transcript resumption, while leaving parked workers in idle).
On main (307dc643d0c2d1e1cec87a304f78be18e92722e4):
apps/server/src/provider/acp/AntigravityChildWork.ts(lines 1372-1376, 1675-1676, 1715):readAntigravityChildrenAtWorkskipsmember.parked(wake_mode === "mentions" || "anything") identically tomember.killedandmember.stopped, returning only a binaryatWorkset.packages/provider-acp/src/server/adapter.ts(lines 6119-6129):reconcileOutlivingSubagentsunconditionally emitsstatus: "idle"for every candidate absent fromatWork, collapsing live parked workers into the same status as killed/stopped/finished children.apps/web/src/components/chat/ThreadRelationshipsControl.tsx(lines 171-172):isFinishedAgentStatusclassifies"idle"as finished (["completed", "failed", "error", "cancelled", "interrupted", "idle"]), moving parked workers into Previous agents.
Note that "waiting" is already a first-class status in OrchestrationV2 (packages/contracts/src/orchestrationV2.ts:1008, 1137), is already handled as active in ThreadRelationshipsControl.tsx (lines 927, 929), and does not block turn settlement (acpSubagentStatusBlocksTurnSettlement at packages/provider-acp/src/server/adapter.ts:2578-2580 only returns true for "running" | "pending"). Distinguishing parked (waiting) from killed/stopped (idle / terminal) in AntigravityChildWork + reconcileOutlivingSubagents would keep standby swarm workers visible in Active Lineage without blocking coordinator turn completion.
Workaround#
Expand Previous agents in the Lineage panel to find parked workers until they are woken again in a later turn.
tanstack-source added labelsbug
Sign in to join this conversation.
Seen on T3 Code 0.1.15-nightly.20261205.5786 (macOS arm64; viewing from the iOS app). That build already includes #46929 (
c1cb1f6), but the reactivation it added didn't happen here.What happened:
/swarmthread, the coordinator added@prerenderand@monitor(05:13 UTC).@prerenderstarted a long headless Blender render via a backgroundrun_commandand parked waiting for it to finish. T3 projected both subagents asidleby 05:13:51 / 05:14:27, so they moved to Previous agents while the render was still writing files.@prerender … please resume,@monitor resume) with no newswarm add. Antigravity's swarm status reported both asworking, and renders resumed (~150 new files in 5 minutes).idlewith their last update at 05:13–05:14 for the whole second turn, so the thread said "2 subagents running" while the agents panel showed none active.Why it matters beyond display:
promptInactivityPaused(packages/provider-acp/src/server/adapter.ts) only pauses the watchdog for subagents inrunning/pending. A worker shown asidle(orwaiting, as proposed here) whose background command is still running doesn't hold off the watchdog, which then kills theagyprocess and the command with it (#45844, fix in #46824). If parked workers becomewaiting, the watchdog probably also needs to treat awaitingworker with a running command as active.Produced by Claude Opus 5.5 (claude-opus-5-5) via Claude Code, running T3 Code's triage playbook.