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
perf(macos): bound EVERY AX window candidate + cap raise_after_launch — second half of the 15s open_app stall
Personal Jarvis Maintainer15d4494ca647
diff --git a/docs/product/personalize-and-connect/settings-and-appearance.md b/docs/product/personalize-and-connect/settings-and-appearance.mdindex 6c69c5211c..addef17ced 100644--- a/docs/product/personalize-and-connect/settings-and-appearance.md+++ b/docs/product/personalize-and-connect/settings-and-appearance.md@@ -46,7 +46,7 @@ that have their own guides.| **App settings** | Launch the app when you sign in | The operating-system startup entry is added or removed immediately || **Privacy permissions** | Microphone, screen, accessibility, and input access on macOS | Permission changes may require **Restart now** || **Wake Word** | Activation, phrase, spoken language, and detection engine | Usually live when desktop voice is ready; otherwise on the next voice start |-| **Thinking pause**, **Volume**, and **Audio devices** | End-of-speech timing (Pipeline mode only — in Realtime mode the voice model detects the end of your turn itself), spoken volume, microphone, and speaker | Live with the Pipeline running; otherwise on the next start |+| **Thinking pause**, **Volume**, and **Audio devices** | End-of-speech timing, spoken volume, microphone, and speaker | Live with the Pipeline running; otherwise on the next start || **Voice Keybinds** | Call and Hangup shortcuts | Live with the voice Pipeline running; otherwise after a restart || **System Prompt** | The assistant's general style and behavior | On the next message; no restart || **Bar & Overlay** | Display style, idle visibility, music muting, and short sound effects | A mix of live changes and restart-required display swaps |diff --git a/jarvis/plugins/realtime/gemini_live.py b/jarvis/plugins/realtime/gemini_live.pyindex 4e95f3f7a4..6d2154d7c1 100644--- a/jarvis/plugins/realtime/gemini_live.py+++ b/jarvis/plugins/realtime/gemini_live.py@@ -421,26 +421,18 @@ class GeminiLiveProvider:voice_name=voice))- # An unset window (None/0) omits realtime_input_config entirely so- # Gemini's native automatic activity detection decides the turn end;- # only an explicit override forces a fixed silence window.- silence_ms = getattr(cfg, "silence_duration_ms", None)live_config = types.LiveConnectConfig(response_modalities=[types.Modality.AUDIO],system_instruction=str(getattr(cfg, "instructions", "") or "") or None,input_audio_transcription=types.AudioTranscriptionConfig(),output_audio_transcription=types.AudioTranscriptionConfig(),- **(- {- "realtime_input_config": types.RealtimeInputConfig(- automatic_activity_detection=types.AutomaticActivityDetection(- disabled=False,- silence_duration_ms=int(silence_ms),- )- )- }- if silence_ms- else {}+ realtime_input_config=types.RealtimeInputConfig(+ automatic_activity_detection=types.AutomaticActivityDetection(+ disabled=False,+ silence_duration_ms=int(+ getattr(cfg, "silence_duration_ms", 1_500) or 1_500+ ),+ )),**({diff --git a/jarvis/plugins/realtime/openai_realtime.py b/jarvis/plugins/realtime/openai_realtime.pyindex b9740f4afb..a1ae421289 100644--- a/jarvis/plugins/realtime/openai_realtime.py+++ b/jarvis/plugins/realtime/openai_realtime.py@@ -197,12 +197,10 @@ def _session_payload(cfg: Any) -> dict[str, Any]:# OpenAI's documented manual-response VAD mode."interrupt_response": False,}- # An unset window (None/0) keeps OpenAI's native server-VAD default so the- # realtime model decides the turn end itself; only an explicit override is- # forwarded.- silence_ms = getattr(cfg, "silence_duration_ms", None)- if turn_detection == "server_vad" and silence_ms:- turn_detection_config["silence_duration_ms"] = int(silence_ms)+ if turn_detection == "server_vad":+ turn_detection_config["silence_duration_ms"] = int(+ getattr(cfg, "silence_duration_ms", 1_500) or 1_500+ )payload: dict[str, Any] = {"type": "realtime",diff --git a/jarvis/realtime/protocol.py b/jarvis/realtime/protocol.pyindex 2d7c5c7290..53b82fbfdb 100644--- a/jarvis/realtime/protocol.py+++ b/jarvis/realtime/protocol.py@@ -63,14 +63,10 @@ class RealtimeSessionConfig:# GA Realtime schema rejects requesting text and audio simultaneously.modalities: tuple[str, ...] = ("audio",)turn_detection: str = "server_vad" # "server_vad" | "semantic_vad"- # None (the default) = the provider's NATIVE turn detection decides when- # the user's turn ends. The Settings "Thinking pause"- # (SpeechConfig.vad_silence_ms) endpoints the classic pipeline only —- # forcing it into realtime sessions made the realtime model wait the full- # window after every utterance, which reads as "done speaking but still- # listening" (maintainer directive 2026-07-21). An explicit int still- # overrides the provider default for callers that need a fixed window.- silence_duration_ms: int | None = None+ # Shared with SpeechConfig.vad_silence_ms (the Settings "Thinking pause").+ # Providers must wait for this much detected silence before committing the+ # user's turn, so a natural pause cannot start model reasoning early.+ silence_duration_ms: int = 1500tools: tuple[dict[str, Any], ...] = ()# Bounded transcript of the call so far, oldest first, as# ``{"role": "user" | "assistant", "text": ...}`` mappings. A freshdiff --git a/jarvis/ui/web/frontend/src/views/settings/SilenceWindowGroup.tsx b/jarvis/ui/web/frontend/src/views/settings/SilenceWindowGroup.tsxindex 8388d10f03..62e098aa49 100644--- a/jarvis/ui/web/frontend/src/views/settings/SilenceWindowGroup.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/SilenceWindowGroup.tsx@@ -9,10 +9,9 @@ import { useT } from "@/i18n";* silence window (how long Jarvis waits in silence before submitting). Range* 0.5–5.0 s, step 0.1 s, default 1.5 s. The label tracks the slider live; the* PUT fires on release (pointer/key up) so a 0.1 s-step drag does not storm the- * backend. The change persists to jarvis.toml and applies live to the classic- * pipeline ONLY (a headless host falls back to "applies on next start").- * Realtime sessions deliberately ignore it — the realtime model's native turn- * detection decides the turn end (maintainer directive 2026-07-21).+ * backend. The change persists to jarvis.toml, applies live to the classic+ * pipeline, and configures every newly opened Realtime provider session (a+ * headless host falls back to "applies on next start").*/export function SilenceWindowGroup() {const t = useT();diff --git a/tests/unit/realtime/test_gemini_live.py b/tests/unit/realtime/test_gemini_live.pyindex d2ce3cdd9b..692ed333ad 100644--- a/tests/unit/realtime/test_gemini_live.py+++ b/tests/unit/realtime/test_gemini_live.py@@ -325,21 +325,6 @@ async def test_every_selectable_model_uses_live_audio_and_transcriptions(assert holder["client"].closed is True-async def test_default_config_keeps_native_activity_detection(- monkeypatch: pytest.MonkeyPatch,-) -> None:- holder = _patch_genai_client(monkeypatch)- provider = GeminiLiveProvider(api_key="test-key")-- session = await provider.open_session(RealtimeSessionConfig(voice="Puck"))- _selected, config = holder["client"].aio.live.connect_calls[0]- # No forced silence window: Gemini's native automatic activity detection- # decides the turn end (the Settings "Thinking pause" is pipeline-only).- assert config.realtime_input_config is None- await session.close()--@pytest.mark.asyncioasync def test_open_session_uses_current_default_model(monkeypatch: pytest.MonkeyPatch,diff --git a/tests/unit/realtime/test_openai_realtime.py b/tests/unit/realtime/test_openai_realtime.pyindex 872a4b0322..cc4b7f1e90 100644--- a/tests/unit/realtime/test_openai_realtime.py+++ b/tests/unit/realtime/test_openai_realtime.py@@ -158,24 +158,6 @@ async def test_every_selectable_model_uses_the_valid_ga_session_schema(await session.close()-async def test_default_config_keeps_native_server_vad_window(- monkeypatch: pytest.MonkeyPatch,-) -> None:- holder = _patch_openai_client(monkeypatch)- provider = OpenAIRealtimeProvider(api_key="test-key")-- session = await provider.open_session(- RealtimeSessionConfig(voice="echo", language="en")- )- payload = holder["client"].realtime.last_conn.session_updates[0]- turn_detection = payload["audio"]["input"]["turn_detection"]- # No forced window: OpenAI's native server-VAD default decides the turn- # end (the Settings "Thinking pause" endpoints the pipeline only).- assert "silence_duration_ms" not in turn_detection- await session.close()--@pytest.mark.asyncioasync def test_text_update_creates_tool_free_audio_response(monkeypatch: pytest.MonkeyPatch,diff --git a/tests/unit/realtime/test_protocol.py b/tests/unit/realtime/test_protocol.pyindex 8c8e3e3b6a..3676593ee9 100644--- a/tests/unit/realtime/test_protocol.py+++ b/tests/unit/realtime/test_protocol.py@@ -32,13 +32,13 @@ def test_session_config_has_selectable_model():assert cfg.voice == "echo"-def test_session_config_defaults_to_provider_native_turn_detection():+def test_session_config_defaults_to_shared_thinking_pause():+ from jarvis.core.config import SpeechConfigfrom jarvis.realtime.protocol import RealtimeSessionConfig- # None = the provider's native turn detection decides the turn end; the- # Settings "Thinking pause" endpoints the classic pipeline only- # (maintainer directive 2026-07-21).- assert RealtimeSessionConfig().silence_duration_ms is None+ assert RealtimeSessionConfig().silence_duration_ms == (+ SpeechConfig().vad_silence_ms+ ) == 1_500def test_session_config_history_defaults_empty():diff --git a/tests/unit/realtime/test_thinking_pause.py b/tests/unit/realtime/test_thinking_pause.pyindex e4544ba454..0553f2a208 100644--- a/tests/unit/realtime/test_thinking_pause.py+++ b/tests/unit/realtime/test_thinking_pause.py@@ -1,11 +1,4 @@-"""The Settings thinking pause must NOT leak into realtime sessions.--The "Thinking pause" (SpeechConfig.vad_silence_ms) endpoints the classic-pipeline only. Realtime providers own their native turn detection — forcing-the pipeline window into a realtime session made the model wait the full-window after every utterance ("done speaking but still listening",-maintainer directive 2026-07-21).-"""+"""The Settings thinking pause must reach every realtime provider family."""from __future__ import annotations@@ -82,7 +75,7 @@ def _config(silence_ms: int):@pytest.mark.asyncio-async def test_pipeline_pause_never_reaches_primary_or_fallback():+async def test_configured_pause_reaches_primary_and_cross_family_fallback():primary = _Provider("first-family", fail=True)fallback = _Provider("second-family")session = RealtimeVoiceSession(@@ -95,8 +88,6 @@ async def test_pipeline_pause_never_reaches_primary_or_fallback():await session.handle_control({"type": "audio_start", "sample_rate": 16_000})- # Even with a long pipeline Thinking pause configured, every realtime- # provider family opens with the provider-native default (None).- assert primary.opened_with.silence_duration_ms is None- assert fallback.opened_with.silence_duration_ms is None+ assert primary.opened_with.silence_duration_ms == 2_700+ assert fallback.opened_with.silence_duration_ms == 2_700await session.end(reason="test")