authorgravatar for lastobelus@mac.comMichael Johnston <lastobelus@mac.com> 2026-10-11 18:07:20-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-10-12 01:07:20+00:00
log9b9792ead5d5b1bad9b713336c90de6af81b1d39
treedf27e1721118d92fe2af89a1a303153908ab78e4
parent808bee7daad4ba1f6b100527337f42d2eac5b712
signature Signed by PGP key B5690EEEBB952194

test(server): finish workflow reads before changing transcripts (#18192)


1 files changed, 2 insertions(+), 4 deletions(-)

apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts+2-4
...@@ -13241,8 +13241,7 @@ describe("ClaudeAdapterV2 background wake turns", () => {...@@ -13241,8 +13241,7 @@ describe("ClaudeAdapterV2 background wake turns", () => {
13241 NodePath.join(harness.transcriptDir, "agent-a1.jsonl"),13241 NodePath.join(harness.transcriptDir, "agent-a1.jsonl"),
13242 '{"type":"assistant","message":{"role":"assistant","id":"msg_a1","content":[{"type":"text","text":"A1 continued"}]}}\n',13242 '{"type":"assistant","message":{"role":"assistant","id":"msg_a1","content":[{"type":"text","text":"A1 continued"}]}}\n',
13243 );13243 );
13244 yield* Queue.offer(13244 yield* harness.offerAndWait(
13245 harness.sdkMessages,
13246 workflowSnapshot({ uuid: "00000000-0000-4000-8000-000000001015", state: "done" }),13245 workflowSnapshot({ uuid: "00000000-0000-4000-8000-000000001015", state: "done" }),
13247 );13246 );
13248 yield* awaitUntil(13247 yield* awaitUntil(
...@@ -13265,8 +13264,7 @@ describe("ClaudeAdapterV2 background wake turns", () => {...@@ -13265,8 +13264,7 @@ describe("ClaudeAdapterV2 background wake turns", () => {
13265 NodePath.join(harness.transcriptDir, "agent-a2.jsonl"),13264 NodePath.join(harness.transcriptDir, "agent-a2.jsonl"),
13266 '{"type":"assistant","message":{"role":"assistant","id":"msg_a2","content":[{"type":"text","text":"A2 from the transcript"}]}}\n',13265 '{"type":"assistant","message":{"role":"assistant","id":"msg_a2","content":[{"type":"text","text":"A2 from the transcript"}]}}\n',
13267 );13266 );
13268 yield* Queue.offer(13267 yield* harness.offerAndWait(
13269 harness.sdkMessages,
13270 workflowSnapshot({ uuid: "00000000-0000-4000-8000-000000001016", state: "done" }),13268 workflowSnapshot({ uuid: "00000000-0000-4000-8000-000000001016", state: "done" }),
13271 );13269 );
13272 yield* awaitUntil(13270 yield* awaitUntil(