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(voice): never register a bogus empty-string hangup hotkey

Ruben Lütke7020fafc456b
diff --git a/jarvis/speech/pipeline.py b/jarvis/speech/pipeline.py
index c2622714cc..d3da159b33 100644
--- a/jarvis/speech/pipeline.py
+++ b/jarvis/speech/pipeline.py
@@ -7876,7 +7876,11 @@ async def _main() -> None:
pipeline = SpeechPipeline(
call_hotkeys=_call_hk,
ptt_hotkeys=_ptt_hk,
- hangup_hotkeys=(config.trigger.hotkey_hangup,),
+ hangup_hotkeys=(
+ (config.trigger.hotkey_hangup,)
+ if config.trigger.hotkey_hangup.strip()
+ else ()
+ ),
wake_keywords=("hey_jarvis",),
wake_threshold=0.15,
stt=stt,
diff --git a/jarvis/speech/watchdog.py b/jarvis/speech/watchdog.py
index bad5859cf7..dd5183390f 100644
--- a/jarvis/speech/watchdog.py
+++ b/jarvis/speech/watchdog.py
@@ -125,7 +125,11 @@ async def _main() -> None:
pipeline = SpeechPipeline(
call_hotkeys=_call_hk,
ptt_hotkeys=_ptt_hk,
- hangup_hotkeys=(config.trigger.hotkey_hangup,),
+ hangup_hotkeys=(
+ (config.trigger.hotkey_hangup,)
+ if config.trigger.hotkey_hangup.strip()
+ else ()
+ ),
wake_keywords=("hey_jarvis",),
# Single source of truth — see PRODUCTION_WAKE_THRESHOLD and the
# data-driven reasoning in openwakeword_provider.py (BUG-009 episode 5,
diff --git a/jarvis/ui/desktop_app.py b/jarvis/ui/desktop_app.py
index 0b00bf8c9d..e1f58ce48d 100644
--- a/jarvis/ui/desktop_app.py
+++ b/jarvis/ui/desktop_app.py
@@ -2275,7 +2275,11 @@ class DesktopApp:
pipeline = SpeechPipeline(
call_hotkeys=_call_hk,
ptt_hotkeys=_ptt_hk,
- hangup_hotkeys=(self.cfg.trigger.hotkey_hangup,),
+ hangup_hotkeys=(
+ (self.cfg.trigger.hotkey_hangup,)
+ if self.cfg.trigger.hotkey_hangup.strip()
+ else ()
+ ),
# User-tunable voice silence window ("think buffer"). Without this
# the constructor default (1500) always won and the Settings
# slider could not change the boot value.