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.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
fix(wake): arm the vosk_kws detector at boot - the plan alone left it dead
Ruben Lütke74f3120e318a
diff --git a/jarvis/ui/desktop_app.py b/jarvis/ui/desktop_app.pyindex 0118877aa3..98294eb958 100644--- a/jarvis/ui/desktop_app.py+++ b/jarvis/ui/desktop_app.py@@ -2361,10 +2361,12 @@ class DesktopApp:# False) -> arm NOTHING; hotkey / push-to-talk is the only# activation. The product rule (2026-07-04): a wake word needs# a local model, never a silent branded fallback.+ # vosk_kws rides the same detector slot/loop as OWW (the+ # provider is duck-compatible), so it enables the flag too.enable_openwakeword=(self.cfg.trigger.wake_word_enabledand wake_plan.wake_available- and wake_plan.engine in ("openwakeword", "custom_onnx")+ and wake_plan.engine in ("openwakeword", "custom_onnx", "vosk_kws")),enable_whisper_wake=(self.cfg.trigger.wake_word_enableddiff --git a/tests/unit/speech/test_wake_plan_vosk.py b/tests/unit/speech/test_wake_plan_vosk.pyindex 76c97f380c..19da827e87 100644--- a/tests/unit/speech/test_wake_plan_vosk.py+++ b/tests/unit/speech/test_wake_plan_vosk.py@@ -125,3 +125,47 @@ def test_no_vosk_no_whisper_is_honest_wake_off(vosk_model_dir) -> None:)assert plan.engine == "none"assert plan.wake_available is False+++# --------------------------------------------------------------------------+# Pipeline live-apply: a vosk plan must actually ARM the detector+# --------------------------------------------------------------------------+++def test_set_wake_plan_vosk_arms_the_provider(vosk_model_dir) -> None:+ # Regression guard for the 2026-07-06 live finding: the plan resolved to+ # vosk_kws but the detector flag stayed off (OWW=off in the ready log), so+ # the wake was silently dead. The vosk provider rides the OWW slot/loop —+ # arming it must flip the flag on.+ from collections.abc import AsyncIterator+ from dataclasses import dataclass++ from jarvis.plugins.wake.vosk_kws_provider import VoskKwsProvider+ from jarvis.speech.pipeline import SpeechPipeline++ @dataclass+ class _FakeTTS:+ name: str = "fake-tts"+ supports_streaming: bool = True++ async def synthesize(+ self, text: str, voice: str | None = None, language_code: str | None = None+ ) -> AsyncIterator:+ if False: # pragma: no cover+ yield++ pipe = SpeechPipeline(+ tts=_FakeTTS(), bus=None,+ enable_openwakeword=False, enable_whisper_wake=False,+ enable_local_whisper=False, config=None,+ )+ plan = resolve_wake_plan(+ _cfg(), local_whisper_available=False, language="de", vosk_available=True+ )+ assert plan.engine == "vosk_kws"+ pipe.set_wake_plan(plan)++ assert isinstance(pipe._wake, VoskKwsProvider)+ assert pipe._openwakeword_enabled is True # the detector loop is armed+ assert pipe._whisper_wake_enabled is False+ assert pipe._wake_reload_event.is_set()