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(speech): wire conversation-mode default into the pipeline dev CLI; sweep stale single-turn comments

Ruben Lütke0c8891f16dff
diff --git a/docs/plans/voice-endpoint-patience/README.md b/docs/plans/voice-endpoint-patience/README.md
index 23d6faeac1..ca5a22b04b 100644
--- a/docs/plans/voice-endpoint-patience/README.md
+++ b/docs/plans/voice-endpoint-patience/README.md
@@ -146,6 +146,7 @@ complete questions. So the obvious "just add more patterns" fix is exactly what
| 05-24 | `5a9afb22a` | `single_turn_mode` → `false` (conversation mode back on). |
| 05-25 | `87b27e0b5` | **(today)** Added `cancel_hysteresis_ms=160` — fixes "never endpoints in noise" but is antagonistic to pause-tolerance (Suspect #3). |
| 05-25 | `939eeb932` | **(today)** Probe refactor: `_probe_stt` can be cloud Groq; `_probe_generation` cross-turn-leak guard; dropped polite-thanks hangup regex. |
+| 07-18 | `c564b9d7` | Code default `single_turn_mode` flipped `True` → `False` in `config.py` (conversation mode ships by default). The truth-table row below (`True config.py:95`) is the 05-25 snapshot, now historical. |
### Corrected agent finding (verified false)
A Jarvis-Agent flagged commit `17296d5e3` ("accumulate long dictation across VAD max-utterance
diff --git a/jarvis/speech/pipeline.py b/jarvis/speech/pipeline.py
index 6d3952d13a..4b7a7ef62e 100644
--- a/jarvis/speech/pipeline.py
+++ b/jarvis/speech/pipeline.py
@@ -10007,7 +10007,7 @@ async def _main() -> None:
)
from jarvis.plugins.tts import build_tts_from_config
tts = build_tts_from_config(config.tts)
- # Env-Override bleibt fuer Quick-Tests an der CLI bestehen.
+ # The env override stays available for quick CLI tests.
env_voice = os.environ.get("JARVIS_TTS_VOICE")
if env_voice and hasattr(tts, "_default_voice"):
tts._default_voice = env_voice
@@ -10029,6 +10029,10 @@ async def _main() -> None:
tts=tts,
brain_callback=brain,
enable_whisper_wake=True,
+ # Mirror the production wiring (desktop_app / watchdog): the config
+ # field is canonical; without this line the constructor default
+ # (False) silently overrides the shipped conversation-mode default.
+ continue_listening_after_response=not config.trigger.single_turn_mode,
idle_timeout_s=config.trigger.session_idle_timeout_s,
input_device=config.audio.input_device or None,
output_device=config.audio.output_device or None,
@@ -10037,12 +10041,12 @@ async def _main() -> None:
print("=" * 64)
print(" Personal Jarvis — Speech-Pipeline")
print("=" * 64)
- print(" ANRUFEN : sag dein Wake-Word | Ctrl+RightAlt+J | F3+F4")
- print(" AUFLEGEN: sag 'auflegen' | F1+F2")
- print(" BEENDEN : Ctrl+C im Terminal")
+ print(" CALL : say your wake word | Ctrl+RightAlt+J | F3+F4")
+ print(" HANG UP : say 'auflegen' | F1+F2") # i18n-allow: quoted German hangup trigger phrase
+ print(" QUIT : Ctrl+C in the terminal")
print()
- print(" Wenn Jarvis dich hört: Ding-Ton + 'Ja?' zurück.")
- print(" Live-Score-Log zeigt dir ob Wake-Word triggert.")
+ print(" When Jarvis hears you: chime + a short spoken ack back.")
+ print(" The live score log shows whether the wake word triggers.")
print("=" * 64)
print()
await pipeline.run()
diff --git a/jarvis/speech/watchdog.py b/jarvis/speech/watchdog.py
index 512d6b979f..a57c24d520 100644
--- a/jarvis/speech/watchdog.py
+++ b/jarvis/speech/watchdog.py
@@ -139,8 +139,9 @@ async def _main() -> None:
tts=tts,
brain_callback=brain,
enable_whisper_wake=True,
- # User-Mandat 2026-05-18: every turn requires a fresh wake. The Toml
- # field ``[trigger].single_turn_mode`` is the canonical source.
+ # ``[trigger].single_turn_mode`` is the canonical source. Shipped
+ # default since 2026-07-18 is conversation mode (false); true opts
+ # back into a fresh wake per turn (the retired 2026-05-18 mandate).
continue_listening_after_response=not config.trigger.single_turn_mode,
# ``session_idle_timeout_s`` <= 0 keeps a conversation session active
# until a manual hangup; the 30 s default stays the safe baseline.
diff --git a/jarvis/ui/desktop_app.py b/jarvis/ui/desktop_app.py
index 9a4eb9dd3b..6705fa68a2 100644
--- a/jarvis/ui/desktop_app.py
+++ b/jarvis/ui/desktop_app.py
@@ -2769,10 +2769,11 @@ class DesktopApp:
# "Jarvis" false-fire path without pendulumming the OWW
# threshold (BUG-009).
require_hey_prefix=self.cfg.trigger.require_hey_prefix,
- # User mandate 2026-05-18: single turn per wake. ``single_turn_mode``
- # in jarvis.toml is the canonical source; ``continue_listening``
- # is its negated counterpart here — if the user ever wants
- # conversation mode again, they flip the TOML entry.
+ # ``single_turn_mode`` in jarvis.toml is the canonical source;
+ # ``continue_listening`` is its negated counterpart here.
+ # Shipped default since 2026-07-18 is conversation mode
+ # (single_turn_mode = false); flipping the TOML entry opts
+ # back into one turn per wake (the retired 2026-05-18 mandate).
continue_listening_after_response=(
not self.cfg.trigger.single_turn_mode
),
diff --git a/tests/unit/speech/test_turn_taking.py b/tests/unit/speech/test_turn_taking.py
index f787594cae..8a672a05ac 100644
--- a/tests/unit/speech/test_turn_taking.py
+++ b/tests/unit/speech/test_turn_taking.py
@@ -192,11 +192,11 @@ async def test_turn_state_mapping_preserves_ui_supervisor_states() -> None:
@pytest.mark.asyncio
async def test_wellbeing_prompt_gets_voice_fallback_when_brain_returns_filler() -> None:
- # Production-Default since 2026-05-18 (single-turn-per-wake): the
+ # Opt-in single-turn path (shipped default until 2026-07-18): the
# wellbeing-fallback phrase still fires AND the session ends with
# hangup_reason=turn_complete so the next turn requires a fresh
- # "Hey Jarvis" wake. ``_make_pipeline`` defaults to
- # ``continue_listening_after_response=False`` to match production.
+ # "Hey Jarvis" wake. Single-turn is passed explicitly because the
+ # shipped default has been conversation mode since 2026-07-18.
pipe = _make_pipeline(
FakeSTT(text="Wie geht es dir Jarvis"),
brain_response="Ich bin einsatzbereit.",