repair broad web research recovery

This commit is contained in:
pewdiepie-archdaemon
2026-09-17 18:36:12 +00:00
parent 0aa470b095
commit 25ff725c1d
4 changed files with 296 additions and 19 deletions
+8
View File
@@ -3962,6 +3962,14 @@ def requested_capabilities(message: str, history: Iterable = (), *, active_docum
# route to scheduled tasks). Keep the whole read-only web family so a
# weak search can recover through fetch/browser without schema growth.
return frozenset({"search_browser"})
if (
re.search(r"\b(?:latest|recent|current|today(?:'s)?)\b", text, re.I)
and re.search(r"\b(?:info(?:rmation)?|news|nees|updates?)\b", text, re.I)
):
# Broad current-information requests still require live Web evidence.
# Keep the common ``nees`` typo because a missed route leaves the model
# with no way to answer and encourages it to ask unnecessary questions.
return frozenset({"search_browser"})
if (
len(concrete_urls) >= 2
and re.search(r"\b(?:open|fetch|read|retrieve|check|use)\b", text, re.I)