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): ship conversation mode by default so fresh installs stop hanging up after every turn

Ruben Lütke332486b357aa
diff --git a/jarvis/core/config.py b/jarvis/core/config.py
index 1b2355cade..13f316a49d 100644
--- a/jarvis/core/config.py
+++ b/jarvis/core/config.py
@@ -296,14 +296,18 @@ class TriggerConfig(BaseModel):
# user-editable via /api/settings/keybinds. Read directly at bootstrap.
hotkey_hangup: str = "f1+f2"
wake_word: WakeWordConfig = Field(default_factory=WakeWordConfig)
- # When true (default), every voice turn ends after Jarvis finishes
- # speaking and a fresh "Hey Jarvis" wake is required to start the
- # next turn. When false, the pipeline keeps the mic open after the
- # response (legacy conversation mode introduced 2026-05-05) and only
- # hangs up via HANGUP_RE, the idle timeout, or a hotkey. User mandate
- # 2026-05-18: single-turn is the canonical behaviour — open-mic mode
- # made Jarvis trigger on every word in the room.
- single_turn_mode: bool = True
+ # When false (default), the pipeline keeps the mic open after the
+ # response (conversation mode) and only hangs up via HANGUP_RE, the idle
+ # timeout, or a hotkey. When true, every voice turn ends after Jarvis
+ # finishes speaking and a fresh wake is required for the next turn.
+ # History: single-turn became the default 2026-05-18 because open-mic mode
+ # then triggered on every word in the room; the endpointing/echo fixes
+ # since removed that failure, and shipping single-turn made every fresh
+ # install feel broken ("Jarvis hangs up after each answer") while the
+ # maintainer's local jarvis.toml quietly overrode it — the AP-23 class.
+ # Maintainer directive 2026-07-18: conversation mode is the shipped
+ # behaviour; single-turn stays available as an opt-in.
+ single_turn_mode: bool = False
# Silence window (seconds) after which a CONVERSATION-mode voice session
# (``single_turn_mode = false``) auto-hangs-up while waiting for the next
# user turn. Set to 0 — or any value <= 0 — to DISABLE the auto-hangup
diff --git a/tests/unit/speech/test_turn_taking.py b/tests/unit/speech/test_turn_taking.py
index 0fc815a461..f787594cae 100644
--- a/tests/unit/speech/test_turn_taking.py
+++ b/tests/unit/speech/test_turn_taking.py
@@ -213,10 +213,11 @@ async def test_wellbeing_prompt_gets_voice_fallback_when_brain_returns_filler()
@pytest.mark.asyncio
async def test_single_turn_mode_ends_session_after_response() -> None:
- # User mandate 2026-05-18: every voice turn must end after the response
- # so the next turn requires a fresh "Hey Jarvis". If this test fails the
- # bug is back -- Jarvis stays in LISTENING and the open mic catches
- # background conversation without a wake word.
+ # Opt-in single-turn path (shipped default until 2026-07-18): with
+ # [trigger].single_turn_mode = true every voice turn ends after the
+ # response and the next turn requires a fresh wake. If this test fails
+ # the opt-in is broken -- Jarvis stays in LISTENING even though the user
+ # asked for one turn per wake.
pipe = _make_pipeline(
FakeSTT(text="Wie spaet ist es"),
brain_response="Es ist kurz nach drei.", # i18n-allow
@@ -233,8 +234,8 @@ async def test_single_turn_mode_ends_session_after_response() -> None:
@pytest.mark.asyncio
async def test_conversation_mode_keeps_session_listening_when_opted_in() -> None:
- # Opt-in legacy path: when [trigger].single_turn_mode = false in
- # jarvis.toml, the desktop launcher wires
+ # Shipped default since 2026-07-18: with [trigger].single_turn_mode =
+ # false the desktop launcher wires
# ``continue_listening_after_response=True`` and the pipeline keeps the
# mic open after the response. Idle-timeout / hangup-regex / hotkey are
# then the only ways out -- same semantics as 2026-05-05 production.