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.

feat(apikeys): say that API keys are only needed for the selected voice mode

Ruben Lütkee4f056751272
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.json
index b131217ec2..154ddf7bd0 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json
@@ -937,6 +937,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_keys_hint": "API-Keys brauchst du nur für den Modus, den du nutzt: Realtime läuft mit einem einzigen realtime-fähigen Key, die Pipeline nutzt ihre eigenen Sprach- und Brain-Keys.",
"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.",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.json
index 1031418f09..be9f2090c8 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json
@@ -937,6 +937,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_keys_hint": "You only need API keys for the mode you use: Realtime runs on a single realtime-capable key, Pipeline uses its own speech and Brain keys.",
"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.",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.json
index 4010683621..bf59ff9b44 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json
@@ -937,6 +937,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_keys_hint": "Solo necesitas claves API para el modo que uses: Tiempo real funciona con una única clave compatible, la pipeline usa sus propias claves de voz y Brain.",
"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.",
diff --git a/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx b/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx
index c481c31bb5..6e0692d022 100644
--- a/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx
+++ b/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx
@@ -527,6 +527,13 @@ function VoiceEngineContext({
</div>
</div>
+ <p
+ data-testid="voice-engine-keys-hint"
+ className="mt-1 text-[11px] leading-snug text-muted-foreground/80"
+ >
+ {t("apikeys_view.mode_keys_hint")}
+ </p>
+
{mode === "realtime" && (
<RecommendedSetupPanel onOpenTab={onOpenRecommendedTab} />
)}
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 051530e195..8969ce2513 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
@@ -86,6 +86,14 @@ describe("ApiKeysView two-mode", () => {
expect(screen.getAllByTestId("voice-engine-runtime-status")).toHaveLength(1);
});
+ it("always shows the one-mode-only API-keys hint in the engine context", () => {
+ render(<ApiKeysView />);
+ const hint = screen.getByTestId("voice-engine-keys-hint");
+ expect(screen.getByTestId("voice-engine-context").contains(hint)).toBe(true);
+ // The load-bearing message: keys are only needed for the SELECTED mode.
+ expect(hint.textContent).toMatch(/only need api keys for the mode you use/i);
+ });
+
it("defaults to Pipeline mode showing Brain/Voice/Subagents tabs, no Realtime tab", () => {
render(<ApiKeysView />);
expect(screen.getByRole("tab", { name: /brain/i })).toBeTruthy();