tweak: adjust compaction to clearly indicate the convo history (#37195)

This commit is contained in:
Aiden Cline 2026-07-15 19:28:26 -05:00 committed by GitHub
commit b4be28d4c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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<previous-summary>\n${input.previousSummary}\n</previous-summary>`
: "Create a new anchored summary from the conversation history.",
SUMMARY_TEMPLATE,
"The following is the conversation history:",
...input.context,
].join("\n\n")