Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(antigravity): recover threads after a lost thinking signature #28889

Mergedshivamhwp(GitHub profile, opens in a new tab)merged 45 commits intomain fromrefs/pull/28889/headmerged by shivamhwp(GitHub profile, opens in a new tab) View on GitHub

Showing 9 changed files with 87 additions and 8 deletions (loading 8).

x
0 of 9 viewed, 9 left
87 additions and 8 deletionsapps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.tsModified
View file
@@ -1334,6 +1334,10 @@
it.live("fails an end_turn the outcome check rejects and restarts before the next turn", () =>
Effect.gen(function* () {
+ const checking = yield* Deferred.make<void>();
+ const releaseCheck = yield* Deferred.make<void>();
+ const cancelled = yield* Deferred.make<void>();
+ const idAllocator = yield* IdAllocator.IdAllocatorV2;
const instanceId = ProviderInstanceId.make("acp-test-prompt-outcome");
const threadId = ThreadId.make("thread-acp-prompt-outcome");
const quota = {
@@ -1343,6 +1347,12 @@
retryable: true,
resetAt: "2030-01-01T00:00:00.000Z",
} as const;
+ const poisoned = {
+ class: "provider_error",
+ message: "Saved history is unusable.",
+ code: "INVALID_THINKING_SIGNATURE",
+ retryable: true,
+ } as const;
// The runtime ordinal of each prompt, and the session each check watched.
const promptRuntimes: Array<number> = [];
const promptTexts: Array<string> = [];
@@ -1356,14 +1366,27 @@
watchPromptOutcome: (sessionId) =>
Effect.sync(() => {
watchedSessions.push(sessionId);