fix(server): Antigravity resumes a turn after an empty model reply #39123
ClosedB-EtterDigital(GitHub profile, opens in a new tab)wants to merge 1 commit into
main fromrefs/pull/39123/headopened View on GitHubtanstack-source added labelsbug
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- @@ -9142,0 +9202,21 @@9202+ const reported = yield* runRuntimeCallbackAtGeneration(9203+ promptGeneration,9204+ Effect.gen(function* () {9205+ context.lastProgressAt = yield* Clock.currentTimeMillis;9206+ yield* reportProviderRetry({9207+ sessionId: requestedSessionId,9208+ failure,9209+ maxAttempts: resume.maxAttempts,9210+ });9211+ }),9212+ );9213+ if (Option.isNone(reported)) return settled;9214+ yield* Effect.logWarning("orchestration-v2.acp-prompt-resumed", {9215+ driver,9216+ providerSessionId: input.providerSessionId,9217+ providerTurnId,9218+ attempt: resumes + 1,9219+ code: failure.code,9220+ });9221+ check = yield* watch(requestedSessionId);9222+ next = [{ type: "text", text }];
github-actions[bot](GitHub profile, opens in a new tab) added labelsneeds-rebase
Sign in to join this conversation.
Walkthrough
The ACP adapter can resume eligible hidden failures on the same session, report retry limits, and accumulate usage across prompts. Antigravity classifies empty model output as retryable and configures up to eight continuation attempts.
Changes: ACP hidden failure resume
packages/provider-acp/src/server/adapter.ts,apps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.tsapps/server/src/provider/acp/AntigravityTurnOutcome.ts,apps/server/src/provider/acp/AntigravityTurnOutcome.test.ts,apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.tsEstimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix
Sequence Diagram(s)#
Possibly related issues
pingdotgg/t3codeissue 33583: Both concern classification of hidden harness failures so the turn can surface or retry the failure instead of waiting for the inactivity timeout.Possibly related PRs
Suggested labels:
bugfixSuggested reviewers:
t3dotgg,juliusmarminge,macroscopeappMerge Risk:
Moderate · up to
b8115With Antigravity's new empty-output resume, pressing Stop at the wrong moment can still start a follow-up prompt on a turn the user cancelled. Add a recheck of the stopped state immediately before the continuation is dispatched, and cover it with a test, before merging.
Pre-merge checks:
4
Full details: Title check
Explanation
The title names the primary change: Antigravity resumes a turn after an empty model reply. The changeset adds an EMPTY_MODEL_OUTPUT classification, an optional resumeAfterHiddenFailure ACP adapter setting, and opts Antigravity in with eight attempts. The title follows the conventional commit format and stays concise. It omits the adapter-level mechanism, but that is expected for a short title.
Full details: Description check
Explanation
The description follows the template's main sections: What breaks (Problem), Fix (Change), How it was checked (Verification), and a model attribution line. The Scope section is missing. It does not link an issue that shows the bug, and it does not explain why no issue is needed. The Verification section lists focused test files and results, and it notes the typecheck run. The description also includes a Claude attribution note, which fits the template's agent attribution line.
Resolution
Add a Scope section. Link the issue that shows the empty-reply bug, or explain why no issue is needed for this fix. State whether a maintainer requested the PR.
Finishing Touches
Generate unit tests (beta)