Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): a usage-limited thread no longer auto-settles #28359

OpenEhsanulHaqueSiam(GitHub profile, opens in a new tab)wants to merge 13 commits intomain fromrefs/pull/28359/headopened View on GitHub

Showing 3 changed files with 136 additions and 2 deletions (loading 2).

x
0 of 3 viewed, 3 left
136 additions and 2 deletionsapps/server/src/orchestration-v2/ProjectionSettlement.test.tsModified
View file
@@ -9,6 +9,7 @@
ProjectId,
ProviderDriverKind,
ProviderInstanceId,
+ ProviderSessionId,
ProviderThreadId,
RunId,
RuntimeRequestId,
@@ -20,6 +21,7 @@
import * as Layer from "effect/Layer";
​
import * as SqlitePersistence from "../persistence/Sqlite.ts";
+import { CodexProviderCapabilitiesV2 } from "./Adapters/CodexAdapterV2.ts";
import * as ProjectionStore from "./ProjectionStore.ts";
import {
isAutoSettlementCandidate,
@@ -77,6 +79,7 @@
threadId: ThreadId,
status: OrchestrationV2Run["status"] = "completed",
ordinal = 1,
+ completedAt = old,
) {
const store = yield* ProjectionStore.ProjectionStoreV2;
const runId = RunId.make(`run:${threadId}:${ordinal}`);
@@ -98,7 +101,7 @@
status,
requestedAt: old,