Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Steer on an Antigravity thread kills the turn (interruptTurn fails, then AcpProcessExitedError) #19689

Closedjbbottoms(GitHub profile, opens in a new tab) opened this issue 3 comments

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

Steps to reproduce

  1. Open a thread on the Antigravity provider (managed Antigravity ACP runtime installed from Settings > Providers > Antigravity).
  2. Send a prompt that starts a long agent turn (tool calls, a few minutes of work).
  3. While the turn is running, type a follow-up message and click Steer.

Expected behavior

The follow-up is delivered into the running turn (or the turn is interrupted cleanly and the follow-up starts a new one). The agent process stays alive.

Actual behavior

The interrupt fails, and about 15 seconds later the whole turn dies. The thread shows the turn as failed, and the Antigravity ACP agent process is gone. The next prompt starts a new agent process (initialize / authenticate / session/resume again).

This happened 3 times out of 3 Steers on one thread, including once after updating Nightly. One interrupt earlier that evening (not from Steer) succeeded, and no drop followed.

Timeline, all 2026-10-14, times in US Central (UTC-5), taken from logs/server.trace.ndjson and logs/provider/events.<thread>.log:

AcpAdapterV2.interruptTurnsession/prompt ends
6:45:50 PM, Successno drop
7:09:25 PM, Failure7:09:40 PM, failed (AcpProcessExitedError)
7:12:51 PM, Failure7:13:07 PM, failed (AcpProcessExitedError)
7:24:50 PM, Failure (after updating to nightly.20261014.3132)7:25:05 PM, failed (AcpProcessExitedError)

Impact

Major degradation or frequent failure

Version or commit

0.0.46 Nightly: nightly.20261014.3118 (first two drops) and nightly.20261014.3132 (third drop). Managed Antigravity ACP runtime 1.3.0.

Environment

Windows 11 Pro 10.0.26200, x64, desktop app

Logs or stack traces

# server.trace.ndjson, AcpAdapterV2.interruptTurn, exit Failure (7:24:50 PM CT)
ProviderAdapterInterruptError: Failed to interrupt antigravity provider turn provider-turn:provider:antigravity:native-turn:provider-instance%3Aantigravity%3A<session>%3Aturn%3A9.
    at .../resources/server.asar/apps/server/dist/binCli-CoSutiQf.mjs:172618:63

# server.trace.ndjson, session/prompt, exit Failure (started 7:19:19 PM CT)
~effect/rpc/RpcClientError: RpcClientDefect: ACP protocol terminated.
    at emitClientProtocolError (.../resources/server.asar/apps/server/dist/binCli-CoSutiQf.mjs:163895:10)
    at .../resources/server.asar/apps/server/dist/binCli-CoSutiQf.mjs:163907:11

# provider events log, session/prompt request
"method":"session/prompt","status":"failed","errorTag":"AcpProcessExitedError"

Possibly related, from the Antigravity agent's own logs during the same session (4 times each): cannot kill task "<session>/task-67": task is not running (status: DONE) and T3 Code MCP bridge request failed: fetch failed.

Workaround

