From 547dcf0e4a8782a2de5784e4d683972ec3251982 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Thu, 4 Dec 2025 12:29:14 +0100 Subject: [PATCH] fix(coding-agent): update compaction test to match actual summary prefix --- packages/coding-agent/test/compaction.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/coding-agent/test/compaction.test.ts b/packages/coding-agent/test/compaction.test.ts index b9157aa5..1153bd29 100644 --- a/packages/coding-agent/test/compaction.test.ts +++ b/packages/coding-agent/test/compaction.test.ts @@ -192,7 +192,9 @@ describe("createSummaryMessage", () => { it("should create user message with prefix", () => { const msg = createSummaryMessage("This is the summary"); expect(msg.role).toBe("user"); - expect(msg.content).toContain("Another language model worked on this task"); + expect(msg.content).toContain( + "The conversation history before this point was compacted into the following summary:", + ); expect(msg.content).toContain("This is the summary"); }); });