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(voice): resolve_hotkeys drops blank (unbound) keybind entries
Ruben Lütke182be2dc477e
diff --git a/jarvis/core/config.py b/jarvis/core/config.pyindex 853d6a200f..4c26c50791 100644--- a/jarvis/core/config.py+++ b/jarvis/core/config.py@@ -209,10 +209,19 @@ class TriggerConfig(BaseModel):alongside ``hotkey_call`` and there is no PTT (the pre-2026-05-29 wiring).Hangup is a separate value read from ``hotkey_hangup`` at theSpeechPipeline call sites.++ A blank string means the user explicitly cleared that action (Settings+ Clear button) — filtered out here so an unbound key never reaches+ ``HotkeyTrigger`` as a bogus single-element tuple containing ``""``."""if self.push_to_talk:- return (self.hotkey_call,), (self.hotkey,)- return (self.hotkey, self.hotkey_call), ()+ call, ptt = (self.hotkey_call,), (self.hotkey,)+ else:+ call, ptt = (self.hotkey, self.hotkey_call), ()+ return (+ tuple(h for h in call if h.strip()),+ tuple(h for h in ptt if h.strip()),+ )# When False (default), the local wake path is lightweight: openWakeWord# only (~3.5 MB ONNX, CPU-only, bundled in jarvis/assets/wakeword/), no# faster-whisper anywhere — no GPU, no ~1 GB model download. When True, thediff --git a/tests/unit/core/test_trigger_keybinds.py b/tests/unit/core/test_trigger_keybinds.pyindex 3a08f84fda..4a5408e5f0 100644--- a/tests/unit/core/test_trigger_keybinds.py+++ b/tests/unit/core/test_trigger_keybinds.py@@ -32,3 +32,24 @@ def test_old_toml_without_new_keys_keeps_legacy_behaviour() -> None:assert call == ("f3+f4",)assert ptt == ("ctrl+right_alt+j",)assert t.hotkey_hangup == "f1+f2"+++def test_resolve_hotkeys_drops_blank_call_when_ptt_on() -> None:+ t = TriggerConfig(push_to_talk=True, hotkey="ctrl+right_alt+j", hotkey_call="")+ call, ptt = t.resolve_hotkeys()+ assert call == ()+ assert ptt == ("ctrl+right_alt+j",)+++def test_resolve_hotkeys_drops_blank_ptt_when_ptt_on() -> None:+ t = TriggerConfig(push_to_talk=True, hotkey="", hotkey_call="f3+f4")+ call, ptt = t.resolve_hotkeys()+ assert call == ("f3+f4",)+ assert ptt == ()+++def test_resolve_hotkeys_drops_blank_entries_when_ptt_off() -> None:+ t = TriggerConfig(push_to_talk=False, hotkey="", hotkey_call="f3+f4")+ call, ptt = t.resolve_hotkeys()+ assert call == ("f3+f4",)+ assert ptt == ()