test: truncate acp deliveries exactly

This commit is contained in:
Shakker
2026-05-12 19:44:29 +01:00
parent 1f8c0dfc64
commit 1e4155eb2e

View File

@@ -649,12 +649,13 @@ describe("createAcpReplyProjector", () => {
});
await projector.flush(true);
expect(deliveries).toHaveLength(2);
expect(deliveries).toContainEqual({ kind: "block", text: "hello" });
expect(deliveries).toContainEqual({
kind: "tool",
text: prefixSystemMessage("output truncated"),
});
expect(deliveries).toEqual([
{ kind: "block", text: "hello" },
{
kind: "tool",
text: prefixSystemMessage("output truncated"),
},
]);
});
it("supports tagVisibility overrides for tool updates", async () => {