Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Hermes Agent's reply after a background process finishes reaches the thread #38615

Mergedjuliusmarmingemerged 3 commits intomain fromrefs/pull/38615/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 93 additions and 3 deletions.

x
0 of 2 viewed, 2 left
84 additions and 3 deletionsapps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.tsModified
View file
@@ -20,6 +20,7 @@
import * as DateTime from "effect/DateTime";
import * as Queue from "effect/Queue";
import * as Stream from "effect/Stream";
+import * as TestClock from "effect/testing/TestClock";
import * as Effect from "effect/Effect";
import * as FileSystem from "effect/FileSystem";
import * as Layer from "effect/Layer";
@@ -209,7 +210,7 @@
entries: ReadonlyArray<unknown>,
replayGate?: ProviderReplayGate,
continuationEnabled = true,
- agentId = "claude-acp",
+ agentId: string | Record<string, unknown> = "claude-acp",
) {
const fileSystem = yield* FileSystem.FileSystem;
const path = yield* Path.Path;
@@ -251,7 +252,9 @@
const adapterOptions = {
selfInvocation: yield* resolveSelfInvocation(),
instanceId,
- settings: yield* decodeAcpRegistryAdapterSettings({ agentId }),
+ settings: yield* decodeAcpRegistryAdapterSettings(
+ typeof agentId === "string" ? { agentId } : agentId,
+ ),
environment: {},
...(continuationEnabled ? { continuationRequests } : {}),
makeRuntime: (runtimeInput: Parameters<typeof replayRuntime>[0]) => {