Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(acp-registry): show Droid's reply after a background Task finishes #33207

Closedzhitiao(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/33207/headopened View on GitHub

Showing 2 changed files with 114 additions and 2 deletions.

x
0 of 2 viewed, 2 left
108 additions and 1 deletionapps/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";
@@ -278,7 +279,7 @@
if (continuationEnabled) {
assert.isDefined(
runtime.hasPendingBackgroundWork,
- "Claude ACP v2 must report background work after foreground idle",
+ `${agentId} must report background work after foreground idle`,
const events = yield* Queue.unbounded<ProviderAdapter.ProviderAdapterV2Event>();
@@ -2745,4 +2746,110 @@
assert.equal(spawned, restarts ? 2 : 1);
}).pipe(Effect.provide(layerTest), Effect.scoped),
+​
+ it.effect("shows Droid's reply after a background Task finishes behind a settled turn", () =>
+ Effect.gen(function* () {
+ const sessionId = CLAUDE_ROOT_SESSION;
+ const gate = makeProviderReplayGate(["wake"]);
+ const { update } = claudeFrames;
+ const expectPrompt = {