Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ export class ThreadManagementBackgroundWaitError extends Schema.TaggedError<Thre
case "failed":
return "Failed to update the awaited background work.";
case "unmatched":
return "None of these IDs is running background work on this thread, so this request registers no wait for them. If the task already finished, read its output now. Otherwise pass the task ID of a background command or Monitor you started. Subagent, Agent tool, and delegate_task IDs don't go here.";
return "None of these IDs is running background work on this thread, so this request registers no wait for them. If the task already finished, read its output now. Otherwise pass the task ID of a background command or Monitor you started. Subagent, Agent tool, and Workflow runs already keep the thread working until they finish, and delegate_task IDs don't go here either.";
}
}
}
Expand Down
Loading