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
feat(settings): Agents tab first, live instructions folded
rubenluetke10-beep5ae7e5e2fa68
diff --git a/jarvis/ui/web/frontend/src/components/providers/LiveProfile.tsx b/jarvis/ui/web/frontend/src/components/providers/LiveProfile.tsxindex 43dcc82d6a..3d9d6ff5a9 100644--- a/jarvis/ui/web/frontend/src/components/providers/LiveProfile.tsx+++ b/jarvis/ui/web/frontend/src/components/providers/LiveProfile.tsx@@ -103,6 +103,8 @@ export function LiveProfile({ onSaved, onAuthModeChange, selectedAuthMode, keyFiconst profile = useQuery(liveProfileQuery);const [draft, setDraft] = useState<LiveProfileValue | null>(null);const [saving, setSaving] = useState(false);+ // Custom instructions are rarely touched; they open on request.+ const [showInstructions, setShowInstructions] = useState(false);const [message, setMessage] = useState("");const [error, setError] = useState("");const storedValue = draft ?? profile.data?.profile;@@ -393,21 +395,33 @@ export function LiveProfile({ onSaved, onAuthModeChange, selectedAuthMode, keyFi)}</SettingsSection>- <SettingsSection title={t("live.prompts")}>- <div className="grid gap-4 px-4 py-3 md:grid-cols-2">- <label className="space-y-1.5">- <span className="block text-xs text-muted-foreground">{t("live.conversation_prompt")}</span>- <Textarea rows={3} value={value.instructions} onChange={(event) => update({ instructions: event.target.value })} />- </label>- <label className="space-y-1.5">- <span className="block text-xs text-muted-foreground">{t("live.backend_prompt")}</span>- <Textarea rows={3} value={value.backend_instructions} onChange={(event) => update({ backend_instructions: event.target.value })} />- </label>- {!subscription ? <label className="space-y-1.5 md:col-span-2">- <span className="block text-xs text-muted-foreground">{t("live.custom_model")}</span>- <Input value={value.backend_model} onChange={(event) => update({ backend_model: event.target.value })} />- </label> : null}- </div>+ <SettingsSection title={t("providers_page.instructions_title")}>+ <SettingsRow+ title={t("providers_page.instructions_row")}+ status={value.instructions.trim() || value.backend_instructions.trim()+ ? t("providers_page.instructions_set") : t("providers_page.instructions_none")}+ control={+ <Button size="sm" variant="outline" data-testid="live-instructions-toggle" onClick={() => setShowInstructions((open) => !open)}>+ {showInstructions ? t("providers_page.instructions_hide") : t("providers_page.instructions_edit")}+ </Button>+ }+ />+ {showInstructions ? (+ <div className="grid gap-4 px-4 py-3 md:grid-cols-2">+ <label className="space-y-1.5">+ <span className="block text-xs text-muted-foreground">{t("live.conversation_prompt")}</span>+ <Textarea rows={3} value={value.instructions} onChange={(event) => update({ instructions: event.target.value })} />+ </label>+ <label className="space-y-1.5">+ <span className="block text-xs text-muted-foreground">{t("live.backend_prompt")}</span>+ <Textarea rows={3} value={value.backend_instructions} onChange={(event) => update({ backend_instructions: event.target.value })} />+ </label>+ {!subscription ? <label className="space-y-1.5 md:col-span-2">+ <span className="block text-xs text-muted-foreground">{t("live.custom_model")}</span>+ <Input value={value.backend_model} onChange={(event) => update({ backend_model: event.target.value })} />+ </label> : null}+ </div>+ ) : null}</SettingsSection>{(showSave || options.isError || error || message ||diff --git a/jarvis/ui/web/frontend/src/i18n/locales/providers/de.json b/jarvis/ui/web/frontend/src/i18n/locales/providers/de.jsonindex cf5759fc50..99bbf19d6c 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/providers/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/providers/de.json@@ -99,6 +99,12 @@"agent_providers_desc": "Schalte jeden Anbieter ein, den deine Agenten nutzen dürfen. Öffne einen, um Abo oder Schlüssel und seine Modelle zu wählen.","agent_providers_count": "{0} aktiv","voice_save_hint": "Speichern, damit der nächste Anruf diese Einstellungen nutzt",+ "instructions_title": "Anweisungen",+ "instructions_row": "Eigene Anweisungen",+ "instructions_set": "Deine eigenen Anweisungen sind aktiv",+ "instructions_none": "Keine – GPT-Live nutzt seine Standards",+ "instructions_edit": "Bearbeiten",+ "instructions_hide": "Schließen","tab_voice": "Live-Gespräche","tab_agents": "Agenten","subscriptions_title": "Abos",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/providers/en.json b/jarvis/ui/web/frontend/src/i18n/locales/providers/en.jsonindex d674ab3010..5d5c6f6cd4 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/providers/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/providers/en.json@@ -99,6 +99,12 @@"agent_providers_desc": "Turn on every provider your agents may use. Open one to choose subscription or key and its models.","agent_providers_count": "{0} on","voice_save_hint": "Save to use these settings on your next call",+ "instructions_title": "Instructions",+ "instructions_row": "Custom instructions",+ "instructions_set": "Your own instructions are in use",+ "instructions_none": "None — GPT-Live uses its defaults",+ "instructions_edit": "Edit",+ "instructions_hide": "Close","tab_voice": "Live calls","tab_agents": "Agents","subscriptions_title": "Subscriptions",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/providers/es.json b/jarvis/ui/web/frontend/src/i18n/locales/providers/es.jsonindex bf8c967458..5863e62434 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/providers/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/providers/es.json@@ -99,6 +99,12 @@"agent_providers_desc": "Activa cada proveedor que tus agentes pueden usar. Abre uno para elegir suscripción o clave y sus modelos.","agent_providers_count": "{0} activos","voice_save_hint": "Guarda para usar estos ajustes en tu próxima llamada",+ "instructions_title": "Instrucciones",+ "instructions_row": "Instrucciones propias",+ "instructions_set": "Se usan tus propias instrucciones",+ "instructions_none": "Ninguna: GPT-Live usa sus valores por defecto",+ "instructions_edit": "Editar",+ "instructions_hide": "Cerrar","tab_voice": "Llamadas en directo","tab_agents": "Agentes","subscriptions_title": "Suscripciones",diff --git a/jarvis/ui/web/frontend/src/views/ApiKeysView.providers.test.tsx b/jarvis/ui/web/frontend/src/views/ApiKeysView.providers.test.tsxindex be1ca3fb64..248c1ade70 100644--- a/jarvis/ui/web/frontend/src/views/ApiKeysView.providers.test.tsx+++ b/jarvis/ui/web/frontend/src/views/ApiKeysView.providers.test.tsx@@ -149,7 +149,8 @@ function openAgents() {beforeEach(() => {try {- localStorage.removeItem("jarvis.apikeys.tab");+ // Most tests start on Live calls and switch over; the default is tested below.+ localStorage.setItem("jarvis.apikeys.tab", "voice");} catch {/* no storage in this environment */}@@ -163,10 +164,16 @@ describe("ApiKeysView — Live calls", () => {expect(await within(voice).findByTestId("voice-key")).toBeTruthy();});- it("has only the two tabs", async () => {+ it("has only the two tabs, Agents first", async () => {renderPage();await screen.findByTestId("apikeys-voice");- expect(screen.getAllByRole("tab").map((tab) => tab.textContent)).toEqual(["Live calls", "Agents"]);+ expect(screen.getAllByRole("tab").map((tab) => tab.textContent)).toEqual(["Agents", "Live calls"]);+ });++ it("opens on Agents the first time", async () => {+ localStorage.removeItem("jarvis.apikeys.tab");+ renderPage();+ expect(await screen.findByTestId("apikeys-agents")).toBeTruthy();});});diff --git a/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx b/jarvis/ui/web/frontend/src/views/ApiKeysView.tsxindex 39d026f4cc..fb57e6f6fc 100644--- a/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx+++ b/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx@@ -12,7 +12,8 @@ import { useLocaleChunk, useT } from "@/i18n";import { cn } from "@/lib/utils";import { useEventStore } from "@/store/events";-const TABS = ["voice", "agents"] as const;+// Agents first: the providers are set up there; live calls reuse the OpenAI login.+const TABS = ["agents", "voice"] as const;type Tab = (typeof TABS)[number];const TAB_STORAGE_KEY = "jarvis.apikeys.tab";@@ -23,7 +24,7 @@ function initialTab(): Tab {} catch {// Private mode / no storage: open on the first tab.}- return "voice";+ return "agents";}/**