focus: ensure keyword overlap

This commit is contained in:
Brad Stein 2026-02-03 16:53:58 -03:00
parent 9d4b899fdb
commit bb4b5f030a

View File

@ -615,7 +615,7 @@ class AnswerEngine:
model=plan.model,
tag="focus_fix",
)
if not metric_facts:
if not metric_facts or not _has_keyword_overlap(metric_facts, keyword_tokens):
best_line = _best_keyword_line(summary_lines, keyword_tokens)
if best_line:
reply = f"From the latest snapshot: {best_line}."