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