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(ui): make Pipeline the recommended voice engine, add Realtime preview note

Ruben Lütked105ac868ac9
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.json
index 81c8afb0a8..bfc50cf7ca 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json
@@ -894,6 +894,7 @@
"mode_needs_key": "Realtime braucht einen API-Key — unten einen hinzufügen, dann umschalten.",
"mode_desc_pipeline": "Drei Schritte: Sprache zu Text, das Brain denkt, Text zu Sprache.",
"mode_desc_realtime": "Ein Modell hört zu und antwortet im selben Live-Audiostrom.",
+ "mode_realtime_preview": "Research-Preview – noch nicht fertig. Viele Tools und Funktionen laufen im Realtime-Modus noch nicht.",
"runtime_switching": "Die aktuelle Sprach-Session wird mit der ausgewählten Engine neu gestartet…",
"runtime_idle": "Keine Sprach-Session ist aktiv. Die Auswahl gilt für die nächste Session.",
"runtime_realtime": "Aktuelle Session: Realtime",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.json
index 8ab23ef4c8..29750fe41d 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json
@@ -894,6 +894,7 @@
"mode_needs_key": "Realtime needs an API key — add one below to switch.",
"mode_desc_pipeline": "Three steps: speech-to-text, the Brain thinks, text-to-speech.",
"mode_desc_realtime": "One model listens and answers in the same live audio stream.",
+ "mode_realtime_preview": "Research preview — not finished yet. Many tools and features don't work in realtime mode.",
"runtime_switching": "Restarting the current voice session with the selected engine…",
"runtime_idle": "No voice session is active. This selection applies to the next one.",
"runtime_realtime": "Current session: Realtime",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.json
index 230b2fe35f..25b990909a 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json
@@ -894,6 +894,7 @@
"mode_needs_key": "Tiempo real necesita una clave API — añade una abajo para cambiar.",
"mode_desc_pipeline": "Tres pasos: voz a texto, el Brain piensa, texto a voz.",
"mode_desc_realtime": "Un solo modelo escucha y responde en el mismo flujo de audio en vivo.",
+ "mode_realtime_preview": "Research preview: aún sin terminar. Muchas herramientas y funciones todavía no funcionan en modo realtime.",
"runtime_switching": "Reiniciando la sesión de voz actual con el motor seleccionado…",
"runtime_idle": "No hay ninguna sesión de voz activa. Esta selección se aplicará a la siguiente.",
"runtime_realtime": "Sesión actual: Tiempo real",
diff --git a/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx b/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx
index bd9134345b..32e7d0ff76 100644
--- a/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx
+++ b/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx
@@ -305,13 +305,14 @@ function EngineModeSwitch({
onSetVoiceMode: (mode: string) => void;
}) {
const t = useT();
- // Realtime leads: it is the recommended default, so it takes the first
- // (left) segment with the Recommended badge fully visible.
+ // Pipeline leads: it is the recommended default (Realtime is still a
+ // research preview), so it takes the first (left) segment with the
+ // Recommended badge fully visible.
const segments: { key: VoiceEngineMode; label: string; icon: LucideIcon }[] = [
- { key: "realtime", label: t("apikeys_view.mode_realtime"), icon: Radio },
{ key: "pipeline", label: t("apikeys_view.mode_pipeline"), icon: Waypoints },
+ { key: "realtime", label: t("apikeys_view.mode_realtime"), icon: Radio },
];
- const liveIndex = liveMode === "realtime" ? 0 : 1;
+ const liveIndex = liveMode === "pipeline" ? 0 : 1;
const runtimeDetail = [activeSessionProvider, activeSessionModel]
.filter(Boolean)
.join(" · ");
@@ -350,7 +351,7 @@ function EngineModeSwitch({
{/* Two equal segments over one sliding thumb: the thumb tracks the
LIVE engine, so its glide IS the switch feedback. */}
{/* w-auto + equal columns: the container grows with the widest
- segment (Realtime + Recommended badge) instead of clipping it;
+ segment (Pipeline + Recommended badge) instead of clipping it;
the sliding thumb stays correct at any width. */}
<div className="relative grid w-auto min-w-64 grid-cols-2 rounded-xl border border-border bg-card/40 p-1">
<span
@@ -383,7 +384,7 @@ function EngineModeSwitch({
>
<Icon aria-hidden="true" className="h-3.5 w-3.5" />
{seg.label}
- {seg.key === "realtime" && (
+ {seg.key === "pipeline" && (
<span
className={cn(
"whitespace-nowrap rounded-full px-1.5 py-px text-[9px] font-semibold uppercase tracking-wide",
@@ -409,6 +410,11 @@ function EngineModeSwitch({
? t("apikeys_view.mode_desc_realtime")
: t("apikeys_view.mode_desc_pipeline")}
</p>
+ {mode === "realtime" && (
+ <p className="mt-1 max-w-64 text-right text-[11px] leading-snug text-amber-500/90">
+ {t("apikeys_view.mode_realtime_preview")}
+ </p>
+ )}
<div
className="mt-2 flex max-w-64 items-start justify-end gap-1.5 text-right text-[11px] leading-snug"
aria-live="polite"
diff --git a/jarvis/ui/web/frontend/src/views/ApiKeysView.two-mode.test.tsx b/jarvis/ui/web/frontend/src/views/ApiKeysView.two-mode.test.tsx
index 945d5a942e..f33f0eb536 100644
--- a/jarvis/ui/web/frontend/src/views/ApiKeysView.two-mode.test.tsx
+++ b/jarvis/ui/web/frontend/src/views/ApiKeysView.two-mode.test.tsx
@@ -91,6 +91,22 @@ describe("ApiKeysView two-mode", () => {
expect(realtimeSegment.textContent).not.toMatch(/active/i);
});
+ it("marks Pipeline as the recommended engine, not Realtime", () => {
+ // Pipeline is the recommended default; Realtime is a research preview.
+ // The Recommended badge therefore rides the Pipeline segment only.
+ render(<ApiKeysView />);
+ const pipelineSegment = screen.getByRole("button", { name: /pipeline/i });
+ const realtimeSegment = screen.getByRole("button", { name: /^realtime/i });
+ expect(pipelineSegment.textContent).toMatch(/recommended/i);
+ expect(realtimeSegment.textContent).not.toMatch(/recommended/i);
+ });
+
+ it("shows a research-preview disclaimer when Realtime is selected", () => {
+ render(<ApiKeysView />);
+ fireEvent.click(screen.getByRole("button", { name: /^realtime/i }));
+ expect(screen.getByText(/research preview/i)).toBeTruthy();
+ });
+
it("shows when the selected Realtime mode is still served by Pipeline", () => {
mockVoiceMode = "realtime";
mockSessionActive = true;