From b4be28d4c3d0e4789ac62054ff647f6a432e1dfe Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Wed, 15 Jul 2026 19:28:26 -0500 Subject: [PATCH] tweak: adjust compaction to clearly indicate the convo history (#37195) --- packages/core/src/session/compaction.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/session/compaction.ts b/packages/core/src/session/compaction.ts index c15919f60b..547d5797bd 100644 --- a/packages/core/src/session/compaction.ts +++ b/packages/core/src/session/compaction.ts @@ -198,6 +198,7 @@ export const buildPrompt = (input: { readonly previousSummary?: string; readonly ? `Update the anchored summary below using the conversation history above.\nPreserve still-true details, remove stale details, and merge in the new facts.\n\n${input.previousSummary}\n` : "Create a new anchored summary from the conversation history.", SUMMARY_TEMPLATE, + "The following is the conversation history:", ...input.context, ].join("\n\n")