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(voice): drop the Realtime|Pipeline switch from the voice section

Ruben Lütke88699bc6042c
diff --git a/jarvis/ui/web/frontend/src/views/voice/VoiceApiKeysTab.test.tsx b/jarvis/ui/web/frontend/src/views/voice/VoiceApiKeysTab.test.tsx
index 4047c89501..cbbf038c85 100644
--- a/jarvis/ui/web/frontend/src/views/voice/VoiceApiKeysTab.test.tsx
+++ b/jarvis/ui/web/frontend/src/views/voice/VoiceApiKeysTab.test.tsx
@@ -73,22 +73,6 @@ vi.mock("@/hooks/useProviders", () => ({
useSectionHealth: () => ({ health: {} }),
}));
-vi.mock("@/hooks/useVoiceMode", () => ({
- useVoiceMode: () => ({
- mode: "pipeline",
- realtimeAvailable: false,
- statusKnown: true,
- sessionActive: false,
- activeSessionMode: null,
- activeSessionProvider: "",
- activeSessionModel: "",
- transitioning: false,
- setMode: vi.fn(),
- isLoading: false,
- isSaving: false,
- }),
-}));
-
import { VoiceApiKeysTab } from "@/views/voice/VoiceApiKeysTab";
afterEach(() => {
@@ -133,10 +117,14 @@ describe("VoiceApiKeysTab", () => {
expect(screen.queryAllByRole("tab")).toHaveLength(0);
});
- it("keeps the engine switch, so the tier's relevance stays visible", () => {
+ // The Realtime|Pipeline switch belongs to the API-Keys view, where the copy
+ // that explains it lives too. Repeating it here put an engine-wide decision
+ // in a section that only asks about speech-to-text providers.
+ it("leaves the voice-engine switch to the API-Keys view", () => {
render(<VoiceApiKeysTab />);
- expect(screen.getByTestId("voice-engine-header-control")).toBeTruthy();
+ expect(screen.queryByTestId("voice-engine-header-control")).toBeNull();
+ expect(screen.queryByTestId("voice-engine-pick-one-hint")).toBeNull();
});
it("stands its own header down when the merged section owns it", () => {
diff --git a/jarvis/ui/web/frontend/src/views/voice/VoiceApiKeysTab.tsx b/jarvis/ui/web/frontend/src/views/voice/VoiceApiKeysTab.tsx
index ffff85f814..1673b8c7d8 100644
--- a/jarvis/ui/web/frontend/src/views/voice/VoiceApiKeysTab.tsx
+++ b/jarvis/ui/web/frontend/src/views/voice/VoiceApiKeysTab.tsx
@@ -1,16 +1,12 @@
-import { useEffect, useRef, useState } from "react";
import { KeyRound } from "lucide-react";
import { ViewHeader } from "@/views/ChatsView";
import {
- EngineModeSwitch,
makeProviderCategories,
ProviderCategory,
useTierHealth,
- type VoiceEngineMode,
} from "@/components/providers/ProviderTierSection";
import { useProviders } from "@/hooks/useProviders";
-import { useVoiceMode } from "@/hooks/useVoiceMode";
import { useT } from "@/i18n";
export interface VoiceApiKeysTabProps {
@@ -37,32 +33,18 @@ export interface VoiceApiKeysTabProps {
* `useProviders` / `useSectionHealth` already listen to, so whichever screen is
* opened next reads the current truth.
*
- * The engine switch rides along because it decides whether this tier is used at
- * all: speech-to-text is a Pipeline-mode stage, and a realtime model replaces
- * it entirely. Hiding that would let someone add a key here that their voice
- * never touches.
+ * The Realtime|Pipeline engine switch deliberately does NOT ride along
+ * (maintainer feedback 2026-07-29). This section is about turning speech into
+ * text; picking the voice ENGINE is a different decision, and it already has
+ * one home with the full explanatory context next to it — the API-Keys view's
+ * `EngineModeSwitch` + `VoiceEngineContext`. A second switch here read as a
+ * stray control in a section that never asked the question. Do not add it back.
*/
export function VoiceApiKeysTab({ hideHeader = false }: VoiceApiKeysTabProps = {}) {
const t = useT();
const { providers, loading, error, refetch, setActiveOptimistic } = useProviders();
const health = useTierHealth(providers);
const categories = makeProviderCategories(t);
- const {
- mode: liveMode,
- realtimeAvailable,
- setMode: setVoiceMode,
- isLoading: liveModeLoading,
- } = useVoiceMode();
-
- // Mirror the API-Keys view: open on the engine that is actually LIVE, once,
- // when the mode query resolves. Later live-mode changes never yank the view.
- const [engineMode, setEngineMode] = useState<VoiceEngineMode>("pipeline");
- const viewSyncedToLive = useRef(false);
- useEffect(() => {
- if (viewSyncedToLive.current || liveModeLoading) return;
- viewSyncedToLive.current = true;
- setEngineMode(liveMode === "realtime" ? "realtime" : "pipeline");
- }, [liveMode, liveModeLoading]);
return (
<div className="flex h-full min-h-0 flex-col">
@@ -78,19 +60,6 @@ export function VoiceApiKeysTab({ hideHeader = false }: VoiceApiKeysTabProps = {
data-testid="voice-api-keys-tab"
>
<div className="mx-auto flex w-full max-w-4xl flex-col gap-4">
- <div className="flex flex-wrap items-start justify-between gap-3 rounded-xl border border-border bg-card/25 px-3 py-2">
- <p className="min-w-64 flex-1 text-[11px] leading-snug text-muted-foreground/80">
- {t("apikeys_view.mode_keys_hint")}
- </p>
- <EngineModeSwitch
- mode={engineMode}
- liveMode={liveMode}
- realtimeAvailable={realtimeAvailable}
- onSelect={setEngineMode}
- onSetVoiceMode={setVoiceMode}
- />
- </div>
-
<ProviderCategory
meta={categories.stt}
tier="stt"