mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-28 22:45:03 +00:00
Compaction: avoid duplicate merge focus header
This commit is contained in:
@@ -335,8 +335,9 @@ export async function summarizeInStages(params: {
|
||||
timestamp: Date.now(),
|
||||
}));
|
||||
|
||||
const mergeInstructions = params.customInstructions
|
||||
? `${MERGE_SUMMARIES_INSTRUCTIONS}\n\nAdditional focus:\n${params.customInstructions}`
|
||||
const custom = params.customInstructions?.trim();
|
||||
const mergeInstructions = custom
|
||||
? `${MERGE_SUMMARIES_INSTRUCTIONS}\n\n${custom}`
|
||||
: MERGE_SUMMARIES_INSTRUCTIONS;
|
||||
|
||||
return summarizeWithFallback({
|
||||
|
||||
Reference in New Issue
Block a user