Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(provider-acp-registry): let local ACP providers opt into late output after a turn ends #28039

Closedmax-metaplanet(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/28039/headopened View on GitHub

Showing 4 changed files with 225 additions and 0 deletions (loading 3).

x
0 of 4 viewed, 4 left
225 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.tsModified
View file
@@ -21,6 +21,7 @@
import * as Queue from "effect/Queue";
import * as Stream from "effect/Stream";
import * as Effect from "effect/Effect";
+import { TestClock } from "effect/testing";
import * as FileSystem from "effect/FileSystem";
import * as Layer from "effect/Layer";
import * as Option from "effect/Option";
@@ -434,6 +435,230 @@
​
describe("AcpRegistryAdapterV2", () => {
+ it.effect.each([
+ { name: "enabled", source: "local", enablePostSettleContinuation: true, continues: true },
+ { name: "disabled", source: "local", enablePostSettleContinuation: false, continues: false },
+ { name: "default", source: "local", continues: false },
+ { name: "registry", source: "registry", enablePostSettleContinuation: true, continues: false },
+ ])("handles post-settle output with continuation $name", (testCase) =>
+ Effect.gen(function* () {
+ const fileSystem = yield* FileSystem.FileSystem;
+ const path = yield* Path.Path;
+ const childProcessSpawner = yield* ChildProcessSpawner.ChildProcessSpawner;
+ const replayDir = yield* fileSystem.makeTempDirectoryScoped({ prefix: "t3-local-acp-late-" });
+ const transcript = yield* decodeAcpReplayTranscript(
+ {
+ provider: ACP_REGISTRY_PROVIDER,
+ protocol: "acp.ndjson-jsonrpc",
+ version: "1",
+ scenario: "local-post-settle",