Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(antigravity): queue follow-up turns sequentially instead of cancelling active prompt #11628

Closedwillblanchard(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/11628/headopened View on GitHub

Showing 2 changed files with 66 additions and 28 deletions (loading 1).

x
0 of 2 viewed, 2 left
66 additions and 28 deletionsapps/server/src/provider/Layers/AntigravityAdapter.test.tsModified
View file
@@ -589,9 +589,9 @@
}),
​
- it.effect("waits for native cancellation before a steer changes the model", () =>
+ it.effect("queues a follow-up turn until the in-flight prompt completes", () =>
Effect.gen(function* () {
- const h = yield* makeHarness({ holdCancel: true });
+ const h = yield* makeHarness();
yield* h.adapter.startSession({
threadId,
cwd: process.cwd(),
@@ -609,38 +609,34 @@
const second = yield* h.adapter
.sendTurn({
threadId,
- input: "Steer the turn",
+ input: "Follow-up prompt",
modelSelection: { instanceId, model: nativeAlternative },
- .pipe(Effect.forkChild);
- expect(yield* h.nextCancellation).toBe(1);
- expect(h.calls.slice(marker)).toEqual(["cancel:1"]);
- yield* h.emitNative({
- _tag: "ContentDelta",
- text: "The first prompt stopped.",
- rawPayload: {},
- });
- yield* Deferred.succeed(h.cancelRelease, undefined);