Repository navigation
Description
What happened
An Antigravity thread in the desktop app kept showing the ? Input status in the sidebar, but opening the thread showed no question to answer. The thread was not blocked: the agent kept working and later turns completed normally. The badge stayed until the orphaned request was cleared by hand in the database.
Diagnosis
Two pieces combine:
1. Antigravity elicitation ids are reused after a server restart. The ACP adapter builds the native request id (also used as the native item id) as ${elicitationScopeId}:elicitation:${ordinal}, where the scope is the ACP sessionId and the ordinal comes from a Ref.make(0) created with the adapter runtime:
packages/provider-acp/src/server/adapter.ts#L2466(nextElicitationOrdinal = yield* Ref.make(0))packages/provider-acp/src/server/adapter.ts#L7797-L7807
After a restart the native Antigravity session is resumed with the same sessionId, but the counter starts again at 0. The first question asked after the restart gets the same native item id as the first question asked before it. The node id and the user_input_request turn item id derive from that native item id, so the new question takes over the old question's node and turn item. Other ACP item ids include the turn (…:turn:7:reasoning:0); elicitation ids do not.
2. Recovery deliberately keeps the old question pending. On startup, ProviderRuntimeRecoveryService keeps a pending user_input request that has a visible question, switches it to responseCapability: { type: "message" }, and excludes its node and turn item from cancellation (ProviderRuntimeRecoveryService.ts#L292-L320, #L649-L658). That is intended, so the user can still answer after a restart.
Once (1) overwrites the turn item, the old request is left pending with no user_input_request item whose requestId matches it:
- The sidebar counts any pending request straight from
orchestration_v2_projection_runtime_requests(ProjectionStore.ts#L8516-L8524), so it shows ? Input. derivePendingThreadRequestsskips auser_inputrequest with no matching turn item (packages/client-runtime/src/state/threadRequests.ts), so the thread shows nothing.- Dismiss and answer both need that turn item (
Orchestrator.tsrespond path;t3_pending_request readfails with "The pending user-input request was not found."), so the user has no way to clear it.
main still creates the counter the same way (adapter.ts around L3002 and L8867-L8877 at the time of filing), so newer nightlies are likely affected.
Possible fixes: scope the elicitation id by turn or by a value that survives restarts (as other ACP item ids do), and/or have the shell's pending count ignore requests the thread view cannot render, as the client already does.
Steps to reproduce
- In the desktop app, start an Antigravity thread and get the agent to call
ask_question. Leave the question unanswered. - Restart the server while the question is pending (here: the PC was shut down overnight and turned back on). On startup, recovery cancels the run ("Server restarted" notice) and leaves the request
pendingwithresponseCapability.type = "message". - Send a new message in the same thread so the agent asks another question in the resumed native session. It gets the same
<sessionId>:elicitation:0id. - Answer the new question.
- Observe: the sidebar still shows ? Input, the thread shows no question, and
t3_pending_request liststill returns the pre-restart request id, whilereadon it fails.
Steps 1–4 match the recorded state exactly. I did not re-run them on a fresh thread.
Version
0.1.12-nightly.20261124.5209 (desktop app, Nightly channel; the local server reported this version, and the server process started after the restart)
Environment
Windows 11 Pro 10.0.26200 x64, T3 Code desktop (Nightly), provider Antigravity (model gemini-4-neon). Triage CLI 0.1.12-nightly.20261124.5209 on Node v24.22.1.
Evidence
# orchestration_v2_projection_runtime_requests for the affected thread (ids shortened)
…turn%3A7:native-request:<session>%3Aelicitation%3A0:0b965cb6… user_input pending created 01:05:49Z resolved_at null responseCapability {type:"message"}
…turn%3A8:native-request:<session>%3Aelicitation%3A0:fde344c0… user_input resolved created 12:56:55Z resolved 13:00:57Z
…turn%3A8:native-request:<session>%3Aelicitation%3A1:9306f8aa… user_input resolved created 13:01:14Z resolved 13:02:21Z
# Only pending request in the whole database: the turn-7 one.
# Both elicitation:0 requests point at the same node id; that node now belongs to run 8:
node …native-item:provider-instance%3Aantigravity%3A<session>%3Aelicitation%3A0 run ordinal 8 completed
# Only one user_input_request turn item exists for elicitation:0, in run 8, with requestId …fde344c0 (the turn-8 request).
# Run 7 (turn 7): cancelled at 12:54:00.140Z, with a "Server restarted" system_notice; its ask_question
# tool call and todo_list were cancelled. Server process started at 12:53:50Z. Run 8 started 12:54:04Z.Related issues
#41219: same symptom class (a pending message-mode user_input request left with a stuck input badge), but triggered by checkpoint rollback rather than an elicitation id collision after a restart. Fixing the badge/derivation mismatch would help both; the id collision is specific to this report.
Fix applied or workaround
With the user's approval, one row in orchestration_v2_projection_runtime_requests was changed from pending to resolved with decision: "cancel" (the shape thread.user-input.dismiss would write). The turn-8 node and turn item were not touched. The badge cleared after the server next read the thread. The UI and MCP dismiss/respond paths could not be used because they need the overwritten turn item.
Filed by
Claude Code (claude-opus-5-5) via t3 triage
Activity
HernanJiang commentedon Nov 30, 2026
I traced the collision to the session-scoped elicitation counter. I'm checking it with a replay fixture that starts a new runtime on the same native session and keeps the earlier question's item separate.