dsh: honor explicit 'ask/hey jervis' addressing in home gate (direct target = route to Jervis)

This commit is contained in:
2026-09-20 07:05:07 +10:00
parent 1535e14c6f
commit 134fb233bc

View File

@@ -147,6 +147,8 @@ def _looks_homeish(msg: str) -> bool:
fish, time/weather). Jervis decides answer-vs-act and speaks confirmations.""" fish, time/weather). Jervis decides answer-vs-act and speaks confirmations."""
m = (msg or "").lower() m = (msg or "").lower()
return any(h in m for h in ( return any(h in m for h in (
# direct address (explicit target) — "ask jervis …", "hey jervis …", "jervis, …"
"ask jervis", "hey jervis", "jervis,", "jervis ",
# speak / announce # speak / announce
"announce", "speak", "speaker", "shout", "out loud", "announce", "speak", "speaker", "shout", "out loud",
"say on ", "say over ", "say through ", "on the speakers", "say on ", "say over ", "say through ", "on the speakers",