Harden Scattermind rank feedback candidate fallback

This commit is contained in:
OpenClaw Bot
2026-05-26 23:18:03 +02:00
parent 2f49155ed8
commit 10f6efcbd3
3 changed files with 29 additions and 2 deletions
+1 -1
View File
@@ -497,7 +497,7 @@ function normalizeOptionIds(options = []) {
}
function candidateArrayFrom(...entries) {
return entries.find(entry => Array.isArray(entry?.items)) || null;
return entries.find(entry => Array.isArray(entry?.items) && entry.items.length > 0) || null;
}
function optionsFromBody(body = {}) {