diff --git a/apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.ts b/apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.ts index fca472c6c433e..2f91f0898326c 100644 --- a/apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.ts +++ b/apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.ts @@ -1811,14 +1811,22 @@ describe("AntigravityAdapterV2 work after the prompt ends", () => { assert.deepEqual(opened.prompts[1]!.prompt, [{ type: "text", text: "Skip the build" }]); yield* send({ sessionUpdate: "tool_call_update", ...followUp, status: "completed" }); - yield* TestClock.adjust("16 minutes"); - const silent = yield* until((event) => event.type === "turn.terminal"); - const terminal = silent.at(-1); + // A long model call or wait sends nothing, so quiet alone does not mean the agent hung. + yield* TestClock.adjust("1 hour"); + yield* send({ + sessionUpdate: "agent_message_chunk", + content: { type: "text", text: "Skipped the build." }, + }); + yield* send(opened.usage); + yield* opened.releaseSteer; + const quiet = yield* until((event) => event.type === "turn.terminal"); + const terminal = quiet.at(-1); assert.equal( terminal?.type === "turn.terminal" && terminal.status, - "failed", - "a silent steer prompt must still hit the inactivity timeout", + "completed", + "a prompt that stays quiet must be left to finish", ); + assert.include(JSON.stringify(quiet), "Skipped the build."); }).pipe(Effect.provide(layerSession)), ); diff --git a/apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts b/apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts index 3f629c813b615..9d294973167d7 100644 --- a/apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts +++ b/apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts @@ -290,8 +290,6 @@ export function makeAntigravityAcpAdapterFlavor( compactViaAdvertisedCommand: true, requiresSignIn: isAntigravitySignInRequiredError, checksVersionAtHandshake: true, - // Antigravity can leave a prompt open without updates; long tools and approvals pause this. - promptInactivityTimeout: "15 minutes", reportsPerTurnPromptUsage: true, geminiPromptUsage: true, ...(profileDirectory === undefined