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
feat(wake): remove pretrained brand-model resolution — generic engine chain only
Ruben Lütke3db12fd55e7f
diff --git a/tests/unit/speech/test_wake_custom_model.py b/tests/unit/speech/test_wake_custom_model.pyindex 3dbae9d6d1..0b8a55e30c 100644--- a/tests/unit/speech/test_wake_custom_model.py+++ b/tests/unit/speech/test_wake_custom_model.py@@ -141,9 +141,10 @@ def test_explicit_custom_engine_keeps_arbitrarily_named_model(tmp_path) -> None:assert plan.oww_model_path == str(model)-def test_stale_custom_model_lets_pretrained_phrase_through(tmp_path) -> None:- # A stale custom model must not block the pretrained path either: with the- # phrase set (back) to "Hey Jarvis", the bundled hey_jarvis model wins.+def test_stale_custom_model_lets_other_phrases_through_generically(tmp_path) -> None:+ # A stale custom model must not block the generic chain either: with the+ # phrase set to "Hey Jarvis", the generic engine serves it (design+ # 2026-07-07: no bundled model wins anything).from jarvis.speech.wake_phrase import resolve_wake_planmodel = tmp_path / "hey_nico.onnx"@@ -152,8 +153,8 @@ def test_stale_custom_model_lets_pretrained_phrase_through(tmp_path) -> None:_cfg(str(model), phrase="Hey Jarvis", engine="auto"),local_whisper_available=True,)- assert plan.engine == "openwakeword"- assert plan.oww_keyword == "hey_jarvis"+ assert plan.engine == "stt_match"+ assert plan.oww_model_path is Noneassert plan.degraded is Falsediff --git a/tests/unit/speech/test_wake_live_apply.py b/tests/unit/speech/test_wake_live_apply.pyindex b7c4e04fef..bed82894a8 100644--- a/tests/unit/speech/test_wake_live_apply.py+++ b/tests/unit/speech/test_wake_live_apply.py@@ -15,7 +15,6 @@ from types import SimpleNamespaceimport pytest-from jarvis.speech import wake_constants as wcfrom jarvis.speech import wake_phrase as wpfrom jarvis.speech.pipeline import SpeechPipelinefrom jarvis.speech.wake_phrase import resolve_wake_plandiff --git a/tests/unit/speech/test_wake_plan_vosk.py b/tests/unit/speech/test_wake_plan_vosk.pyindex 19da827e87..c99ffe68e6 100644--- a/tests/unit/speech/test_wake_plan_vosk.py+++ b/tests/unit/speech/test_wake_plan_vosk.py@@ -56,15 +56,16 @@ def test_auto_picks_vosk_for_arbitrary_phrase(vosk_model_dir) -> None:assert plan.verify_prefix is False # the provider's own confirm handles it-def test_known_pretrained_phrase_keeps_openwakeword(vosk_model_dir) -> None:- # "Hey Jarvis" has a bundled instant OWW model — vosk must not hijack it.+def test_jarvis_phrase_runs_on_vosk_like_any_other_word(vosk_model_dir) -> None:+ # Design 2026-07-07: no bundled model exists — "Hey Jarvis" is served by+ # the same any-word vosk engine as every other phrase.plan = resolve_wake_plan(_cfg(phrase="Hey Jarvis"),local_whisper_available=True,language="de",vosk_available=True,)- assert plan.engine == "openwakeword"+ assert plan.engine == "vosk_kws"def test_explicit_vosk_engine_forces_vosk(vosk_model_dir) -> None:diff --git a/tests/unit/ui/test_wake_word_route.py b/tests/unit/ui/test_wake_word_route.pyindex f412f1b82c..f8b72e1eb6 100644--- a/tests/unit/ui/test_wake_word_route.py+++ b/tests/unit/ui/test_wake_word_route.py@@ -7,8 +7,6 @@ from fastapi import FastAPIfrom fastapi.testclient import TestClientfrom jarvis.core.config import WakeWordConfig-from jarvis.speech import wake_constants as wc-from jarvis.speech import wake_phrase as wpfrom jarvis.ui.web.settings_routes import router@@ -36,19 +34,6 @@ def _client(return TestClient(app)-def _pretend_oww_models_exist(monkeypatch, *model_names: str) -> None:- models = set(model_names)- original_resolve = wc.resolve_oww_model_path-- def fake_resolve(model_name: str) -> str | None:- if model_name in models:- return f"C:/fake-openwakeword/{model_name}_v0.1.onnx"- return original_resolve(model_name)-- monkeypatch.setattr(wc, "resolve_oww_model_path", fake_resolve)- monkeypatch.setattr(wp, "resolve_oww_model_path", fake_resolve)--def test_get_returns_current_and_options() -> None:body = _client().get("/api/settings/wake-word").json()assert body["phrase"] == ""@@ -58,9 +43,10 @@ def test_get_returns_current_and_options() -> None:assert isinstance(body["local_whisper_available"], bool)-def test_put_known_phrase_resolves_to_openwakeword(monkeypatch) -> None:- _pretend_oww_models_exist(monkeypatch, "alexa")-+def test_put_brand_phrase_never_resolves_to_a_pretrained_model() -> None:+ # Design 2026-07-07: no bundled/pretrained brand models. A brand word is+ # an ordinary phrase served by the generic chain (or an honest degrade on+ # a box without a local engine) — never by a named openwakeword model.resp = _client().put("/api/settings/wake-word",json={"phrase": "Alexa", "engine": "auto", "persist": False},@@ -68,16 +54,14 @@ def test_put_known_phrase_resolves_to_openwakeword(monkeypatch) -> None:body = resp.json()assert resp.status_code == 200assert body["ok"] is True- assert body["resolved_engine"] == "openwakeword"- assert body["degraded"] is False+ assert body["resolved_engine"] in ("stt_match", "vosk_kws", "none")assert body["restart_required"] is Trueassert body["persisted"] is False-def test_put_live_applies_to_running_pipeline(monkeypatch) -> None:+def test_put_live_applies_to_running_pipeline() -> None:# The fix for "only Hey Jarvis works": a save must reconfigure the live# pipeline (no restart) when one is running.- _pretend_oww_models_exist(monkeypatch, "alexa")pipe = _FakePipeline()resp = _client(pipeline=pipe).put("/api/settings/wake-word",