Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(server): batch queued provider writes without waiting #31656

MergedYash-Singh1(GitHub profile, opens in a new tab)merged 14 commits intomain fromrefs/pull/31656/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

Showing 11 changed files with 162 additions and 3 deletions (loading 9).

x
0 of 11 viewed, 11 left
43 additions and 2 deletionsapps/server/src/orchestration-v2/testkit/CodexReplayFixtures.integration.test.tsModified
View file
@@ -1,9 +1,14 @@
-import { describe } from "@effect/vitest";
+import { assert, describe, it } from "@effect/vitest";
+import * as Tracer from "effect/Tracer";
import * as Effect from "effect/Effect";
​
import { materializeReplayTranscriptWorkspace } from "@t3tools/provider-testing/replayTranscript";
import { CodexOrchestratorReplayHarness } from "../Adapters/CodexAdapterV2.testkit.ts";
-import { itRunsReplayFixtures, runReplayFixture } from "./ProviderReplayFixtures.ts";
+import {
+ findReplayFixture,
+ itRunsReplayFixtures,
+ runReplayFixture,
+} from "./ProviderReplayFixtures.ts";
​
describe("Codex replay fixtures", () => {
itRunsReplayFixtures("codex", (input) =>
@@ -15,3 +20,39 @@
}),
);
});
+​
+it.effect(
+ "persists recorded Codex snapshots through provider transactions in the real run consumer",
+ () =>
+ Effect.gen(function* () {
+ const fixture = findReplayFixture("multi_turn")!;
+ const driver = fixture.providers.find((provider) => provider.driver === "codex")!;
+ const writes: number[] = [];
+ const tracer = Tracer.make({