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
chore: auto-save WIP via Claude stop-hook safety net (2026-07-02 12:42)
Ruben Lütke4692db9d2508
diff --git a/jarvis/plugins/stt/fwhisper.py b/jarvis/plugins/stt/fwhisper.pyindex 50396a7a01..fff24b438b 100644--- a/jarvis/plugins/stt/fwhisper.py+++ b/jarvis/plugins/stt/fwhisper.py@@ -213,13 +213,31 @@ def prefetch_model(return False_PREFETCH_EVENTS[key] = threading.Event()model: Any = None+ primed = Falsetry:model = _new_whisper_model(key[0], device, compute_type, int(cpu_threads))except Exception as exc: # noqa: BLE001 — a prefetch must never break bootlog.debug("Wake-model prefetch failed (lazy load will cover it): %s", exc)+ if model is not None:+ # Prime in the prefetch thread too (TTU iteration 11): the FIRST real+ # transcribe pays kernel/algo warm-up costs, and paying them here —+ # still overlapped with the import mountain — lets ``warm_up`` adopt a+ # READY engine and skip its own priming inference on the critical+ # path. Best-effort: a priming failure still hands the loaded model+ # over (``warm_up`` will prime it itself). Nothing else can touch the+ # engine yet (it is published only after this), so this never races+ # the provider's inference lock (AP-24).+ try:+ rng = np.random.default_rng(0)+ warm_audio = rng.standard_normal(16_000).astype(np.float32) * 0.001+ segments_iter, _info = model.transcribe(warm_audio, beam_size=1)+ list(segments_iter) # materialise = run the actual decode+ primed = True+ except Exception as exc: # noqa: BLE001 — priming is best-effort+ log.debug("Wake-model prefetch priming skipped: %s", exc)with _PREFETCH_LOCK:if model is not None:- _PREFETCHED_MODELS[key] = model+ _PREFETCHED_MODELS[key] = (model, primed)_PREFETCH_EVENTS[key].set()return model is not Nonediff --git a/tests/integration/test_provider_routes.py b/tests/integration/test_provider_routes.pyindex 561ef9280c..c674317156 100644--- a/tests/integration/test_provider_routes.py+++ b/tests/integration/test_provider_routes.py@@ -118,8 +118,8 @@ def test_list_providers_returns_full_catalog(server_with_brain: WebServer, secreassert "codex" in idsassert "openclaw" not in idsassert "gemini-flash-tts" in ids, "Gemini Flash TTS must be in the catalog"- assert "faster-whisper" in ids, "Lokales STT als 'none'-Auth-Provider"- assert "elevenlabs" not in ids, "ElevenLabs ist Dead-Code"+ assert "faster-whisper" in ids, "local STT as a 'none'-auth provider"+ assert "elevenlabs" in ids, "ElevenLabs is a selectable premium TTS provider"assert "ollama-local" not in ids, "Ollama was removed on 2026-04-21"diff --git a/tests/unit/test_provider_spec.py b/tests/unit/test_provider_spec.pyindex 1147ae9290..2182c248f6 100644--- a/tests/unit/test_provider_spec.py+++ b/tests/unit/test_provider_spec.py@@ -83,7 +83,14 @@ def test_all_secret_keys_collects_unique_set() -> None:assert "anthropic_api_key" in keysassert "gemini_api_key" in keysassert "openai_api_key" in keys- assert "elevenlabs_api_key" not in keys, "ElevenLabs is dead code and must not be referenced"+ # ElevenLabs is a first-class, selectable TTS provider (see the elevenlabs+ # ProviderSpec with tier="tts"). It has a mature plugin+ # (jarvis/plugins/tts/elevenlabs_tts.py), a factory branch, cross-family+ # fallback wiring, TOML defaults, and is named as a cloud-TTS default in+ # docs/PHILOSOPHY.md — so its credential slot MUST be surfaced. (This+ # reverses an earlier "dead code" snapshot from before it was wired into+ # the API-Keys section.)+ assert "elevenlabs_api_key" in keysdef test_no_hardcoded_model_names_in_specs() -> None: