Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Codex runs sharing a session no longer fall behind together #39136

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

Showing 2 changed files with 106 additions and 2 deletions.

x
0 of 2 viewed, 2 left
95 additions and 2 deletionsapps/server/src/orchestration-v2/RunExecutionService.test.tsModified
View file
@@ -31,6 +31,7 @@
} from "@t3tools/contracts";
import * as Cause from "effect/Cause";
import * as Clock from "effect/Clock";
+import * as Context from "effect/Context";
import * as Exit from "effect/Exit";
import * as Fiber from "effect/Fiber";
import * as DateTime from "effect/DateTime";
@@ -41,6 +42,7 @@
import * as Option from "effect/Option";
import * as Queue from "effect/Queue";
import * as Ref from "effect/Ref";
+import * as Semaphore from "effect/Semaphore";
import * as Stream from "effect/Stream";
import * as TestClock from "effect/testing/TestClock";
import { CodexAppServerRequestError } from "effect-codex-app-server/errors";
@@ -4602,6 +4604,8 @@
) => Effect.Effect<void>;
// Consumes through the real commit coordinator, as the event sink does.
readonly batched?: boolean;
+ // A commit coordinator shared with other runs, instead of the run's own.
+ readonly coordinator?: Effect.Success<ReturnType<typeof ProviderCommitBatch.make>>;
readonly keepEventStreamOpen?: boolean;
readonly hasPendingBackgroundWorkForThread?: (
providerThread: OrchestrationV2ProviderThread,
@@ -4631,7 +4635,8 @@