Don't use Steer on Antigravity threads. Wait for the turn to finish, then send the follow-up.

  1. juliusmarminge added labelsneeds more info

  2. juliusmarminge removed labelsneeds more info

  3. A synthetic ACP child that exits with code 23 reproduces the missing diagnostic without a Steer operation. The current runtime retains its exit code and sanitized stderr, but the run failure displays only Provider turn failed. and a null code.

    Proposed reporting fix: https://github.com/pingdotgg/t3code/pull/25693. The real-child Antigravity adapter regression checks the failed terminal event; additional cases cover signals, bounded stderr, redaction and native request logging. All process output and identifiers in the tests are made up.

    This addresses the missing failure information. The cause of the process exit during Steer still needs its own diagnosis.

  4. tanstack-source added labelsbug

  5. I tried to reproduce this on the current build and could not.

    Real Antigravity is unavailable on the VM, so the reporter's exact UI steps could not be run. On origin/main 0b6f482dc5 I traced Steer for Antigravity: the ACP capabilities declare supportsActiveSteering=false and supportsSteeringByInterruptRestart=true, so Steer calls AcpAdapterV2.interruptTurn (soft, no runtime restart), which calls runtime.cancel. Antigravity's runtime uses cancelBehavior "wait-for-prompt" (apps/server/src/provider/acp/AntigravityAcpSupport.ts:135). That sends session/cancel, waits defaultCancelTimeout = 15 s for session/prompt to settle, and otherwise calls retireRuntime, which kills the child, and fails with AcpTransportError "The ACP agent did not finish cancellation. Its process was stopped." (packages/provider-acp/src/server/AcpSessionRuntime.ts:2367-2406). The adapter wraps that as ProviderAdapterInterruptError, and the in-flight session/prompt then fails with AcpProcessExitedError, matching the reporter's 15 s gap in all three logs. I added an AcpAdapterV2.test.ts case that uses the real mock ACP agent child (acp-mock-agent.ts with T3_ACP_COMPLETE_FIRST_PROMPT_ON_CANCEL) and cancelBehavior wait-for-prompt: start a turn with a long-running tool, interrupt, wait for the agent to receive session/cancel, advance TestClock 16 s, then release the agent's cancel. On main it fails with AcpTransportError at AcpSessionRuntime.ts:2399 because the agent process was already killed. The existing fast-cancel case still passes.

    Closing as not planned. If it still happens for you, reply with the exact steps and the version you are on and it will be looked at again.

  6. juliusmarminge closed this

  7. Claude Opus 5.5 (Claude Code) posting on behalf of Parth Thakre.

    Still happening on the latest nightly. It hit Parth twice today, on 0.1.11-nightly.20261119.4918 and again on 0.1.11-nightly.20261119.4928 (Linux x64, background service, web client, agy 1.5.12, gemini-4-neon). The cancel path matches the trace in the closing comment. Parth's logs show three more problems on top of it.

    Steps

    1. In an Antigravity thread, get the agent to run a long shell command in the foreground, inside the open session/prompt. Both times here it was an npm build or check (npm run typecheck && npm run build, then npm run check).
    2. While the command runs, send a Steer message.

    If agy runs the command as a background task instead, the prompt has already settled and Steer works. I checked that with sleep 300 on 4928, and agy killed its own task. The bug needs the command running inside an open prompt.

    Run 1, nightly 4918 (UTC, from server.trace.ndjson, the service log and the provider event log)

    • 10:13:52 The agent starts the build. The session/prompt has been open since 09:51:07.
    • 10:17:17 Steer sent. interruptAndAwaitTerminal calls AcpAdapterV2.interruptTurn, which times out after 15 s with ProviderAdapterInterruptTimeoutError: The antigravity provider did not confirm stopping turn ... within 15000 ms.
    • 10:17:32 AcpTransportError: ACP transport operation call-rpc failed for method session/cancel: The ACP agent did not finish cancellation. Its process was stopped.
    • 10:17:32 to 10:19:54 The provider-turn.interrupt effect retries about 12 times, backing off to 30 s. Each retry fails in under a millisecond with the same error.
    • 10:20:00 to 10:20:03 Stop clicked, three thread.stop commands. The run is marked interrupted, and attempt 2 (steering_restart) ends with "Run interrupted before provider start". Every interrupt still fails.
    • 10:20:52 The original session/prompt fails with AcpProcessExitedError: ACP process exited with code 0.
    • 10:21:03 Another Stop logs "ACP interrupt raced transport teardown or a prior Stop; treating as already interrupted".

    Run 2, nightly 4928

    • 10:34:41 The agent starts npm run check inside an open prompt.
    • 10:35:27 Steer sent. 15 s timeout, then the same "did not finish cancellation. Its process was stopped." at 10:35:43. This time the prompt settled right away.
    • 10:35:44 T3 starts a new agy and runs initialize, authenticate, session/new, session/load. The load replays the whole conversation into the current run. About 100 old items, including reasoning, file changes and assistant messages from earlier runs, were appended to the turn within 0.4 s.
    • 10:35:48 The steer goes out as a new session/prompt, which "succeeds" in 0.5 s with no reply. The user never gets an answer to the steer.

    What looks wrong

    1. In run 1, retireRuntime reports the process stopped at 10:17:32 after child.kill({ forceKillAfter: "1 second" }). The ACP process lived another 3m20s, then exited with code 0, so the force kill never landed. Stop did nothing visible in the meantime. On this machine agents run inside an app-t3code-agents systemd scope, in case that matters.
    2. The steer is lost both times. In run 1 the replacement attempt never started a provider turn. In run 2 the steer prompt returned at once with nothing.
    3. AntigravityAdapterV2.ts says "A message sent while a command runs leaves the command alone". Both steers still went through interruptAndAwaitTerminal and session/cancel, which is what starts the 15 s retire path.
    4. After the retire in run 2, recovery used session/load and replayed history into the live turn. The same adapter notes that resume exists to avoid that replay.

    The cancel, retireRuntime and child.kill path is unchanged between the 4918 tag, 4928 and main (693e8c7).

    Workaround: don't Steer an Antigravity thread while it runs a foreground command. Wait for the command to finish.

    Diagnosed with Claude Opus 5.5 in Claude Code via t3 triage.

Sign in to join this conversation.