[Bug] Antigravity's 15-minute watchdog shuts down ACP while a native Swarm worker is active #45844
Area#
apps/server and packages/provider-acp (built-in Antigravity provider)
What happened#
In a regular Antigravity thread using native /swarm, the coordinator posted work to an existing worker and waited for the board. Its ACP session/prompt stayed open. T3's 15-minute prompt inactivity watchdog then failed the turn and sent SIGTERM to the Antigravity ACP process. The worker's native transcript recorded completed steps 21 seconds before termination. T3 showed a Provider error saying Antigravity had sent nothing for 15 minutes.
I observed this twice in the same thread on macOS arm64:
- T3 Code
0.1.14-nightly.20261129.5425with Antigravity ACP1.5.18. - T3 Code
0.1.14-nightly.20261130.5465with Antigravity ACP1.5.20, after updating and continuing the thread.
Observed sequence#
- Start native
/swarmin a regular T3 Antigravity thread. The coordinator adds a worker, and T3 records it as a native subagent. - Let the worker report and become idle. Have the coordinator send a follow-up on the swarm board to wake the same worker and wait for its result.
- The worker keeps making progress in its own conversation. The coordinator sends no further progress that T3 counts toward the deadline, and the watchdog fires while its prompt is still pending.
This sequence comes from the affected runs. I have yet to reproduce it in an isolated minimal workspace.
Evidence on Nightly 5465 with ACP 1.5.20#
Times are relative to the coordinator's last recorded progress.
| Elapsed | Source | Observation |
|---|---|---|
| 00:00 | T3 turn items and native swarm board | Coordinator posts to the existing worker. T3 records Wait for swarm board as completed. The ACP prompt remains pending. |
| 14:39 | Native worker transcript | The worker records two completed steps. |
| 15:00 | T3 server trace | orchestration-v2.acp-prompt-inactive, timeoutMillis: 900000. The provider log records session/prompt interrupted. |
| 15:00 | Antigravity ACP server log | The process receives SIGTERM and shuts down. |
Expected behavior#
A native Swarm worker that resumes work should prevent the inactivity watchdog from retiring the coordinator's pending prompt while that worker is active. A genuinely inactive prompt can still time out.
Where to look#
In the affected thread, T3 had recorded the worker as idle after its earlier report. The coordinator reused that worker without a new swarm add, and T3 recorded no new subagent activity for that worker in the timed-out turn. The native transcript confirms it had resumed. One possibility is that promptInactivityPaused only sees active tools and subagents tracked by the current ACP turn, so a previously idle worker may need to be rechecked against the native Swarm roster before retiring the prompt. The logs do not establish whether agy sent a worker wake event over ACP.
Related reports are #44371 (the same watchdog during a CI wait), #34160 (the same timeout message, closed after a host sleep fix), and #39886 (workers stopped after the coordinator prompt completed, with native worker display added in #42649). In this case the watchdog fired on an open prompt while a native worker was still executing.
tanstack-source added labelsbug
itsthecsguy(GitHub profile, opens in a new tab) linked this to #46824
Sign in to join this conversation.
Another occurrence on T3 Code 0.1.15-nightly.20261205.5786 (desktop app, macOS arm64; client was the iOS app), twice in one thread, 20 minutes apart.
Setup: native
/swarmin a regular Antigravity thread (gemini-4-neon). The coordinator added@prerender, which started a long-running headless Blender render via a backgroundrun_commandand parked waiting for it, plus@monitor. T3 recorded both subagents asidlewithin about a minute of creation.Sequence:
session/promptopens; workers added around 05:13–05:14orchestration-v2.acp-prompt-inactive,timeoutMillis: 900000;session/promptInterrupted after 940067 ms;AcpSessionRuntime.retireRuntime. Theagy acpprocess, the swarm workers and the Blender child process all exit.@prerender … resume/@monitor resumeto the board (no newswarm add). Renders resume.session/promptInterrupted after 909878 ms. Rendering stops mid-batch (33 of 238 images written).Two details beyond the original report:
AntigravityTurnOutcome.checkresolved the retired prompt ascompleted, so both runs finished as completed, not with the "sent nothing for 15 minutes" provider error. From the user's side the thread just stopped and the workers were gone.agyprocess, so retiring the runtime killed the real work too.promptInactivityPausedonly looks atcontext.subagentsfor the current turn. The revived workers were never added back to that set, and the original entries had been projectedidle. This also matches #49604 for why they didn't appear as active in the UI.PR #46824 looks like the fix for this.
Produced by Claude Opus 5.5 (claude-opus-5-5) via Claude Code, running T3 Code's triage playbook.