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: clear the gates the newest local voice commits left red

rubenluetke10-beepe299fd71aeef
diff --git a/docs/commands-reference.md b/docs/commands-reference.md
index 8380c11dcd..115e49630a 100644
--- a/docs/commands-reference.md
+++ b/docs/commands-reference.md
@@ -146,7 +146,7 @@ Switch the speech-to-text provider. Takes effect on the next voice-pipeline star
Switch which realtime voice engine (speech-to-speech) is active, including subscription- and API-backed providers. Experimental transports require explicit acknowledgement.
- **Endpoint:** `POST /api/realtime/switch`
-- **Arguments:** `provider` (one of: gemini-live, local-realtime, openai-live, vertex-live; required); `persist` (boolean; optional); `accept_experimental` (boolean; optional)
+- **Arguments:** `provider` (one of: gemini-live, local-realtime, local-voice, openai-live, vertex-live; required); `persist` (boolean; optional); `accept_experimental` (boolean; optional)
- **Requires confirmation:** no
- **Desktop UI section:** `apikeys`
- **Voice example (EN):** "switch the realtime model to gemini"
@@ -196,7 +196,7 @@ List all configured providers and which ones are active.
Test connectivity and authentication for one provider.
- **Endpoint:** `POST /api/providers/{provider_id}/test`
-- **Arguments:** `provider_id` (one of: antigravity, cartesia, claude-api, claude-cli, codex, elevenlabs, faster-whisper, gemini, gemini-api, gemini-flash-tts, gemini-live, gemini-polish, grok, grok-build, grok-voice, groq-api, groq-polish, inworld, local-openai, local-realtime, nemotron-local, nvidia, ollama, ollama-polish, openai, openai-api, openai-live, openai-polish, openrouter, openrouter-polish, openrouter-stt, openrouter-tts, piper-local, vertex, vertex-live, vertex-stt, vertex-tts; required)
+- **Arguments:** `provider_id` (one of: antigravity, cartesia, claude-api, claude-cli, codex, elevenlabs, faster-whisper, gemini, gemini-api, gemini-flash-tts, gemini-live, gemini-polish, grok, grok-build, grok-voice, groq-api, groq-polish, inworld, local-openai, local-realtime, local-voice, nemotron-local, nvidia, ollama, ollama-polish, openai, openai-api, openai-live, openai-polish, openrouter, openrouter-polish, openrouter-stt, openrouter-tts, piper-local, vertex, vertex-live, vertex-stt, vertex-tts; required)
- **Requires confirmation:** no
- **Desktop UI section:** `apikeys`
- **Voice example (EN):** "test the openai provider"
diff --git a/jarvis/realtime/local_voice_setup.py b/jarvis/realtime/local_voice_setup.py
index 643c697576..4f972a293a 100644
--- a/jarvis/realtime/local_voice_setup.py
+++ b/jarvis/realtime/local_voice_setup.py
@@ -97,7 +97,7 @@ def requirements_file() -> Path:
def requirements_sha256() -> str:
try:
return hashlib.sha256(requirements_file().read_bytes()).hexdigest()
- except OSError:
+ except OSError: # no file means no fingerprint yet
return ""
@@ -110,7 +110,7 @@ def engine_version() -> str:
def _read_json(path: Path) -> dict[str, Any]:
try:
data = json.loads(path.read_text(encoding="utf-8"))
- except (OSError, ValueError):
+ except (OSError, ValueError): # a missing or broken record reads as empty
return {}
return data if isinstance(data, dict) else {}
@@ -525,7 +525,7 @@ async def run_engine_selftest(engine: Any, *, home: Path, settings: Any) -> dict
"reason": engine.reason or "The local voice did not finish loading."}
else:
report = await engine.selftest()
- except (OSError, RuntimeError, TimeoutError) as exc:
+ except (OSError, RuntimeError, TimeoutError) as exc: # the failure is saved as the report
report = {"ok": False, "reason": f"The self-test could not run: {exc}"}
save_selftest(home, report, settings)
return report
@@ -581,7 +581,7 @@ def _visible_models(names: Iterable[str]) -> list[str]:
"""Installed tags a user picks from, without Jarvis's own derived aliases."""
try:
from jarvis.brain.ollama_inventory import is_hidden_alias # noqa: PLC0415
- except ImportError:
+ except ImportError: # without the inventory, list every name
return sorted(names)
return sorted(n for n in names if not is_hidden_alias(n))
diff --git a/jarvis/ui/web/agent_chat_routes.py b/jarvis/ui/web/agent_chat_routes.py
index d88a9e1067..3585b28226 100644
--- a/jarvis/ui/web/agent_chat_routes.py
+++ b/jarvis/ui/web/agent_chat_routes.py
@@ -137,12 +137,12 @@ def _voice_chat_answer(svc: AgentChatService) -> VoiceChatResponse:
@router.get("/voice-chat", summary="The Jarvis chat voice calls continue")
-async def get_voice_chat(request: Request) -> VoiceChatResponse:
+def get_voice_chat(request: Request) -> VoiceChatResponse:
return _voice_chat_answer(_service(request))
@router.put("/voice-chat", summary="Continue voice calls in this Jarvis chat")
-async def put_voice_chat(body: VoiceChatBody, request: Request) -> VoiceChatResponse:
+def put_voice_chat(body: VoiceChatBody, request: Request) -> VoiceChatResponse:
"""Bind the chat the front page shows: calls file into it and start with its history."""
svc = _service(request)
try:
diff --git a/jarvis/voice_engine/paths.py b/jarvis/voice_engine/paths.py
index cdc930f26d..20ab8782b5 100644
--- a/jarvis/voice_engine/paths.py
+++ b/jarvis/voice_engine/paths.py
@@ -56,6 +56,6 @@ def read_setup_state(home: Path | None = None) -> dict[str, Any]:
path = (home or engine_home()) / SETUP_STATE_FILE
try:
data = json.loads(path.read_text(encoding="utf-8"))
- except (OSError, ValueError):
+ except (OSError, ValueError): # a missing or broken record reads as empty
return {}
return data if isinstance(data, dict) else {}