Skip to content

fix(antigravity): a long turn is no longer stopped after 15 minutes - #40407

Open
Lokimorty wants to merge 2 commits into
pingdotgg:mainfrom
Lokimorty:fix/antigravity-quiet-turns
Open

Lokimorty wants to merge 2 commits into
pingdotgg:mainfrom
Lokimorty:fix/antigravity-quiet-turns

Conversation

@Lokimorty

Copy link
Copy Markdown

Problem

  • An Antigravity turn that goes 15 minutes without ACP output is failed with "Antigravity sent nothing for 15 minutes, so T3 Code stopped the turn and restarted the agent", and its agent process is replaced ([Bug]: Antigravity sent nothing for 15 minutes, so T3 Code stopped the turn and restarted the agent. Send a message to continue. #34160).
  • That silence is normal in everyday use: agy sends nothing while the model reasons, or while the agent waits on something long without ending its turn.
  • The turn is alive in both cases, so the work in flight is lost and the user has to re-prompt.
  • The timeout cannot be tuned out of this. It sees only ACP output, so a working turn and a hung one look the same.

Change

Why the prompt is quiet Before After
Model still reasoning Failed at 15 min, agent restarted Keeps running
Agent waiting Failed at 15 min, agent restarted Keeps running
agy hung Failed at 15 min, agent restarted Working until Stop

Scope

Verification

  • I ran a few Antigravity sessions in T3 Code with this patch and did not hit the error.

Claude Fable 5.2 in Claude Code.

Antigravity was the only ACP provider with a prompt inactivity timeout. A
long model call or a wait sends nothing over ACP, so the timeout failed
turns that were still working and restarted the agent. Antigravity no
longer sets it. A prompt agy really abandons stays Working until Stop, as
on the other ACP providers.
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 21, 2026
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a27ef255-ce4a-4c51-9aa6-aa61d8a001fa

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

Warning

.coderabbit.config.ts has a parsing error

The CodeRabbit configuration file in this repository has a parsing error and default settings were used instead. Please fix the error(s) in the configuration file. You can initialize chat with CodeRabbit to get help with the configuration file.

Parsing errors: 1

Error while evaluating .coderabbit.config.ts
Configuration instructions

  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

No actionable comments were generated in the recent review.

Walkthrough

The Antigravity adapter no longer sets a prompt inactivity timeout. Its wake-run test now checks that a steered run remains open through a one-hour quiet period and completes after an agent reply and usage update.

Changes: Antigravity inactivity timeout

Layer / File(s) Summary
Remove timeout and verify wake-run completion
apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts, apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.ts
The adapter no longer sets the 15-minute promptInactivityTimeout. The test verifies that a steered run remains open during a one-hour quiet period and completes after an agent reply and usage update.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Possibly related issues

  • pingdotgg/t3code#33583: The change removes the 15-minute timeout involved in the reported wait, but does not address the separate AntigravityTurnOutcome parsing defect.
  • pingdotgg/t3code#39820: The change affects inactivity-timeout behavior for held turns, but does not implement the proposed held-tool or watchdog-bound fixes.

Possibly related PRs

  • pingdotgg/t3code#30377: This PR adds the 15-minute Antigravity inactivity deadline that this change removes.
  • pingdotgg/t3code#39767: This PR arms the inactivity watchdog for steered wake runs, whose behavior is affected by removing Antigravity’s timeout setting.

Suggested labels: bugfix

Suggested reviewers: juliusmarminge, macroscopeapp

Merge Risk: Minimal · previous review f0956

Antigravity turns will no longer be stopped after 15 minutes of silence. A prompt the agent genuinely abandons may stay in Working until the user selects Stop. The change is small, reversible, and has no identified merge-blocking risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: Antigravity turns are no longer stopped after 15 minutes of silence. The raw summary shows the removal of promptInactivityTimeout from the Antigravity adapter and the …
Description check Passed The description follows the template's sections: Problem, Change, Scope, and Verification. It explains the 15-minute timeout, removes the opt-in for Antigravity, links the issue (#34160), and records …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: Antigravity turns are no longer stopped after 15 minutes of silence. The raw summary shows the removal of promptInactivityTimeout from the Antigravity adapter and the updated test that keeps a steered run open through a quiet hour. The title uses a conventional commit format and is specific enough for a teammate scanning history.

Full details: Description check

Explanation

The description follows the template's sections: Problem, Change, Scope, and Verification. It explains the 15-minute timeout, removes the opt-in for Antigravity, links the issue (#34160), and records the trade-off. The Verification section is thin: it reports only a few manual Antigravity sessions with no specific test names or observed results for the changed test. The template asks for focused tests or manual checks with observed results, and it also asks for the model and harness used. The description names the model and harness at the end, so that item is met. The Scope section gives an issue reference for the bug.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 8cf94f2 and f09569a.

Files selected for processing: 2

  • apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.ts
  • apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts
Files with no reviewable changes: 1

  • apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 21, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@juliusmarminge juliusmarminge added takeover:needs-julius Takeover done; route gate says Julius decides and removed takeover:in-progress A takeover lead is working on this PR labels Nov 21, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). takeover:needs-julius Takeover done; route gate says Julius decides vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants