Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(acp): keep the inactivity deadline when steering silent turns #45928

Mergedjadelike-wine(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/45928/headmerged by juliusmarminge View on GitHub

jadelike-wine(GitHub profile, opens in a new tab)commented

Problem

An unresponsive Antigravity turn can appear to be working indefinitely. A check-in replaces the pending provider prompt and starts another 15-minute wait, even if the agent has sent no ACP progress. Two users reported this after their agents stopped sending updates. Issue #41459

Change

Keep the inactivity deadline when a steer replaces an unsettled prompt. Provider activity still extends the deadline, and a fresh prompt starts its timer on dispatch. If the turn ends while a steer is awaiting dispatch, the caller receives the existing ended-turn error.

Scope

This covers the deadline reset in #41459. It reuses ACP’s existing progress, pause, and outcome checks. Earlier detection of errors through the Antigravity session log is outside this change. The nearby startup cancellation work addresses ACP prompt registration and cancellation. Related PR #44206

Verification

  • Before the fix, the regression sent check-ins at virtual minutes 13 and 14. The turn was still active at minute 15 and the test failed.
  • After the fix, the turn failed at minute 15 and the next turn completed. Real ACP progress in the fixture still extended the deadline, a wake's first steer could still time out, and a steer held before dispatch returned when the turn timed out.
  • vp run check:changed upstream/main passed on baadf193447a against 66cc44d75b95, including formatting, lint, Knip, GraphQL generation, typechecking for 14 packages, and 56 tests across 3 files.
Local regression and check output

Baseline 73c1866fc8ff, with the regression test applied:

$ vp test run apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.ts -t 'steers alone preserve|provider progress after a steer'
AssertionError: the silent turn should retire at its deadline: expected undefined to not equal undefined
Tests  1 failed | 1 passed | 49 skipped (51)

Submission head baadf193447a:

$ vp run check:changed upstream/main
check:changed: 2 files since 66cc44d75b95 (upstream/main)
Test Files  3 passed (3)
     Tests  56 passed (56)
  pass  typecheck (14 packages)

The demo uses the Antigravity adapter fixture and virtual time. Live Antigravity and client UI checks were not run.

https://github.com/user-attachments/assets/7042c0f8-092a-447f-a628-4fab82ff6de9

Implemented with GPT-6 in Codex.

    1. Pushedc466613

    2. Evidence

      Real web app on fresh databases; Antigravity 1.5.20, Gemini 3.8 Flash (Low), API-key mode; 1280×800, light theme. Both sanity turns returned READY. Held the next model stream with bare-newline keepalives, submitted the README summary, then sent two composer steers at approximately 13m20s and 14m30s. No further model request occurred.

      BeforeAfter
      452355aa87c46661315b
      Full recording — still Working/Thinking at 16m51s after both steers; runtime status remained running at 17m02s.Full recording — stopped at 15:00.457 despite both steers; inactivity banner and provider error visible; runtime status failed.

      Recordings are uncut, original speed. Check-ins appear around 13:20 and 14:30; compare around 15:05 and 16:55. Base was stopped after capture; its eventual extended timeout was not awaited.

      Reproduction and seed commands · Stream-hold proxy · Read-only observer · Proxy timestamps

      Unverified: genuine ACP progress extending the deadline, and a steer still awaiting dispatch receiving the ended-turn error; these runs deliberately suppressed provider progress and both steers dispatched.

      Not shown:

      • Genuine ACP progress extending the inactivity deadline was not exercised: both comparison runs deliberately held the model stream without provider progress.
      • A steer still awaiting dispatch receiving an ended-turn error was not exercised: the real Antigravity runtime dispatched both check-ins in these runs.
      • The base run's eventual timeout 15 minutes after the last steer was not awaited; it was observed running beyond the original deadline and stopped during cleanup.
    3. juliusmarminge added labelstakeover:ready

    4. juliusmarminge removed labelstakeover:in-progress

    5. juliusmarminge merged thisa8f897e

    6. juliusmarminge closed this

    7. juliusmarminge removed labelstakeover:ready

Sign in to join this conversation.