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"); }); });