Antigravity swarm-mode steer shows "waiting to be read" while being acted on, then moves below its own answer #49784
What happened#
An Antigravity (gemini-4-neon) thread was running in swarm mode: the root agent was coordinating subagents (@prerender, @monitor) and looping on swarm board reads and waits. While that turn was running, I sent a steer: "Can you set an automation up in this thread to make sure the subagents didn't unexpectedly stop? Make it every 20 mins in this thread".
The agent's thinking traces reacted to the message within seconds, but the badge kept saying "Steer · waiting to be read". When the reply finished, my message showed up in the timeline below the answer it produced ("Scheduled a 20-minute watchdog in this thread…"), so the response reads as if it came before the question. I saw the same thing in both the mobile app and the desktop app.
Diagnosis#
Antigravity uses the prompt-steer boundary from createAntigravityPromptSteerBoundary (apps/server/src/provider/acp/AntigravityProtocol.ts). Its design assumes that agy acp finishes the reply already in flight and then answers the steer in a separate follow-up reply. In this run agy instead folded the steer into the reply it was already writing, with no usage_update boundary in between. The sequence (the ACP adapter is packages/provider-acp/src/server/adapter.ts):
- The steer is queued while the reply is open, so
onSteerQueuedreturns"defer"and the steer goes intopendingPromptSteers. agyaccepts the steer prompt about 2 ms later. The dispatch callback emitssteer.updated: pending(aroundadapter.ts:12187), which the UI shows as "Steer · waiting to be read".agyacts on the steer at once: reasoning starts 7 s later, then aschedule_tasktool call, then the assistant reply. Nothing in the adapter marks the steer as read at this point. The only path that does isreleaseDeferredPromptSteers. The swarm context probably matters here. The last root tool call before the steer was aswarm_wait("Wait for swarm board") that had been blocking since 06:00:38, and the agent resumed only after the steer arrived. It looks like the steer woke the swarm wait and was handled inside the open reply, not after a reply boundary.- The reply ends with
usage_update, soonSessionUpdatereturnsmark_reply_complete. That storescompletedPreSteerReply = lastAssistantReply(context), which is really the reply to the steer, not a reply from before it. - The next output (a new
tool_call) returnsrelease_deferred.releaseDeferredPromptSteersfinalizes that reply, then emits the steer'suser_messageandsteer.updated: completedwithatPromptStart: true. That places the steer item after the reply (position 57, versus 56 for the reply).
So one late release causes both symptoms: the badge stays wrong for the whole reply, and the steer is placed after its own answer. Whenever agy takes in a deferred steer inside the current reply, the boundary mistakes the steer's answer for the pre-steer reply.
An earlier steer in the same thread arrived after a finished reply (hasAssistantReply, so finalize_prior_reply). That one was not deferred and was ordered correctly.
Steps to reproduce#
- Start a thread with the Antigravity provider (agy 1.5.23,
gemini-4-neon) in swarm mode, with the root agent coordinating subagents and looping onread_board/swarm_wait. - After an earlier assistant message in the same turn, while the root agent is parked in "Wait for swarm board", send a steer that asks for a new tool action.
- Watch the thinking/tool output react to the steer within seconds while the badge stays at "Steer · waiting to be read".
- When the reply that answers the steer finishes and the agent starts its next tool call, the badge flips to "Steer" and the message moves below that reply.
Version#
0.1.15-nightly.20261205.5786 (server and desktop; commit be521199aace)
Environment#
macOS (darwin arm64), Node 24.22.1, agy 1.5.23 (antigravity, gemini-4-neon, swarm mode). The steer was sent from the mobile app; both symptoms showed in the mobile and desktop apps.
Evidence#
# provider event log (antigravity thread)
06:06:07.470Z session/prompt started <- steer
06:06:07.472Z session/prompt succeeded <- agy accepted it
# steer user message (projection row)
createdAt 06:06:07.447Z inputIntent "steer"
# turn items, run 3 (ordinal / type / updated_at)
(position 50: swarm_wait "Wait for swarm board" since 9, started 06:00:38Z, still blocking when the steer arrived)
3000021 dynamic_tool 06:06:14.797Z tool_search "schedule_task" (reasoning: "Thread-level automation requests ...")
3000024 dynamic_tool 06:06:30.149Z t3-code.schedule_task
3000025 assistant_message 06:07:08.025Z "Scheduled a 20-minute watchdog in this thread ..."
3000026 user_message 06:07:08.040Z steer (startedAt 06:06:07.447Z, completedAt 06:07:08.040Z)
3000027 dynamic_tool 06:07:08.031Z Read swarm board (first output after usage_update -> release_deferred)
The steer was "waiting to be read" for about 61 s even though agy was visibly working on it after about 7 s.
Related issues#
#49472 reports the same two symptoms (stuck "Steer · waiting to be read" during tool loops, and steers moved after assistant:0) and blames #49057 (e389f8cbcc). It was closed as no-repro because the live check hit hub 429 model_cooldown. This report is a second, simpler reproduction (a single steer, no multi-steer burst) on a nightly build that includes #49057. No commits to AntigravityProtocol.ts or the ACP steer path since that build address it. Also related: #48620.
Fix applied or workaround#
None applied. Steers still reach the agent at once; only the badge and the timeline position are wrong. Workaround: wait for the turn to end before sending, or use a different provider in threads where you steer a lot.
Filed by#
Claude Code (claude-opus-5-5) via t3 triage
joshrad-dev(GitHub profile, opens in a new tab) added labelsvia-triage
tanstack-source added labelsbug
Sign in to join this conversation.