Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(antigravity): bound silent post-settle background command holds #40858

MergedLokkuchakreshkumar(GitHub profile, opens in a new tab)merged 7 commits intomain fromrefs/pull/40858/headmerged by juliusmarminge View on GitHub

Showing 4 changed files with 132 additions and 0 deletions (loading 1).

x
0 of 4 viewed, 4 left
119 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.tsModified
View file
@@ -1327,6 +1327,16 @@
yield* openSessionWithRunningCommand({ WaitMsBeforeAsync: 10000 });
yield* startTurn(1, false);
yield* throughPromptSettled;
+ // Progress keeps a command past the post-settle hold bound, which counts silence only.
+ for (const minute of [10, 20, 30]) {
+ yield* TestClock.adjust("10 minutes");
+ yield* send({
+ sessionUpdate: "tool_call_update",
+ ...command,
+ status: "in_progress",
+ rawOutput: { output: `fetched ${minute} pages` },
+ });
+ }
yield* TestClock.adjust("10 minutes");
yield* send({
sessionUpdate: "tool_call_update",
@@ -1349,6 +1359,115 @@
}).pipe(Effect.provide(layerSession)),
+ // A command whose terminal update never arrives would hold the run in Working forever with
+ // an empty pending list and a finished reply above Stop.
+ it.effect("settles a silent background command after the post-settle hold timeout", () =>
+ Effect.gen(function* () {
+ const { command, offers, startTurn, until, throughPromptSettled } =
+ yield* openSessionWithRunningCommand({ WaitMsBeforeAsync: 10000 });
+ yield* startTurn(1, false);
+ const prompt = yield* throughPromptSettled;