Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Hermes keeps its background reply when launched through a wrapper #38659

MergedStiensWout(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/38659/headmerged by juliusmarminge View on GitHub

Showing 4 changed files with 97 additions and 22 deletions (loading 3).

x
0 of 4 viewed, 4 left
97 additions and 22 deletionsapps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.tsModified
View file
@@ -211,21 +211,38 @@
replayGate?: ProviderReplayGate,
continuationEnabled = true,
agentId: string | Record<string, unknown> = "claude-acp",
+ replacementEntries?: ReadonlyArray<unknown>,
) {
const fileSystem = yield* FileSystem.FileSystem;
const path = yield* Path.Path;
const childProcessSpawner = yield* ChildProcessSpawner.ChildProcessSpawner;
const replayDir = yield* fileSystem.makeTempDirectoryScoped({ prefix: "t3-claude-lifecycle-" });
- const transcript = yield* decodeAcpReplayTranscript(
- {
- provider: ACP_REGISTRY_PROVIDER,
- protocol: "acp.ndjson-jsonrpc",
- version: "1",
- scenario: "claude-lifecycle",
- entries: entries as never,
- },
- ACP_REGISTRY_PROVIDER,
+ const scriptPath = yield* path.fromFileUrl(
+ new URL("../../../scripts/acp-replay-agent.ts", import.meta.url),
+ const makeReplay = Effect.fn("openClaudeReplaySession.makeReplay")(function* (
+ entries: ReadonlyArray<unknown>,
+ name: string,
+ ) {
+ const transcript = yield* decodeAcpReplayTranscript(
+ {
+ provider: ACP_REGISTRY_PROVIDER,
+ protocol: "acp.ndjson-jsonrpc",