perf: optimize bundled extension tests

This commit is contained in:
Peter Steinberger
2026-04-17 16:04:32 +01:00
parent 605cb60586
commit af954a81d1
87 changed files with 1099 additions and 1210 deletions

View File

@@ -1527,7 +1527,9 @@ function extractRecentTurns(messages: unknown[]): ActiveRecallRecentTurn[] {
}
const rawText = extractTextContent(typed.content);
const text =
role === "assistant" ? stripRecalledContextNoise(rawText) : stripInjectedActiveMemoryPrefixOnly(rawText);
role === "assistant"
? stripRecalledContextNoise(rawText)
: stripInjectedActiveMemoryPrefixOnly(rawText);
if (!text) {
continue;
}