diff --git a/apps/server/src/orchestration-v2/ThreadManagementService.test.ts b/apps/server/src/orchestration-v2/ThreadManagementService.test.ts index 631f9089049c..0b9450c7c0fe 100644 --- a/apps/server/src/orchestration-v2/ThreadManagementService.test.ts +++ b/apps/server/src/orchestration-v2/ThreadManagementService.test.ts @@ -847,6 +847,14 @@ it.effect.each([ }), ); +it("an unmatched background wait says Workflow IDs already keep the thread working", () => { + const error = new ThreadManagementService.ThreadManagementBackgroundWaitError({ + threadId: ThreadId.make("thread:thread-management:background-wait"), + reason: "unmatched", + }); + expect(error.message).toContain("Workflow"); +}); + it.effect.each([ { status: "completed" as const, followUp: "none", settles: true }, { status: "failed" as const, followUp: "none", settles: false }, diff --git a/apps/server/src/orchestration-v2/ThreadManagementService.ts b/apps/server/src/orchestration-v2/ThreadManagementService.ts index e3bc51179ed1..a928d46a1764 100644 --- a/apps/server/src/orchestration-v2/ThreadManagementService.ts +++ b/apps/server/src/orchestration-v2/ThreadManagementService.ts @@ -393,7 +393,7 @@ export class ThreadManagementBackgroundWaitError extends Schema.TaggedError