mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:40:44 +00:00
perf: optimize bundled extension tests
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user