mirror of https://github.com/openclaw/openclaw.git
refactor: use factual-content directive instead of persona preservation
Replace "Preserve persona, character, and speaking-style cues" with "Focus on factual content: what was discussed, decisions made, and current state" to prevent the summarizer from injecting persona descriptions into the summary (wasting tokens and potentially conflicting with system prompt persona).
This commit is contained in:
parent
5f4c0ea664
commit
36a7e793b6
|
|
@ -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)", () => {
|
||||
|
|
|
|||
|
|
@ -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.";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue