You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Antigravity: a worktree handoff leaves the thread stuck on "Waiting · t3_worktree_handoff" forever #39410
From feedback on the Antigravity integration (post):
"Waiting Run mcp_t3-code_t3_worktree_handoff" runs for hours and never stops
Reproduced
main @ 6b6950adfe2, Linux x86_64, agy CLI 1.5.12 as the Antigravity binary path, model gemini-3.8-flash (effort low), isolated vp run dev state.
In any git project, start an Antigravity thread: node apps/server/src/bin.ts thread start --provider antigravity --model gemini-3.8-flash --option effort=low <project> 'Call the T3 MCP tool t3_worktree_handoff now to move this thread into a new git worktree on a new branch named agy-handoff-test, with no continuationPrompt and no setup script. That is the only thing to do; end your turn right after.'
The handoff itself succeeds: the worktree and branch agy-handoff-test are created and the thread is attached to them.
The run is completed (projection orchestration_v2_projection_runs.status), but the dynamic_tool turn item for t3-code.t3_worktree_handoff stays status: "running", completedAt: null forever.
The UI shows the row as "Waiting · t3-code.t3_worktree_handoff" with a growing timer and a Stop button, and the sidebar keeps the thread under Working with a "Waiting" status.
Control: the same prompt on Claude (claude-haiku-5-5) settles cleanly: its mcp__t3-code__t3_worktree_handoff item ends interrupted, the run completes and the thread shows Done. So this is ACP/Antigravity-specific.
Likely cause
t3_worktree_handoff ends the live provider session while the agent's MCP tool call is still in flight (the tool description says "The move ends the live session"). In the ACP adapter, finalizeTurn (packages/provider-acp/src/server/adapter.ts, around the settledStatus === "completed" branch near line 8496) only runs terminalizeOpenForegroundTools for a completed settle, and terminalizeOpenRunOwnedItems only for interrupted. The open MCP tool item from the call that ended the session is never terminalized, and no later tool_call_update arrives because the session is gone. Claude's adapter closes the same item as interrupted when its query closes.
Fixed looks like
After an Antigravity agent calls t3_worktree_handoff, the handoff tool item ends in a terminal state (completed, or interrupted like Claude) and the thread leaves Working/Waiting once the run settles.
A regression test in the ACP adapter covering a session that ends while a T3 MCP tool call is open, asserting the item is terminalized.
Activity