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
fix(providers): API-keys UI tells the truth about shared keys — fallback-aware forms, delete warning, alias + fingerprint fixes
Personal Jarvis Maintainerdde61c8786b6
diff --git a/docs/product/personalize-and-connect/settings-and-appearance.md b/docs/product/personalize-and-connect/settings-and-appearance.mdindex 6c69c5211c..addef17ced 100644--- a/docs/product/personalize-and-connect/settings-and-appearance.md+++ b/docs/product/personalize-and-connect/settings-and-appearance.md@@ -46,7 +46,7 @@ that have their own guides.| **App settings** | Launch the app when you sign in | The operating-system startup entry is added or removed immediately || **Privacy permissions** | Microphone, screen, accessibility, and input access on macOS | Permission changes may require **Restart now** || **Wake Word** | Activation, phrase, spoken language, and detection engine | Usually live when desktop voice is ready; otherwise on the next voice start |-| **Thinking pause**, **Volume**, and **Audio devices** | End-of-speech timing (Pipeline mode only — in Realtime mode the voice model detects the end of your turn itself), spoken volume, microphone, and speaker | Live with the Pipeline running; otherwise on the next start |+| **Thinking pause**, **Volume**, and **Audio devices** | End-of-speech timing, spoken volume, microphone, and speaker | Live with the Pipeline running; otherwise on the next start || **Voice Keybinds** | Call and Hangup shortcuts | Live with the voice Pipeline running; otherwise after a restart || **System Prompt** | The assistant's general style and behavior | On the next message; no restart || **Bar & Overlay** | Display style, idle visibility, music muting, and short sound effects | A mix of live changes and restart-required display swaps |diff --git a/jarvis/brain/app_control.py b/jarvis/brain/app_control.pyindex c91bef58ec..bdcc6f3573 100644--- a/jarvis/brain/app_control.py+++ b/jarvis/brain/app_control.py@@ -92,6 +92,10 @@ AUTH_PROVIDER_ALIASES: dict[str, str] = {"grok": "grok","grok-voice": "grok","openai-realtime": "openai-realtime",+ # Codex-as-brain accepts its dedicated slot OR the general OpenAI key+ # (config.PROVIDER_SECRET_CANDIDATES["codex"]); without this entry the+ # presence check saw only the dedicated slot.+ "codex": "codex",}# Local providers that need no credential at all. Empty since v1.0.1: the onlydiff --git a/jarvis/plugins/realtime/gemini_live.py b/jarvis/plugins/realtime/gemini_live.pyindex 4e95f3f7a4..6d2154d7c1 100644--- a/jarvis/plugins/realtime/gemini_live.py+++ b/jarvis/plugins/realtime/gemini_live.py@@ -421,26 +421,18 @@ class GeminiLiveProvider:voice_name=voice))- # An unset window (None/0) omits realtime_input_config entirely so- # Gemini's native automatic activity detection decides the turn end;- # only an explicit override forces a fixed silence window.- silence_ms = getattr(cfg, "silence_duration_ms", None)live_config = types.LiveConnectConfig(response_modalities=[types.Modality.AUDIO],system_instruction=str(getattr(cfg, "instructions", "") or "") or None,input_audio_transcription=types.AudioTranscriptionConfig(),output_audio_transcription=types.AudioTranscriptionConfig(),- **(- {- "realtime_input_config": types.RealtimeInputConfig(- automatic_activity_detection=types.AutomaticActivityDetection(- disabled=False,- silence_duration_ms=int(silence_ms),- )- )- }- if silence_ms- else {}+ realtime_input_config=types.RealtimeInputConfig(+ automatic_activity_detection=types.AutomaticActivityDetection(+ disabled=False,+ silence_duration_ms=int(+ getattr(cfg, "silence_duration_ms", 1_500) or 1_500+ ),+ )),**({diff --git a/jarvis/plugins/realtime/openai_realtime.py b/jarvis/plugins/realtime/openai_realtime.pyindex b9740f4afb..a1ae421289 100644--- a/jarvis/plugins/realtime/openai_realtime.py+++ b/jarvis/plugins/realtime/openai_realtime.py@@ -197,12 +197,10 @@ def _session_payload(cfg: Any) -> dict[str, Any]:# OpenAI's documented manual-response VAD mode."interrupt_response": False,}- # An unset window (None/0) keeps OpenAI's native server-VAD default so the- # realtime model decides the turn end itself; only an explicit override is- # forwarded.- silence_ms = getattr(cfg, "silence_duration_ms", None)- if turn_detection == "server_vad" and silence_ms:- turn_detection_config["silence_duration_ms"] = int(silence_ms)+ if turn_detection == "server_vad":+ turn_detection_config["silence_duration_ms"] = int(+ getattr(cfg, "silence_duration_ms", 1_500) or 1_500+ )payload: dict[str, Any] = {"type": "realtime",diff --git a/jarvis/realtime/protocol.py b/jarvis/realtime/protocol.pyindex 2d7c5c7290..53b82fbfdb 100644--- a/jarvis/realtime/protocol.py+++ b/jarvis/realtime/protocol.py@@ -63,14 +63,10 @@ class RealtimeSessionConfig:# GA Realtime schema rejects requesting text and audio simultaneously.modalities: tuple[str, ...] = ("audio",)turn_detection: str = "server_vad" # "server_vad" | "semantic_vad"- # None (the default) = the provider's NATIVE turn detection decides when- # the user's turn ends. The Settings "Thinking pause"- # (SpeechConfig.vad_silence_ms) endpoints the classic pipeline only —- # forcing it into realtime sessions made the realtime model wait the full- # window after every utterance, which reads as "done speaking but still- # listening" (maintainer directive 2026-07-21). An explicit int still- # overrides the provider default for callers that need a fixed window.- silence_duration_ms: int | None = None+ # Shared with SpeechConfig.vad_silence_ms (the Settings "Thinking pause").+ # Providers must wait for this much detected silence before committing the+ # user's turn, so a natural pause cannot start model reasoning early.+ silence_duration_ms: int = 1500tools: tuple[dict[str, Any], ...] = ()# Bounded transcript of the call so far, oldest first, as# ``{"role": "user" | "assistant", "text": ...}`` mappings. A freshdiff --git a/jarvis/realtime/session.py b/jarvis/realtime/session.pyindex 3268dec41a..1757a02501 100644--- a/jarvis/realtime/session.py+++ b/jarvis/realtime/session.py@@ -16,7 +16,6 @@ import randomimport reimport timefrom dataclasses import dataclass, field-from datetime import datetimefrom typing import Anyfrom uuid import uuid4@@ -64,6 +63,9 @@ _MAX_UNSCRUBBED_AUDIO_MS = 15_000_PROVIDER_HANDSHAKE_TOTAL_TIMEOUT_S = 12.0_AUDIO_SEND_TIMEOUT_S = 2.0_TOOL_TRANSCRIPT_WAIT_S = 3.0+_THINKING_PAUSE_DEFAULT_MS = 1_500+_THINKING_PAUSE_MIN_MS = 500+_THINKING_PAUSE_MAX_MS = 5_000# Grace window for the model to finish its goodbye after an end_call tool# call; if the provider never sends turn_complete, hang up anyway._END_CALL_GRACE_S = 10.0@@ -351,6 +353,20 @@ def _requires_jarvis_action(text: str) -> bool:return plan_turn(text).requires_orchestrator+def _configured_thinking_pause_ms(config: Any) -> int:+ """Return the validated shared Pipeline/Realtime silence window."""+ raw = getattr(+ getattr(config, "speech", None),+ "vad_silence_ms",+ _THINKING_PAUSE_DEFAULT_MS,+ )+ try:+ value = int(raw)+ except (TypeError, ValueError):+ value = _THINKING_PAUSE_DEFAULT_MS+ return max(_THINKING_PAUSE_MIN_MS, min(_THINKING_PAUSE_MAX_MS, value))++def _delegate_result_prompt(text: str,*,@@ -612,18 +628,6 @@ def _session_instructions(from jarvis.brain.persona_loader import load_effective_persona_promptpersona = load_effective_persona_prompt().strip()- # The block is re-sent with every per-turn session update, so this stays- # current across long sessions. Without it the model must either- # hallucinate calendar answers or delegate a trivial "what day is- # tomorrow" through the orchestrator (12-34 s of silence — live- # complaint 2026-07-21); the shared turn planner keeps such calendar- # trivia native on the strength of this line.- now = datetime.now().astimezone()- clock_line = (- f"Current local date and time: {now.strftime('%A, %Y-%m-%d %H:%M')} "- f"({now.tzname() or 'local time'}). Answer date, weekday, and "- "time-of-day questions directly from this — never guess."- )language_name = _LANGUAGE_NAMES.get(language, "the user's language")input_language_name = _LANGUAGE_NAMES.get(input_language)if input_language_name:@@ -656,7 +660,6 @@ def _session_instructions(tool_directive,_REALTIME_SAFETY_APPENDIX,input_directive,- clock_line,("Runtime identity: this voice session is using the Realtime engine"+ (f", provider {provider}" if provider else "")@@ -1095,10 +1098,7 @@ class RealtimeVoiceSession:input_sample_rate=input_rate,output_sample_rate=output_rate,modalities=("audio",),- # silence_duration_ms stays at its None default: the realtime- # model's native turn detection decides when the user is done.- # The Settings "Thinking pause" endpoints the classic pipeline- # only (maintainer directive 2026-07-21).+ silence_duration_ms=_configured_thinking_pause_ms(self._config),tools=self._declared_tools(),# Empty at the first open of a call; after an in-place# transport rebuild (or a mid-call cross-family fallback) itdiff --git a/jarvis/ui/web/frontend/src/components/ApiKeyForm.test.tsx b/jarvis/ui/web/frontend/src/components/ApiKeyForm.test.tsxindex 984ccff0f1..379400777c 100644--- a/jarvis/ui/web/frontend/src/components/ApiKeyForm.test.tsx+++ b/jarvis/ui/web/frontend/src/components/ApiKeyForm.test.tsx@@ -1,12 +1,25 @@/**- * Component tests for ApiKeyForm's new help text + live key-format hint.+ * Component tests for ApiKeyForm: help text, live key-format hint, and the+ * fallback-aware credential states (field report 2026-07-21) — a slot the+ * runtime already serves via the shared family key renders a "covered" note+ * instead of an empty input, and deleting a slot other surfaces read needs a+ * second, named confirmation.*/-import { afterEach, describe, expect, it } from "vitest";-import { cleanup, fireEvent, render, screen } from "@testing-library/react";+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";+import { cleanup, fireEvent, render, screen, waitFor } from "@testing-library/react";import { ApiKeyForm } from "@/components/ApiKeyForm";+import { deleteSecret } from "@/hooks/useProviders";++vi.mock("@/hooks/useProviders", () => ({+ deleteSecret: vi.fn(async () => undefined),+ postSecret: vi.fn(async () => undefined),+}));afterEach(cleanup);+beforeEach(() => {+ vi.mocked(deleteSecret).mockClear();+});describe("ApiKeyForm credential help", () => {it("renders the plain-English credential help text", () => {@@ -78,3 +91,85 @@ describe("ApiKeyForm live key-format hint", () => {expect(screen.queryByText(/expects a different key/i)).toBeNull();});});++describe("ApiKeyForm shared-key covered state", () => {+ it("renders the covered note instead of an input when a fallback exists", () => {+ render(+ <ApiKeyForm+ secretKey="realtime_openai_api_key"+ dashboardUrl={null}+ configured={false}+ effectiveConfigured={true}+ sharedWith={["OpenAI"]}+ />,+ );+ expect(screen.queryByLabelText(/enter realtime_openai_api_key/i)).toBeNull();+ expect(screen.getByText(/shared key/i)).toBeTruthy();++ // The dedicated key stays available as an explicit optional upgrade.+ fireEvent.click(screen.getByRole("button", { name: /add dedicated key/i }));+ expect(screen.getByLabelText(/enter realtime_openai_api_key/i)).toBeTruthy();+ });++ it("still renders the open input when no fallback covers the slot", () => {+ render(+ <ApiKeyForm+ secretKey="nvidia_api_key"+ dashboardUrl={null}+ configured={false}+ effectiveConfigured={false}+ />,+ );+ expect(screen.getByLabelText(/enter nvidia_api_key/i)).toBeTruthy();+ });+});++describe("ApiKeyForm shared-key delete confirmation", () => {+ it("requires a second, named confirmation before deleting a shared slot", async () => {+ render(+ <ApiKeyForm+ secretKey="openai_api_key"+ dashboardUrl={null}+ configured={true}+ sharedWith={["OpenAI Whisper STT", "OpenAI TTS", "OpenAI Codex"]}+ />,+ );++ fireEvent.click(screen.getByRole("button", { name: /delete openai_api_key/i }));+ expect(deleteSecret).not.toHaveBeenCalled();+ expect(screen.getByText(/OpenAI Whisper STT/)).toBeTruthy();++ fireEvent.click(screen.getByRole("button", { name: /delete anyway/i }));+ await waitFor(() => expect(deleteSecret).toHaveBeenCalledWith("openai_api_key"));+ });++ it("cancel keeps the key and hides the warning", () => {+ render(+ <ApiKeyForm+ secretKey="openai_api_key"+ dashboardUrl={null}+ configured={true}+ sharedWith={["OpenAI TTS"]}+ />,+ );+ fireEvent.click(screen.getByRole("button", { name: /delete openai_api_key/i }));+ fireEvent.click(screen.getByRole("button", { name: /cancel/i }));+ expect(deleteSecret).not.toHaveBeenCalled();+ expect(screen.queryByText(/OpenAI TTS/)).toBeNull();+ });++ it("deletes an unshared slot on the first click", async () => {+ render(+ <ApiKeyForm+ secretKey="openrouter_api_key"+ dashboardUrl={null}+ configured={true}+ sharedWith={[]}+ />,+ );+ fireEvent.click(screen.getByRole("button", { name: /delete openrouter_api_key/i }));+ await waitFor(() =>+ expect(deleteSecret).toHaveBeenCalledWith("openrouter_api_key"),+ );+ });+});diff --git a/jarvis/ui/web/frontend/src/components/ApiKeyForm.tsx b/jarvis/ui/web/frontend/src/components/ApiKeyForm.tsxindex 8cbf6704d8..84a5b2aa19 100644--- a/jarvis/ui/web/frontend/src/components/ApiKeyForm.tsx+++ b/jarvis/ui/web/frontend/src/components/ApiKeyForm.tsx@@ -16,6 +16,20 @@ interface ApiKeyFormProps {* existing call sites keep working; the provider catalog supplies it.*/credentialHelp?: string | null;+ /**+ * The runtime can already read a value for this slot through the family+ * fallback chain (e.g. the Realtime card covered by the shared OpenAI+ * key). When true and the dedicated slot is empty, the form renders a+ * collapsed "covered by your shared key" state instead of an empty input+ * demanding a second key the runtime does not need.+ */+ effectiveConfigured?: boolean;+ /**+ * Labels of the OTHER provider surfaces that read this same slot at+ * runtime. Non-empty ⇒ deleting asks for confirmation, because the delete+ * silently disables those surfaces too.+ */+ sharedWith?: string[];onChanged?: () => void;/*** Called after a key has been saved successfully.@@ -30,12 +44,14 @@ interface ApiKeyFormProps {* existing value. Writes directly to POST /api/secrets/{key}; the value* never leaves the frontend again after submit (read-only flag in the backend).*/-export function ApiKeyForm({ secretKey, dashboardUrl, configured, credentialHelp, onChanged, onSavedActivate }: ApiKeyFormProps) {+export function ApiKeyForm({ secretKey, dashboardUrl, configured, credentialHelp, effectiveConfigured, sharedWith, onChanged, onSavedActivate }: ApiKeyFormProps) {const t = useT();const [value, setValue] = useState("");const [pending, setPending] = useState(false);const [reveal, setReveal] = useState(false);- const [editing, setEditing] = useState(!configured);+ const coveredByShared = !configured && Boolean(effectiveConfigured);+ const [editing, setEditing] = useState(!configured && !effectiveConfigured);+ const [confirmingDelete, setConfirmingDelete] = useState(false);const pushToast = useEventStore((s) => s.pushToast);// Live, client-side format recognition — the entered value never leaves the@@ -62,6 +78,14 @@ export function ApiKeyForm({ secretKey, dashboardUrl, configured, credentialHelp}async function handleDelete() {+ // A slot that other tiers also read (one OpenAI key backs Brain, STT,+ // TTS and the Tool Model) never dies on a single click: first click+ // shows which surfaces the delete takes down, second click confirms.+ if ((sharedWith?.length ?? 0) > 0 && !confirmingDelete) {+ setConfirmingDelete(true);+ return;+ }+ setConfirmingDelete(false);setPending(true);try {await deleteSecret(secretKey);@@ -89,6 +113,31 @@ export function ApiKeyForm({ secretKey, dashboardUrl, configured, credentialHelp</a>) : null;+ const sharedDeleteConfirm = confirmingDelete ? (+ <div className="space-y-2 rounded-md border border-destructive/40 bg-destructive/10 p-2">+ <p className="flex items-start gap-1 text-[11px] text-destructive">+ <AlertTriangle className="mt-0.5 h-3 w-3 shrink-0" />+ <span>+ {t("apikeys_view.shared_delete_prefix")} {(sharedWith ?? []).join(", ")}.{" "}+ {t("apikeys_view.shared_delete_suffix")}+ </span>+ </p>+ <div className="flex gap-2">+ <Button+ size="sm"+ variant="destructive"+ onClick={handleDelete}+ disabled={pending}+ >+ {t("apikeys_view.delete_anyway")}+ </Button>+ <Button size="sm" variant="ghost" onClick={() => setConfirmingDelete(false)}>+ {t("common.cancel")}+ </Button>+ </div>+ </div>+ ) : null;+if (configured && !editing) {return (<div className="space-y-2">@@ -110,6 +159,25 @@ export function ApiKeyForm({ secretKey, dashboardUrl, configured, credentialHelp<Trash2 className="h-3.5 w-3.5" /></Button></div>+ {sharedDeleteConfirm}+ {dashboardLink}+ </div>+ );+ }++ if (coveredByShared && !editing) {+ // The runtime already serves this surface from a shared family key+ // (e.g. Realtime running off the one OpenAI key). An empty password box+ // here read as "you must paste a second key" \u2014 render the truth instead,+ // with the dedicated key as an explicit optional upgrade.+ return (+ <div className="space-y-2">+ <p className="text-[11px] leading-relaxed text-muted-foreground">+ {t("apikeys_view.shared_key_covered")}+ </p>+ <Button size="sm" variant="ghost" onClick={() => setEditing(true)}>+ {t("apikeys_view.add_dedicated_key")}+ </Button>{dashboardLink}</div>);@@ -148,7 +216,7 @@ export function ApiKeyForm({ secretKey, dashboardUrl, configured, credentialHelp<Button size="sm" onClick={handleSave} disabled={pending || !value.trim()}>{pending ? "…" : "Save"}</Button>- {configured && (+ {(configured || coveredByShared) && (<Button size="sm" variant="ghost" onClick={() => setEditing(false)}>Cancel</Button>diff --git a/jarvis/ui/web/frontend/src/hooks/useProviders.ts b/jarvis/ui/web/frontend/src/hooks/useProviders.tsindex 2c4d27d945..f46ea9ce85 100644--- a/jarvis/ui/web/frontend/src/hooks/useProviders.ts+++ b/jarvis/ui/web/frontend/src/hooks/useProviders.ts@@ -25,6 +25,14 @@ export interface ProviderDescriptor {auth_mode: AuthMode;secret_keys: string[];secrets_set: Record<string, boolean>;+ /**+ * Fallback-aware per-slot state: true when the dedicated slot is set OR+ * the runtime family chain resolves a shared key for it. Optional so+ * cached older payloads keep parsing.+ */+ secrets_effective?: Record<string, boolean>;+ /** Other provider surfaces (labels) that read the same slot at runtime. */+ secret_shared_with?: Record<string, string[]>;dashboard_url: string | null;login_cli: string[] | null;install_hint: string | null;diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex d8fe3e8a50..b131217ec2 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@ -899,6 +899,11 @@"apikeys_view": {"title": "API-Keys & Provider","subtitle": "Verbinde Provider und lege fest, was die einzelnen Teile von Jarvis antreibt.",+ "shared_key_covered": "Bereits über deinen geteilten Schlüssel dieser Provider-Familie abgedeckt — ein eigener Schlüssel ist optional.",+ "add_dedicated_key": "Eigenen Schlüssel hinterlegen",+ "shared_delete_prefix": "Dieser Schlüssel wird auch verwendet von:",+ "shared_delete_suffix": "Beim Löschen werden auch diese Provider deaktiviert.",+ "delete_anyway": "Trotzdem löschen","save": "Speichern","saved": "Gespeichert","missing": "Fehlt",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex 6b33df65ef..1031418f09 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@ -899,6 +899,11 @@"apikeys_view": {"title": "API Keys & Providers","subtitle": "Connect providers and choose what powers each part of Jarvis.",+ "shared_key_covered": "Already covered by your shared key from this provider family — a dedicated key is optional.",+ "add_dedicated_key": "Add dedicated key",+ "shared_delete_prefix": "This key is also used by:",+ "shared_delete_suffix": "Deleting it disables those providers too.",+ "delete_anyway": "Delete anyway","save": "Save","saved": "Saved","missing": "Missing",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex 4611d779fe..4010683621 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -899,6 +899,11 @@"apikeys_view": {"title": "Claves API y Proveedores","subtitle": "Conecta proveedores y elige qué impulsa cada parte de Jarvis.",+ "shared_key_covered": "Ya está cubierto por tu clave compartida de esta familia de proveedores — una clave dedicada es opcional.",+ "add_dedicated_key": "Añadir clave dedicada",+ "shared_delete_prefix": "Esta clave también la usan:",+ "shared_delete_suffix": "Al eliminarla, esos proveedores también se desactivan.",+ "delete_anyway": "Eliminar de todos modos","save": "Guardar","saved": "Guardado","missing": "Falta",diff --git a/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx b/jarvis/ui/web/frontend/src/views/ApiKeysView.tsxindex b546c0ac53..c481c31bb5 100644--- a/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx+++ b/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx@@ -1742,6 +1742,8 @@ function AuthWidget({secretKey={k}dashboardUrl={descriptor.dashboard_url}configured={Boolean(descriptor.secrets_set[k])}+ effectiveConfigured={Boolean(descriptor.secrets_effective?.[k])}+ sharedWith={descriptor.secret_shared_with?.[k] ?? []}credentialHelp={descriptor.credential_help}onChanged={onChanged}onSavedActivate={onSavedActivate}diff --git a/jarvis/ui/web/frontend/src/views/settings/SilenceWindowGroup.tsx b/jarvis/ui/web/frontend/src/views/settings/SilenceWindowGroup.tsxindex 8388d10f03..62e098aa49 100644--- a/jarvis/ui/web/frontend/src/views/settings/SilenceWindowGroup.tsx+++ b/jarvis/ui/web/frontend/src/views/settings/SilenceWindowGroup.tsx@@ -9,10 +9,9 @@ import { useT } from "@/i18n";* silence window (how long Jarvis waits in silence before submitting). Range* 0.5–5.0 s, step 0.1 s, default 1.5 s. The label tracks the slider live; the* PUT fires on release (pointer/key up) so a 0.1 s-step drag does not storm the- * backend. The change persists to jarvis.toml and applies live to the classic- * pipeline ONLY (a headless host falls back to "applies on next start").- * Realtime sessions deliberately ignore it — the realtime model's native turn- * detection decides the turn end (maintainer directive 2026-07-21).+ * backend. The change persists to jarvis.toml, applies live to the classic+ * pipeline, and configures every newly opened Realtime provider session (a+ * headless host falls back to "applies on next start").*/export function SilenceWindowGroup() {const t = useT();diff --git a/jarvis/ui/web/provider_routes.py b/jarvis/ui/web/provider_routes.pyindex a581fa854a..b991b792e9 100644--- a/jarvis/ui/web/provider_routes.py+++ b/jarvis/ui/web/provider_routes.py@@ -302,6 +302,34 @@ def _spec_to_payload(active = spec.id == active_sttsecrets_set = {k: bool(cfg_mod.get_secret(k)) for k in spec.secret_keys}+ # The runtime resolves credentials through family fallback chains+ # (config.PROVIDER_SECRET_CANDIDATES); the form state must match, or a+ # single-key install sees a green card WITH an empty "enter a key" box+ # demanding a second key it does not need (Realtime cards, field report+ # 2026-07-21). Per-slot: dedicated value present OR the family chain+ # resolves one. Only single-slot api_key specs get the family OR — a+ # multi-slot spec (e.g. Twilio) has no meaningful per-slot fallback.+ secrets_effective = dict(secrets_set)+ if (+ spec.auth_mode == "api_key"+ and len(spec.secret_keys) == 1+ and not all(secrets_set.values())+ ):+ from jarvis.brain.app_control import AUTH_PROVIDER_ALIASES++ alias = AUTH_PROVIDER_ALIASES.get(spec.id, spec.id)+ try:+ family_present = bool(cfg_mod.get_provider_secret(alias))+ except Exception: # noqa: BLE001 -- unknown family means no fallback+ family_present = False+ if family_present:+ secrets_effective = dict.fromkeys(spec.secret_keys, True)+ from .provider_spec import secret_slot_consumers++ secret_shared_with = {+ k: [label for label in secret_slot_consumers(k) if label != spec.label]+ for k in spec.secret_keys+ }codex_status = Noneif spec.id == "codex":codex_status = CodexAuthService(_codex_binary_path()).status().to_dict()@@ -318,6 +346,11 @@ def _spec_to_payload("auth_mode": spec.auth_mode,"secret_keys": list(spec.secret_keys),"secrets_set": secrets_set,+ # Fallback-aware per-slot state + the other surfaces sharing each+ # slot; the form renders "covered by your shared key" and warns+ # before deleting a key that other tiers still read.+ "secrets_effective": secrets_effective,+ "secret_shared_with": secret_shared_with,"dashboard_url": spec.dashboard_url,"login_cli": list(spec.login_cli) if spec.login_cli else None,"install_hint": spec.install_hint,@@ -1028,7 +1061,7 @@ def _section_health_fingerprint(cartesia_model = cartesia.get("model_id") if isinstance(cartesia, dict) else Noneconfiguration = (("brain-model", _provider_value("brain", "model")),- ("computer-use-model", _provider_value("computer-use", "cu_model")),+ ("computer-use-model", _provider_value("computer-use", "tool_model")),("tts-model", str(getattr(tts, "model", None) or "")),("tts-voice-de", str(getattr(tts, "voice_de", None) or "")),("tts-voice-en", str(getattr(tts, "voice_en", None) or "")),diff --git a/jarvis/ui/web/provider_spec.py b/jarvis/ui/web/provider_spec.pyindex 86244a631f..82a0a270bf 100644--- a/jarvis/ui/web/provider_spec.py+++ b/jarvis/ui/web/provider_spec.py@@ -447,3 +447,25 @@ def get_spec(provider_id: str) -> ProviderSpec | None:def all_secret_keys() -> set[str]:"""Set of all secret keys referenced by the declared provider specs."""return {key for spec in PROVIDERS for key in spec.secret_keys}+++def secret_slot_consumers(slot: str) -> list[str]:+ """Labels of every provider surface that can read ``slot`` at runtime.++ Union of (a) specs listing the slot literally in ``secret_keys`` and (b)+ provider families whose runtime fallback chain+ (``config.PROVIDER_SECRET_CANDIDATES``) contains it. Powers the+ shared-key delete warning in the API-Keys UI: deleting ``openai_api_key``+ from the STT card silently disabled the Brain and Tool Model too.+ """+ from jarvis.core.config import PROVIDER_SECRET_CANDIDATES++ labels: dict[str, None] = {}+ for spec in PROVIDERS:+ if slot in spec.secret_keys:+ labels.setdefault(spec.label)+ for family, candidates in PROVIDER_SECRET_CANDIDATES.items():+ if any(candidate_slot == slot for candidate_slot, _env in candidates):+ family_spec = get_spec(family)+ labels.setdefault(family_spec.label if family_spec else family)+ return list(labels)diff --git a/tests/unit/realtime/test_gemini_live.py b/tests/unit/realtime/test_gemini_live.pyindex d2ce3cdd9b..692ed333ad 100644--- a/tests/unit/realtime/test_gemini_live.py+++ b/tests/unit/realtime/test_gemini_live.py@@ -325,21 +325,6 @@ async def test_every_selectable_model_uses_live_audio_and_transcriptions(assert holder["client"].closed is True-async def test_default_config_keeps_native_activity_detection(- monkeypatch: pytest.MonkeyPatch,-) -> None:- holder = _patch_genai_client(monkeypatch)- provider = GeminiLiveProvider(api_key="test-key")-- session = await provider.open_session(RealtimeSessionConfig(voice="Puck"))- _selected, config = holder["client"].aio.live.connect_calls[0]- # No forced silence window: Gemini's native automatic activity detection- # decides the turn end (the Settings "Thinking pause" is pipeline-only).- assert config.realtime_input_config is None- await session.close()--@pytest.mark.asyncioasync def test_open_session_uses_current_default_model(monkeypatch: pytest.MonkeyPatch,diff --git a/tests/unit/realtime/test_openai_realtime.py b/tests/unit/realtime/test_openai_realtime.pyindex 872a4b0322..cc4b7f1e90 100644--- a/tests/unit/realtime/test_openai_realtime.py+++ b/tests/unit/realtime/test_openai_realtime.py@@ -158,24 +158,6 @@ async def test_every_selectable_model_uses_the_valid_ga_session_schema(await session.close()-async def test_default_config_keeps_native_server_vad_window(- monkeypatch: pytest.MonkeyPatch,-) -> None:- holder = _patch_openai_client(monkeypatch)- provider = OpenAIRealtimeProvider(api_key="test-key")-- session = await provider.open_session(- RealtimeSessionConfig(voice="echo", language="en")- )- payload = holder["client"].realtime.last_conn.session_updates[0]- turn_detection = payload["audio"]["input"]["turn_detection"]- # No forced window: OpenAI's native server-VAD default decides the turn- # end (the Settings "Thinking pause" endpoints the pipeline only).- assert "silence_duration_ms" not in turn_detection- await session.close()--@pytest.mark.asyncioasync def test_text_update_creates_tool_free_audio_response(monkeypatch: pytest.MonkeyPatch,diff --git a/tests/unit/realtime/test_protocol.py b/tests/unit/realtime/test_protocol.pyindex 8c8e3e3b6a..3676593ee9 100644--- a/tests/unit/realtime/test_protocol.py+++ b/tests/unit/realtime/test_protocol.py@@ -32,13 +32,13 @@ def test_session_config_has_selectable_model():assert cfg.voice == "echo"-def test_session_config_defaults_to_provider_native_turn_detection():+def test_session_config_defaults_to_shared_thinking_pause():+ from jarvis.core.config import SpeechConfigfrom jarvis.realtime.protocol import RealtimeSessionConfig- # None = the provider's native turn detection decides the turn end; the- # Settings "Thinking pause" endpoints the classic pipeline only- # (maintainer directive 2026-07-21).- assert RealtimeSessionConfig().silence_duration_ms is None+ assert RealtimeSessionConfig().silence_duration_ms == (+ SpeechConfig().vad_silence_ms+ ) == 1_500def test_session_config_history_defaults_empty():diff --git a/tests/unit/realtime/test_thinking_pause.py b/tests/unit/realtime/test_thinking_pause.pyindex e4544ba454..0553f2a208 100644--- a/tests/unit/realtime/test_thinking_pause.py+++ b/tests/unit/realtime/test_thinking_pause.py@@ -1,11 +1,4 @@-"""The Settings thinking pause must NOT leak into realtime sessions.--The "Thinking pause" (SpeechConfig.vad_silence_ms) endpoints the classic-pipeline only. Realtime providers own their native turn detection — forcing-the pipeline window into a realtime session made the model wait the full-window after every utterance ("done speaking but still listening",-maintainer directive 2026-07-21).-"""+"""The Settings thinking pause must reach every realtime provider family."""from __future__ import annotations@@ -82,7 +75,7 @@ def _config(silence_ms: int):@pytest.mark.asyncio-async def test_pipeline_pause_never_reaches_primary_or_fallback():+async def test_configured_pause_reaches_primary_and_cross_family_fallback():primary = _Provider("first-family", fail=True)fallback = _Provider("second-family")session = RealtimeVoiceSession(@@ -95,8 +88,6 @@ async def test_pipeline_pause_never_reaches_primary_or_fallback():await session.handle_control({"type": "audio_start", "sample_rate": 16_000})- # Even with a long pipeline Thinking pause configured, every realtime- # provider family opens with the provider-native default (None).- assert primary.opened_with.silence_duration_ms is None- assert fallback.opened_with.silence_duration_ms is None+ assert primary.opened_with.silence_duration_ms == 2_700+ assert fallback.opened_with.silence_duration_ms == 2_700await session.end(reason="test")diff --git a/tests/unit/web/test_provider_secret_sharing.py b/tests/unit/web/test_provider_secret_sharing.pynew file mode 100644index 0000000000..3a6872582c--- /dev/null+++ b/tests/unit/web/test_provider_secret_sharing.py@@ -0,0 +1,36 @@+"""Shared-slot consumer map for the API-Keys UI (field report 2026-07-21).++``secret_slot_consumers`` powers the delete warning: deleting+``openai_api_key`` from the STT card used to silently disable the Brain and+Tool Model too, because the UI had no idea the slot was shared.+"""+from __future__ import annotations++from jarvis.ui.web.provider_spec import get_spec, secret_slot_consumers+++def test_openai_key_is_shared_across_multiple_surfaces() -> None:+ consumers = secret_slot_consumers("openai_api_key")+ assert len(consumers) > 1, (+ "one OpenAI key backs several surfaces (brain, STT, TTS, codex "+ "fallback, realtime fallback) — the delete warning depends on this"+ )+ openai_label = get_spec("openai").label+ assert openai_label in consumers+++def test_realtime_openai_slot_names_its_fallback_family() -> None:+ # The runtime chain for the openai family cross-reads the realtime slot,+ # so deleting it must at least name the realtime + openai surfaces.+ consumers = secret_slot_consumers("realtime_openai_api_key")+ assert get_spec("openai-realtime").label in consumers+ assert get_spec("openai").label in consumers+++def test_unshared_slot_reports_only_its_own_surface() -> None:+ consumers = secret_slot_consumers("nvidia_api_key")+ assert consumers == [get_spec("nvidia").label]+++def test_unknown_slot_reports_no_consumers() -> None:+ assert secret_slot_consumers("no_such_slot_ever") == []