diff --git a/src/agents/pi-extensions/compaction-instructions.test.ts b/src/agents/pi-extensions/compaction-instructions.test.ts index 7a42ea5d7de..a75112d07cb 100644 --- a/src/agents/pi-extensions/compaction-instructions.test.ts +++ b/src/agents/pi-extensions/compaction-instructions.test.ts @@ -15,8 +15,8 @@ describe("DEFAULT_COMPACTION_INSTRUCTIONS", () => { expect(DEFAULT_COMPACTION_INSTRUCTIONS).toContain("primary language"); }); - it("contains persona preservation directive", () => { - expect(DEFAULT_COMPACTION_INSTRUCTIONS).toContain("persona"); + it("contains factual content directive", () => { + expect(DEFAULT_COMPACTION_INSTRUCTIONS).toContain("factual content"); }); it("does not exceed MAX_INSTRUCTION_LENGTH (800 chars)", () => { diff --git a/src/agents/pi-extensions/compaction-instructions.ts b/src/agents/pi-extensions/compaction-instructions.ts index 0b504834711..104cf6cb90b 100644 --- a/src/agents/pi-extensions/compaction-instructions.ts +++ b/src/agents/pi-extensions/compaction-instructions.ts @@ -12,7 +12,7 @@ */ export const DEFAULT_COMPACTION_INSTRUCTIONS = "Write the summary body in the primary language used in the conversation.\n" + - "Preserve persona, character, and speaking-style cues.\n" + + "Focus on factual content: what was discussed, decisions made, and current state.\n" + "Keep the required summary structure and section headers unchanged.\n" + "Do not translate or alter code, file paths, identifiers, or error messages.";