mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 03:03:44 +00:00
Fix: handle branch_summary in kept messages before compaction
This commit is contained in:
parent
11a7845ceb
commit
754f55e3f6
1 changed files with 3 additions and 0 deletions
|
|
@ -350,6 +350,9 @@ export function buildSessionContext(
|
||||||
} else if (entry.type === "custom_message") {
|
} else if (entry.type === "custom_message") {
|
||||||
messages.push(createCustomMessage(entry));
|
messages.push(createCustomMessage(entry));
|
||||||
contextEntries.push(entry);
|
contextEntries.push(entry);
|
||||||
|
} else if (entry.type === "branch_summary") {
|
||||||
|
messages.push(createSummaryMessage(entry.summary, entry.timestamp));
|
||||||
|
contextEntries.push(entry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue