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.

chore: auto-save WIP via Claude stop-hook safety net (2026-07-03 08:51)

Ruben Lütkea9c7256ed988
diff --git a/jarvis/ui/web/frontend/src/components/OpenRouterTtsVoicePicker.tsx b/jarvis/ui/web/frontend/src/components/OpenRouterTtsVoicePicker.tsx
index d33904efd4..1592fd02dd 100644
--- a/jarvis/ui/web/frontend/src/components/OpenRouterTtsVoicePicker.tsx
+++ b/jarvis/ui/web/frontend/src/components/OpenRouterTtsVoicePicker.tsx
@@ -115,10 +115,10 @@ function VoicePicker({ model }: { model: string }) {
const [loading, setLoading] = useState(false);
const [saving, setSaving] = useState(false);
const [open, setOpen] = useState(false);
- // The sample language — defaults to the app's UI language (falls back to EN
- // for any non-DE locale, since the sample sentences are DE/EN).
- const [previewLang, setPreviewLang] = useState<"de" | "en">(
- uiLang === "de" ? "de" : "en",
+ // The sample language — defaults to the app's UI language (DE/EN/ES are the
+ // supported sample languages; any other locale falls back to EN).
+ const [previewLang, setPreviewLang] = useState<"de" | "en" | "es">(
+ uiLang === "de" ? "de" : uiLang === "es" ? "es" : "en",
);
// The voice currently PLAYING vs. the voice whose audio is being FETCHED — the
// preview button shows a spinner while loading, a stop icon while playing.
@@ -254,7 +254,7 @@ function VoicePicker({ model }: { model: string }) {
<span className="text-[10px] text-muted-foreground">
{t("apikeys_voice.preview_in")}
</span>
- {(["de", "en"] as const).map((lng) => (
+ {(["de", "en", "es"] as const).map((lng) => (
<button
key={lng}
type="button"
diff --git a/jarvis/ui/web/provider_routes.py b/jarvis/ui/web/provider_routes.py
index 521bbd4126..d9d0324ad3 100644
--- a/jarvis/ui/web/provider_routes.py
+++ b/jarvis/ui/web/provider_routes.py
@@ -1523,13 +1523,24 @@ async def tts_switch(body: SwitchBody, request: Request) -> dict[str, Any]:
# The only TTS provider that exposes a per-model voice list + preview so far.
_VOICE_PICKER_PROVIDER = "openrouter-tts"
-# The short fixed sentence spoken by the preview, per language. Deliberately
-# tiny so a preview is cheap and quick. Every supported runtime-output language
-# has an entry (never a de/en-only table — AP-21 / runtime-language doctrine).
+# The fixed sentence spoken by the preview, per language. Long enough that a
+# voice's timbre and character are actually audible (a one-liner made every
+# voice sound alike), but still short enough to stay a cheap, quick preview.
+# Every supported runtime-output language has an entry (never a de/en-only
+# table — AP-21 / runtime-language doctrine).
_TTS_PREVIEW_SAMPLES: dict[str, str] = {
- "de": "Hallo, ich bin dein Assistent.",
- "en": "Hi, I am your assistant.",
- "es": "Hola, soy tu asistente.",
+ "de": (
+ "Hallo! Ich bin dein persönlicher Assistent. "
+ "So klingt meine Stimme, wenn ich für dich spreche und dir zuhöre."
+ ),
+ "en": (
+ "Hi there! I am your personal assistant. "
+ "This is how my voice sounds when I speak with you and help you out."
+ ),
+ "es": (
+ "¡Hola! Soy tu asistente personal. "
+ "Así suena mi voz cuando hablo contigo y te ayudo con tus tareas."
+ ),
}
_TTS_PREVIEW_DEFAULT_LANG = "en"