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
chore: auto-save WIP via Claude stop-hook safety net (2026-07-10 19:11)
Ruben Lütkec78ad91c4b94
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex e8dc8b1d87..fa66329cd8 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -1091,8 +1091,6 @@"self_test_button": "Probar palabra de activación","self_test_running": "Comprobando …","engine_label": "Motor de detección",- "sensitivity_label": "Sensibilidad",- "sensitivity_floor_note": "El mínimo es 0,5: por debajo del punto medio calibrado, la detección se vuelve tan estricta que el habla normal casi nunca la activa — parece rota, no \"menos sensible\". 0,5 es el valor equilibrado por defecto; valores más altos se activan con más facilidad.","custom_model_path_label": "Ruta del modelo ONNX personalizado","save": "Guardar palabra de activación","saved": "Palabra de activación guardada",diff --git a/jarvis/ui/web/frontend/src/views/settings/WakeWordPanel.test.tsx b/jarvis/ui/web/frontend/src/views/settings/WakeWordPanel.test.tsxindex 32103ed58f..95606fdf73 100644--- a/jarvis/ui/web/frontend/src/views/settings/WakeWordPanel.test.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/WakeWordPanel.test.tsx@@ -77,7 +77,6 @@ function makeWakeWordGET(phrase: string) {phrase,engine: "auto",custom_model_path: "",- sensitivity: 0.5,fuzzy_match_ratio: 80,engines: ["auto", "openwakeword"],instant_phrases: ["Hey Jarvis", "Jarvis"],diff --git a/tests/unit/speech/test_wake_phrase.py b/tests/unit/speech/test_wake_phrase.pyindex f6bbb460a7..a3621a6bb9 100644--- a/tests/unit/speech/test_wake_phrase.py+++ b/tests/unit/speech/test_wake_phrase.py@@ -18,9 +18,9 @@ import pytestfrom jarvis.speech import wake_constants as wcfrom jarvis.speech import wake_phrase as wpfrom jarvis.speech.wake_phrase import (+ CUSTOM_ONNX_THRESHOLD,compile_wake_matcher,resolve_wake_plan,- sensitivity_to_threshold,)@@ -195,25 +195,47 @@ def test_long_phrase_keeps_strict_ratio_for_short_name_relaxation() -> None:# ---------------------------------------------------------------------------# sensitivity -> OWW threshold mapping (anchored on PRODUCTION_WAKE_THRESHOLD)+# Wake thresholds are pinned constants (the Sensitivity slider was removed+# 2026-07-10 — every wake path always runs its calibrated-reliable value).# ---------------------------------------------------------------------------def test_default_sensitivity_maps_to_production_threshold() -> None:+def test_pretrained_threshold_is_pinned_to_production_wake_threshold() -> None:from jarvis.plugins.wake.openwakeword_provider import PRODUCTION_WAKE_THRESHOLD- assert sensitivity_to_threshold(0.5) == pytest.approx(PRODUCTION_WAKE_THRESHOLD)+ assert wp.PRODUCTION_WAKE_THRESHOLD == PRODUCTION_WAKE_THRESHOLD-def test_sensitivity_mapping_is_monotonic_decreasing() -> None:- # Higher sensitivity -> lower threshold -> easier to trigger.- assert sensitivity_to_threshold(0.0) > sensitivity_to_threshold(0.5)- assert sensitivity_to_threshold(0.5) > sensitivity_to_threshold(1.0)- assert sensitivity_to_threshold(0.0) == pytest.approx(0.30)+def test_custom_onnx_threshold_is_the_balanced_default() -> None:+ assert CUSTOM_ONNX_THRESHOLD == pytest.approx(0.50)-def test_sensitivity_clamped_to_unit_interval() -> None:- assert sensitivity_to_threshold(-1.0) == sensitivity_to_threshold(0.0)- assert sensitivity_to_threshold(2.0) == sensitivity_to_threshold(1.0)[email protected]("sensitivity", [0.0, 0.3, 0.5, 0.7, 1.0])+def test_resolved_thresholds_ignore_any_legacy_sensitivity_value(+ sensitivity: float, tmp_path: object+) -> None:+ """Guard: resolve_wake_plan() always yields the pinned thresholds, no+ matter what a legacy config carries in ``sensitivity`` (read-compat-only+ field since 2026-07-10)."""+ from jarvis.plugins.wake.openwakeword_provider import PRODUCTION_WAKE_THRESHOLD++ plan = resolve_wake_plan(+ _cfg(phrase="Computer", sensitivity=sensitivity),+ local_whisper_available=True,+ )+ assert plan.threshold == pytest.approx(PRODUCTION_WAKE_THRESHOLD)++ model = tmp_path / "my_wake.onnx" # type: ignore[operator]+ model.write_bytes(b"\x00")+ custom_plan = resolve_wake_plan(+ _cfg(+ phrase="Friday",+ engine="custom_onnx",+ custom_model_path=str(model),+ sensitivity=sensitivity,+ ),+ local_whisper_available=False,+ )+ assert custom_plan.threshold == pytest.approx(CUSTOM_ONNX_THRESHOLD)# --------------------------------------------------------------------------@@ -372,17 +394,8 @@ def test_just_jarvis_stays_typeable_through_the_generic_chain() -> None:assert plan.degraded is True-def test_sensitivity_to_poll_interval_makes_the_slider_control_speed() -> None:- # The Sensitivity slider was a no-op on the stt_match (local-Whisper) path:- # it only fed the openWakeWord threshold, which that path never scores- # against. It now drives the poll interval, so moving it changes how fast a- # spoken wake is picked up. Higher sensitivity => shorter interval => snappier.- # Both ends are fast ("always as low as possible"); the slider only trims.- assert wp.sensitivity_to_poll_interval(0.0) == pytest.approx(0.12)- assert wp.sensitivity_to_poll_interval(1.0) == pytest.approx(0.08)- assert wp.sensitivity_to_poll_interval(0.5) == pytest.approx(0.10)- # strictly monotonic decreasing- assert wp.sensitivity_to_poll_interval(0.2) > wp.sensitivity_to_poll_interval(0.8)- # clamps out-of-range input instead of producing absurd intervals- assert wp.sensitivity_to_poll_interval(-5) == wp.sensitivity_to_poll_interval(0.0)- assert wp.sensitivity_to_poll_interval(9) == wp.sensitivity_to_poll_interval(1.0)+def test_wake_poll_interval_is_pinned_to_the_fastest_calibrated_value() -> None:+ # The Sensitivity slider was removed (2026-07-10 mandate: "always spawn at+ # maximum speed on every OS"). The stt_match poll interval is now a fixed+ # constant — what used to be the sensitivity=1.0 (snappiest) end.+ assert wp.WAKE_POLL_INTERVAL_S == pytest.approx(0.08)