Keep words said after Lumi's own voice, search wider for callers and follow round blocked turns

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-30 18:22:47 +09:00
co-authored by Claude Opus 5.5
parent eb8975ff6e
commit 5cffbd8af4
10 changed files with 107 additions and 27 deletions
+5
View File
@@ -137,6 +137,11 @@ _mouth._recent[:] = [(time.time() - 20, "Yes?"), (time.time() - 4, "Go to p10, w
from assistant.lumi import ANSWER_ECHO_S, Lumi as _Lumi
assert not _Lumi.own_echo("Yes. Yes.", ANSWER_ECHO_S) and _Lumi.own_echo("Yes. Yes.")
assert _Lumi.own_echo("Is that right?", ANSWER_ECHO_S)
# the clip mic heard the end of Lumi's answer and the order in one utterance: the order is kept (2026-10-30)
_mouth._recent[:] = [(time.time() - 2, "Yes, I can see you about 1.8 metres away.")]
assert _Lumi.after_own_voice("Yes, I can see you about 1.8 metres away. Let's come here.") == "Let's come here."
assert _Lumi.after_own_voice("I can see you about 1.8 metres away.") is None # all Lumi's: dropped
assert _Lumi.after_own_voice("Let's come here.") is None # no echo to cut
_mouth._recent.clear()
# ---------- questions about what Lumi is doing: answered from the state, not by the LLM ----------
from assistant.lumi import STATUS_Q