fix: format safeguard compaction merge

This commit is contained in:
Josh Lehman 2026-03-12 22:25:07 -07:00
parent f958c86ee8
commit 5ae966001f
No known key found for this signature in database
GPG Key ID: D141B425AC7F876B
1 changed files with 11 additions and 11 deletions

View File

@ -896,17 +896,17 @@ export default function compactionSafeguardExtension(api: ExtensionAPI): void {
messages: turnPrefixMessages,
model,
apiKey,
signal,
reserveTokens,
maxChunkTokens,
contextWindow: contextWindowTokens,
customInstructions: composeSplitTurnInstructions(
TURN_PREFIX_INSTRUCTIONS,
currentInstructions,
),
summarizationInstructions,
previousSummary: undefined,
});
signal,
reserveTokens,
maxChunkTokens,
contextWindow: contextWindowTokens,
customInstructions: composeSplitTurnInstructions(
TURN_PREFIX_INSTRUCTIONS,
currentInstructions,
),
summarizationInstructions,
previousSummary: undefined,
});
const splitTurnSection = `**Turn Context (split turn):**\n\n${prefixSummary}`;
summaryWithoutPreservedTurns = historySummary.trim()
? `${historySummary}\n\n---\n\n${splitTurnSection}`