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.

feat(wake): floor the sensitivity slider at 0.5 with a fine-print rationale

Ruben Lütke57bc3e587267
diff --git a/jarvis.toml.example b/jarvis.toml.example
index 445b2a4f9e..e17e217985 100644
--- a/jarvis.toml.example
+++ b/jarvis.toml.example
@@ -41,7 +41,7 @@ single_turn_mode = false # false = conversation stays open until "hang up"/i
# Leave blank to pick your word during onboarding.
phrase = ""
engine = "auto" # auto | openwakeword | vosk_kws | stt_match | custom_onnx
-sensitivity = 0.5
+sensitivity = 0.5 # 0.5..1 (values below 0.5 are lifted — the wake would be deaf)
# ── Speech-to-Text ──
[stt]
diff --git a/jarvis/core/config.py b/jarvis/core/config.py
index 88677cb95f..688fdf1e95 100644
--- a/jarvis/core/config.py
+++ b/jarvis/core/config.py
@@ -142,11 +142,16 @@ class WakeWordConfig(BaseModel):
engine: str = "auto"
# Path to a user-supplied/trained .onnx wake model (engine="custom_onnx").
custom_model_path: str = ""
- # 0..1 wake responsiveness. openWakeWord path: mapped onto the activation
+ # 0.5..1 wake responsiveness. openWakeWord path: mapped onto the activation
# threshold (0.5 == the data-driven PRODUCTION_WAKE_THRESHOLD, BUG-009 floor
# preserved). stt_match (local-Whisper) path: drives the poll interval
# (higher => polls more often => a spoken wake is picked up sooner), since
# that path never scores against the threshold.
+ # FLOOR 0.5 (user mandate 2026-07-07): below the calibrated midpoint the
+ # detector becomes so strict that normal-volume speech practically never
+ # fires it — a live config at 0.0 read as "the wake word is broken", not
+ # as "less sensitive". Values below the floor are LIFTED to 0.5 on load so
+ # an old/hand-edited jarvis.toml can never boot into a deaf wake word.
sensitivity: float = 0.5
# STT transcript-match tolerance for transcription drift (engine="stt_match").
fuzzy_match_ratio: float = 0.8
@@ -162,6 +167,17 @@ class WakeWordConfig(BaseModel):
text = str(value or "").strip().lower()
return text if text in WAKE_ENGINES else "auto"
+ @field_validator("sensitivity", mode="before")
+ @classmethod
+ def _floor_sensitivity(cls, value: object) -> float:
+ try:
+ number = float(value) # type: ignore[arg-type]
+ except (TypeError, ValueError):
+ return 0.5
+ # Lift below-floor values instead of rejecting: a stale config must
+ # never fail validation (AP-16), and 0.5 restores a working wake.
+ return min(1.0, max(0.5, number))
+
class TriggerConfig(BaseModel):
wake_word_enabled: bool = False
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.json
index ccb522d676..ca372b39b2 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json
@@ -1050,12 +1050,13 @@
"phrase_placeholder": "z. B. Jonas",
"engine_label": "Erkennungs-Engine",
"sensitivity_label": "Empfindlichkeit",
+ "sensitivity_floor_note": "Minimum ist 0,5: Darunter wird die Erkennung so streng, dass normale Sprechlautstärke praktisch nie auslöst — das wirkt kaputt statt \"weniger empfindlich\". 0,5 ist der ausbalancierte Standard; höhere Werte lösen leichter aus.",
"custom_model_path_label": "Pfad zum eigenen ONNX-Modell",
"save": "Wake-Word speichern",
"saved": "Wake-Word gespeichert",
"restart_required": "Neustart erforderlich, damit die Änderung greift.",
"degraded_warning": "Die gewählte Phrase wird von der ausgewählten Engine nicht unterstützt — sie fällt auf eine andere Engine zurück.",
- "needs_whisper_hint": "Eine beliebige Phrase benötigt das lokale-Whisper-Extra. Ohne es fällt die Engine auf eine eingebaute Schnellphrase zurück.",
+ "needs_whisper_hint": "Diese Phrase benötigt eine lokale Engine. Installiere unten das lokale Sprachpaket — bis dahin bleibt das Wake-Word aus und du aktivierst per Hotkey / Push-to-talk.",
"derived_name": "Dein Assistent heißt dann: {0}",
"engine_options": {
"auto": "Automatisch (empfohlen)",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.json
index 9aea0051a0..2411589459 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json
@@ -1051,12 +1051,13 @@
"phrase_placeholder": "e.g. Jonas",
"engine_label": "Detection engine",
"sensitivity_label": "Sensitivity",
+ "sensitivity_floor_note": "Minimum is 0.5: below the calibrated midpoint the detector becomes so strict that normal speech practically never wakes it — that feels broken, not \"less sensitive\". 0.5 is the balanced default; higher values trigger more easily.",
"custom_model_path_label": "Custom ONNX model path",
"save": "Save wake word",
"saved": "Wake word saved",
"restart_required": "Restart required to take effect.",
"degraded_warning": "The chosen phrase isn't supported by the selected engine — it will fall back to a different engine.",
- "needs_whisper_hint": "An arbitrary phrase needs the local-Whisper extra. Without it the engine will degrade to a built-in quick phrase.",
+ "needs_whisper_hint": "This phrase needs a local engine. Install the local speech pack below — until then the wake word stays off and you activate via hotkey / push-to-talk.",
"derived_name": "Your assistant will be called: {0}",
"engine_options": {
"auto": "Auto (recommended)",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.json
index 167a25ae07..cd23008d7c 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json
@@ -1050,12 +1050,13 @@
"phrase_placeholder": "p. ej. Jonas",
"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",
"restart_required": "Es necesario reiniciar para que surta efecto.",
"degraded_warning": "La frase elegida no es compatible con el motor seleccionado — recurrirá a otro motor.",
- "needs_whisper_hint": "Una frase arbitraria requiere el extra de Whisper local. Sin él, el motor recurrirá a una frase rápida integrada.",
+ "needs_whisper_hint": "Esta frase necesita un motor local. Instala el paquete de voz local más abajo — hasta entonces la palabra de activación queda desactivada y se activa con el atajo de teclado.",
"derived_name": "Tu asistente se llamará: {0}",
"engine_options": {
"auto": "Automático (recomendado)",
diff --git a/jarvis/ui/web/frontend/src/views/SettingsView.tsx b/jarvis/ui/web/frontend/src/views/SettingsView.tsx
index f10b38c932..bd0c430225 100644
--- a/jarvis/ui/web/frontend/src/views/SettingsView.tsx
+++ b/jarvis/ui/web/frontend/src/views/SettingsView.tsx
@@ -139,7 +139,9 @@ function WakeWordPanel() {
if (!config) return;
setPhrase(config.phrase);
setEngine(config.engine || "auto");
- setSensitivity(config.sensitivity);
+ // Floor 0.5 (matches the backend clamp): an old config below the floor is
+ // shown lifted, never as a deaf sub-floor value.
+ setSensitivity(Math.max(0.5, config.sensitivity));
setCustomModelPath(config.custom_model_path ?? "");
// ?? false keeps the Switch controlled even if an older backend omits it.
setEnabled(config.enabled ?? false);
@@ -292,7 +294,7 @@ function WakeWordPanel() {
</label>
<input
type="range"
- min={0}
+ min={0.5}
max={1}
step={0.05}
value={sensitivity}
@@ -300,6 +302,11 @@ function WakeWordPanel() {
disabled={loading}
className="mt-1.5 w-full accent-primary disabled:opacity-50"
/>
+ {/* Fine print: why the slider bottoms out at 0.5 (user mandate
+ 2026-07-07 — a sub-floor sensitivity reads as a broken wake). */}
+ <p className="mt-1 text-[11px] leading-snug text-muted-foreground">
+ {t("settings_view.wake_word.sensitivity_floor_note")}
+ </p>
{/* Any-phrase enablement: install the local speech pack in-app so
an arbitrary wake word works, instead of silently degrading. */}
diff --git a/jarvis/ui/web/settings_routes.py b/jarvis/ui/web/settings_routes.py
index da3a75e11b..eb44471f7b 100644
--- a/jarvis/ui/web/settings_routes.py
+++ b/jarvis/ui/web/settings_routes.py
@@ -484,6 +484,13 @@ async def put_wake_word(body: WakeWordBody, request: Request) -> dict[str, objec
detail=f"Unknown wake engine '{body.engine}'. Allowed: {', '.join(WAKE_ENGINES)}.",
)
+ # Sensitivity floor 0.5 (user mandate 2026-07-07): below the calibrated
+ # midpoint the wake word is effectively deaf. Lift instead of reject —
+ # mirrors WakeWordConfig._floor_sensitivity so every write path agrees.
+ sensitivity = (
+ None if body.sensitivity is None else min(1.0, max(0.5, body.sensitivity))
+ )
+
# Preview the resolved plan so the UI can tell the user immediately whether
# the chosen phrase will work as-is or degrade (e.g. no local Whisper).
_cfg_for_lang = _config(request)
@@ -493,7 +500,7 @@ async def put_wake_word(body: WakeWordBody, request: Request) -> dict[str, objec
phrase=body.phrase,
engine=engine,
custom_model_path=body.custom_model_path,
- sensitivity=body.sensitivity,
+ sensitivity=sensitivity,
fuzzy_match_ratio=body.fuzzy_match_ratio,
),
local_whisper_available=_local_whisper_available(),
@@ -510,8 +517,8 @@ async def put_wake_word(body: WakeWordBody, request: Request) -> dict[str, objec
updates: dict[str, object] = {"phrase": body.phrase, "engine": engine}
if body.custom_model_path is not None:
updates["custom_model_path"] = body.custom_model_path
- if body.sensitivity is not None:
- updates["sensitivity"] = body.sensitivity
+ if sensitivity is not None:
+ updates["sensitivity"] = sensitivity
if body.fuzzy_match_ratio is not None:
updates["fuzzy_match_ratio"] = body.fuzzy_match_ratio
for key, value in updates.items():
@@ -529,7 +536,7 @@ async def put_wake_word(body: WakeWordBody, request: Request) -> dict[str, objec
body.phrase,
engine=engine,
custom_model_path=body.custom_model_path,
- sensitivity=body.sensitivity,
+ sensitivity=sensitivity,
fuzzy_match_ratio=body.fuzzy_match_ratio,
)
persisted = True
diff --git a/tests/unit/core/test_wake_word_config.py b/tests/unit/core/test_wake_word_config.py
index 1f350e44ad..b9cbe10ea3 100644
--- a/tests/unit/core/test_wake_word_config.py
+++ b/tests/unit/core/test_wake_word_config.py
@@ -54,3 +54,20 @@ def test_phrase_round_trips_arbitrary_value() -> None:
assert c.phrase == "Computer"
assert c.engine == "stt_match"
assert c.fuzzy_match_ratio == 0.7
+
+
+def test_sensitivity_below_floor_is_lifted_not_rejected() -> None:
+ # User mandate 2026-07-07: below 0.5 the detector is effectively deaf (a
+ # live config at 0.0 read as "the wake word is broken"). Sub-floor values
+ # are LIFTED on load — never a validation error (AP-16 boot resilience).
+ assert WakeWordConfig(sensitivity=0.0).sensitivity == 0.5
+ assert WakeWordConfig(sensitivity=0.3).sensitivity == 0.5
+ assert WakeWordConfig(sensitivity=-1).sensitivity == 0.5
+ assert WakeWordConfig(sensitivity="garbage").sensitivity == 0.5
+
+
+def test_sensitivity_valid_range_round_trips() -> None:
+ assert WakeWordConfig(sensitivity=0.5).sensitivity == 0.5
+ assert WakeWordConfig(sensitivity=0.75).sensitivity == 0.75
+ assert WakeWordConfig(sensitivity=1.0).sensitivity == 1.0
+ assert WakeWordConfig(sensitivity=2.0).sensitivity == 1.0 # ceiling clamp