Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(speech): drop English-mishear hang-up aliases that killed fresh wake sessions

Ruben Lütkeba411449503d
diff --git a/jarvis/speech/hangup.py b/jarvis/speech/hangup.py
index dc4a0f6d33..49a39a5ead 100644
--- a/jarvis/speech/hangup.py
+++ b/jarvis/speech/hangup.py
@@ -96,10 +96,16 @@ _HANGUP_PATTERNS: Final[tuple[str, ...]] = (
r"\bexit\b",
r"\bquit\b",
r"\bciao\b",
- # English — Whisper mis-transcriptions of the German "auflegen"
- r"\blet'?s\s+get\s+up\b",
- r"\blet\s+us\s+get\s+up\b",
- r"\bjust\s+get\s+up\b",
+ # REMOVED 2026-07-07: the "English mis-hearings of auflegen" aliases
+ # ("let's get up", "let us get up", "just get up"). Live incident: right
+ # after a vosk wake, Groq garbled the 448 ms wake-phrase tail into
+ # "Let's get up!" (English, conf 0.69) and the alias instantly hung up
+ # the freshly opened session — the wake word appeared "completely
+ # broken". Ordinary English phrases are far too easy to hallucinate; a
+ # genuinely misheard "auflegen" is still covered by the German mishear
+ # family above and by the brain's END_CALL_SIGNAL path (stay-on-when-
+ # unsure mandate: a missed hang-up costs one repeat, a false hang-up
+ # kills the session).
)
HANGUP_RE: Final[re.Pattern[str]] = re.compile("|".join(_HANGUP_PATTERNS), re.IGNORECASE)
diff --git a/tests/unit/speech/test_hangup.py b/tests/unit/speech/test_hangup.py
index e39b2e4673..27bb4fc309 100644
--- a/tests/unit/speech/test_hangup.py
+++ b/tests/unit/speech/test_hangup.py
@@ -23,9 +23,6 @@ from jarvis.speech.hangup import (
"auf leg",
"legen sie auf",
"aufgelegt",
- # Whisper mis-hearings of "auflegen"
- "let's get up",
- "just get up",
"tschüss", # i18n-allow
"tschuess",
"beenden",
@@ -93,6 +90,16 @@ def test_hangup_re_matches_auflegen_mishearings(phrase: str) -> None:
"kannst du das nochmal machen",
"geh mal auf die seite", # i18n-allow
"öffne die datei", # i18n-allow
+ # Live 2026-07-07: Groq garbled the 448 ms wake-phrase tail right
+ # after a vosk wake into "Let's get up!" (English, conf 0.69) and the
+ # former "English mis-hearings of auflegen" aliases instantly hung up
+ # the freshly opened session ("the taskbar aborts right after the
+ # wake word"). Ordinary English phrases must NEVER be hang-up
+ # commands; a genuinely misheard "auflegen" is covered by the German
+ # mishear family and the brain's END_CALL_SIGNAL path.
+ "Let's get up!",
+ "let us get up",
+ "just get up",
],
)
def test_hangup_re_ignores_ambiguous_and_normal_speech(phrase: str) -> None:
diff --git a/tests/unit/speech/test_turn_taking.py b/tests/unit/speech/test_turn_taking.py
index 57e2a252c4..c7d9c2916b 100644
--- a/tests/unit/speech/test_turn_taking.py
+++ b/tests/unit/speech/test_turn_taking.py
@@ -324,13 +324,16 @@ async def test_hangup_accepts_split_auf_leg_transcript() -> None:
@pytest.mark.asyncio
-async def test_hangup_accepts_lets_get_up_mistranscript() -> None:
+async def test_lets_get_up_mistranscript_does_not_hang_up() -> None:
+ # REVERSED 2026-07-07 (live incident): right after a vosk wake, Groq
+ # garbled the 448 ms wake-phrase tail into "Let's get up!" and the former
+ # English-mishear hang-up alias instantly killed the fresh session. The
+ # alias is gone from HANGUP_RE; such a transcript is an ordinary turn.
pipe = _make_pipeline(FakeSTT(text="Let's get up."))
keep_session = await pipe._handle_utterance(b"\x01\x00" * 1024)
- assert keep_session is False
- assert pipe._spoken == []
+ assert keep_session is True
@pytest.mark.xfail(