fix: route explicit online requests to tasks
Rebuild & Deploy / rebuild (push) Successful in 1m13s

This commit is contained in:
snowspeeder committed 2026-08-29 08:13:03 -04:00
1 parent 1fffed8ab3
commit cb035751d2
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -9,7 +9,8 @@ import re
_BACKGROUND_TASK_RE = re.compile( _BACKGROUND_TASK_RE = re.compile(
r"\b(?:" r"\b(?:"
r"latest|news|current events?|headlines?|prices?|scores?|" r"latest|news|current events?|headlines?|prices?|scores?|"
r"research|look\s+up|search(?:\s+for)?|find\s+out|investigate|" r"research|look\s+(?:up|online)|search(?:\s+(?:for|online|the\s+web))?|"
r"browse(?:\s+(?:online|the\s+web))?|find(?:\s+out)?|investigate|recipes?|"
r"compare|comparison|pros\s+and\s+cons|" r"compare|comparison|pros\s+and\s+cons|"
r"plan|itinerary|schedule|" r"plan|itinerary|schedule|"
r"write|draft|compose|rewrite|" r"write|draft|compose|rewrite|"
+1
View File
@@ -26,6 +26,7 @@ from task_worker import TaskWorker # noqa: E402
"Look up the current price of a PlayStation 5.", "Look up the current price of a PlayStation 5.",
"Research the latest solid state battery developments.", "Research the latest solid state battery developments.",
"Tell me about quantum computing.", "Tell me about quantum computing.",
"Look online and give me a recipe for making buttercream icing.",
], ],
) )
def test_nontrivial_requests_force_dispatch(utterance): def test_nontrivial_requests_force_dispatch(utterance):