Treat candidate lane as rank hint

This commit is contained in:
OpenClaw Bot
2026-05-27 00:35:36 +02:00
parent fd0bb3857e
commit 29c0b1c244
3 changed files with 34 additions and 3 deletions
+4 -2
View File
@@ -684,8 +684,10 @@ function normalizeFeatureOption(item, index, fallbackId = 'feature', defaultSour
const nextStep = cleanText(raw.nextStep || raw.nextAction || raw.firstStep || raw.manualStep || raw.actionToTake || '', 260);
const successSignal = cleanText(raw.successSignal || raw.successCriteria || raw.successMetric || raw.greenLight || raw.signalToSee || '', 260);
const killSignal = cleanText(raw.killSignal || raw.stopSignal || raw.redFlag || raw.failureSignal || raw.cutIf || '', 260);
const sourceSection = cleanText(raw.sourceSection || raw.section || raw.lane || raw.origin || defaultSourceSection, 80);
const recommendedLane = cleanText(raw.recommendedLane || raw.laneHint || raw.suggestedLane || defaultRecommendedLane || '', 40).toLowerCase();
const rawLane = cleanText(raw.lane || '', 40);
const laneLooksLikeHint = Boolean(normalizeLaneHint(rawLane));
const sourceSection = cleanText(raw.sourceSection || raw.section || raw.origin || (!laneLooksLikeHint ? rawLane : '') || defaultSourceSection, 80);
const recommendedLane = cleanText(raw.recommendedLane || raw.laneHint || raw.suggestedLane || (laneLooksLikeHint ? rawLane : '') || defaultRecommendedLane || '', 40).toLowerCase();
const descriptionParts = [
raw.description || raw.brief || '',
userValue && `User value: ${userValue}`,