test: keep legacy tool-result error proof

This commit is contained in:
Peter Steinberger
2026-05-26 22:13:19 +01:00
parent b546998b9b
commit 72bc429f60

View File

@@ -1105,7 +1105,7 @@ describe("sanitizeSessionHistory", () => {
const toolResult = validated[2] as Extract<AgentMessage, { role: "toolResult" }>;
expect(toolResult.toolCallId).toBe("toolu_legacy");
expect(toolResult.isError).toBe(false);
expect(toolResult.isError).toBe(true);
});
it("strips copied inbound metadata from assistant replay text", async () => {