Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): cap automatic thread continuations and turn them on by default #18461

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/18461/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 10 changed files with 5 additions and 3 deletions (loading 7).

x
0 of 10 viewed, 10 left
2 additions and 0 deletionsapps/server/src/orchestration-v2/FoundationPersistence.test.tsModified
View file
@@ -2779,6 +2779,8 @@
{ id: sessionId, driver: "codex", providerInstanceId, status: "running" },
providerTurns: [{ providerThreadId, runAttemptId: attemptId, status: "running" }],
+ runtimeRequests: [],
+ turnItems: [],
} as unknown as OrchestrationV2ThreadProjection;
const recovery = yield* ProviderRuntimeRecovery.make.pipe(
Effect.provide(
1 addition and 1 deletionapps/server/src/orchestration-v2/ProjectionRecovery.test.tsModified
View file
@@ -502,7 +502,7 @@
preparedState.providerSessions.map((session) => session.id),
[preparedSessionId],
- assert.equal(restartContinuationRun(preparedState)?.id, preparedRunId);
+ assert.equal(restartContinuationRun(preparedState, yield* DateTime.now)?.id, preparedRunId);
assert.deepEqual(yield* projections.getUnreadableThreadIds(), []);
const sql = yield* SqlClient.SqlClient;
yield* sql`
2 additions and 2 deletionsapps/server/src/orchestration-v2/ProviderRuntimeRecoveryService.tsModified
View file
@@ -561,7 +561,7 @@
const continuationRun =
continueAfterRestart && trigger === "startup"