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(onboarding): simplify live voice and agent setup

rubenluetke10-beep5c27123f9d91
diff --git a/jarvis/setup/starter_plans.py b/jarvis/setup/starter_plans.py
index de61d0d4c3..d7814fb52f 100644
--- a/jarvis/setup/starter_plans.py
+++ b/jarvis/setup/starter_plans.py
@@ -1,11 +1,9 @@
-"""Starter plans — "one key and you are done" setups for the first run.
+"""Starter plans for the live voice portion of first-run setup.
-A starter plan names a voice mode and the provider for every surface that
-mode needs, all served by ONE provider family (or two). Choosing a plan in
-onboarding filters the key list down to the families it needs; once every
-family key is saved, the frontend applies the plan through the ordinary
-switch routes (brain / tool model / agents / tts / stt / realtime / voice
-mode), so nothing here duplicates the switch logic — a plan is data.
+A starter plan names the live voice provider and the thinking model it needs.
+Sub-Agent access is connected separately in onboarding through an API key or
+subscription. The frontend applies each plan through the ordinary switch
+routes, so nothing here duplicates the switch logic.
Provider ids are the catalog ids from ``jarvis.ui.web.provider_spec``; a
unit test pins every id to an existing spec of the right tier so a renamed
@@ -40,59 +38,21 @@ class StarterPlan:
STARTER_PLANS: tuple[StarterPlan, ...] = (
StarterPlan(
- id="gemini-pipeline",
- label="Pipeline with Gemini",
- summary=(
- "One Google Gemini key runs everything: thinking, the tool model, "
- "the agents, voice in and voice out."
- ),
- mode="pipeline",
- key_families=("gemini",),
- assignments={
- "brain": "gemini",
- "computer-use": "gemini",
- "subagent": "gemini",
- "tts": "gemini-flash-tts",
- "stt": "gemini-api",
- },
+ id="openai-live",
+ label="OpenAI GPT-Live",
+ summary="Live conversation and its thinking model use one OpenAI API key.",
+ mode="realtime",
+ key_families=("openai",),
+ assignments={"brain": "openai", "computer-use": "openai", "realtime": "openai-live"},
recommended=True,
),
StarterPlan(
- id="gemini-realtime",
- label="Realtime with Gemini",
- summary=(
- "One Google Gemini key, spoken live: Gemini Live answers in real "
- "time; tool model and agents run on the same key."
- ),
+ id="gemini-live",
+ label="Gemini Live",
+ summary="Live conversation uses a Gemini Live API key.",
mode="realtime",
key_families=("gemini",),
- assignments={
- "brain": "gemini",
- "computer-use": "gemini",
- "subagent": "gemini",
- "tts": "gemini-flash-tts",
- "stt": "gemini-api",
- "realtime": "gemini-live",
- },
- ),
- StarterPlan(
- id="gemini-openai-realtime",
- label="Gemini + OpenAI",
- summary=(
- "Two keys, both engines covered: OpenAI Realtime speaks live, "
- "Gemini thinks, plans and runs the agents — and the Pipeline "
- "engine stays ready as a fallback."
- ),
- mode="realtime",
- key_families=("gemini", "openai"),
- assignments={
- "brain": "gemini",
- "computer-use": "gemini",
- "subagent": "gemini",
- "tts": "gemini-flash-tts",
- "stt": "gemini-api",
- "realtime": "openai-realtime",
- },
+ assignments={"brain": "gemini", "computer-use": "gemini", "realtime": "gemini-live"},
),
)
diff --git a/jarvis/ui/web/frontend/src/components/onboarding/steps/ApiKeysStep.test.tsx b/jarvis/ui/web/frontend/src/components/onboarding/steps/ApiKeysStep.test.tsx
index 0cb12f2bdc..4f13ba543f 100644
--- a/jarvis/ui/web/frontend/src/components/onboarding/steps/ApiKeysStep.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/onboarding/steps/ApiKeysStep.test.tsx
@@ -43,7 +43,7 @@ const plansState = vi.hoisted(() => ({
selected: null as string | null,
fail: false,
selectStarterPlan: vi.fn(async () => undefined),
- applyStarterPlan: vi.fn(async () => ({ applied: ["brain"], failed: [], modeSet: true })),
+ applyStarterPlan: vi.fn(async () => ({ applied: ["brain"], failed: [] as { surface: string; error: string }[], modeSet: true })),
}));
vi.mock("@/hooks/useStarterPlans", () => ({
getStarterPlans: async () => {
@@ -56,19 +56,22 @@ vi.mock("@/hooks/useStarterPlans", () => ({
vi.mock("@/components/ReadyCelebration", () => ({
ReadyCelebration: () => <div data-testid="ready-celebration-stub" />,
}));
+vi.mock("@/components/JarvisAgentSection", () => ({
+ JarvisAgentSection: () => <div data-testid="agent-connection-options" />,
+}));
import { ApiKeysStep, planKeysComplete, providersForPlan, startableProviders } from "./ApiKeysStep";
const GEMINI_PLAN = {
- id: "gemini-pipeline",
- label: "Pipeline with Gemini",
+ id: "gemini-live",
+ label: "Gemini Live",
summary: "One key.",
- mode: "pipeline" as const,
+ mode: "realtime" as const,
recommended: true,
- assignments: { brain: "gemini", tts: "gemini-flash-tts" },
+ assignments: { brain: "gemini", realtime: "gemini-live" },
key_slots: [{ family: "gemini", slot: "gemini_api_key", label: "Google Gemini", present: false }],
keys_complete: false,
- ready_sections: ["brain", "computer-use", "tts", "stt"],
+ ready_sections: ["realtime", "computer-use", "subagents"],
};
afterEach(() => {
@@ -114,7 +117,7 @@ function provider(overrides: Partial<ProviderDescriptor>): ProviderDescriptor {
type ProbeShape = { source: string; models: { id: string }[] } | null;
/** Stub fetch for the local-path probe (+ the brain switch and the engine pin). */
-function stubFetch(probe: ProbeShape) {
+function stubFetch(probe: ProbeShape, agentReady = false) {
const calls: { url: string; init?: RequestInit }[] = [];
vi.stubGlobal(
"fetch",
@@ -124,6 +127,9 @@ function stubFetch(probe: ProbeShape) {
if (probe === null) throw new Error("network down");
return { ok: true, json: async () => probe } as Response;
}
+ if (url === "/api/jarvis-agent/status") {
+ return { ok: true, json: async () => ({ mapping: [{ is_active_brain: true, dedicated_key_set: agentReady }] }) } as Response;
+ }
if (url === "/api/brain/switch" || url === "/api/settings/voice-mode") {
return { ok: true, json: async () => ({ ok: true }) } as Response;
}
@@ -252,10 +258,10 @@ it("preselects the recommended plan, filters the list to its key, and applies th
provider({ id: "gemini", label: "Google Gemini", secret_keys: ["gemini_api_key"], secrets_set: { gemini_api_key: false } }),
provider({ id: "b", label: "B" }),
];
- stubFetch(null);
+ stubFetch(null, true);
renderStep();
- const row = await screen.findByTestId("onboarding-plan-gemini-pipeline");
+ const row = await screen.findByTestId("onboarding-plan-gemini-live");
expect(row.getAttribute("aria-checked")).toBe("true");
await waitFor(() => expect(screen.getByTestId("form-gemini_api_key")).toBeDefined());
expect(screen.queryByTestId("form-X_API_KEY")).toBeNull();
@@ -270,11 +276,11 @@ it("preselects the recommended plan, filters the list to its key, and applies th
const props = renderStep();
await screen.findByTestId("onboarding-plan-applied");
expect(plansState.applyStarterPlan).toHaveBeenCalledTimes(1);
- expect(plansState.selectStarterPlan).toHaveBeenCalledWith("gemini-pipeline");
+ expect(plansState.selectStarterPlan).toHaveBeenCalledWith("gemini-live");
expect(screen.getByTestId("ready-celebration-stub")).toBeDefined();
expect((screen.getByTestId("onboarding-primary") as HTMLButtonElement).disabled).toBe(false);
// The i18n mock echoes keys, so the plan label falls back to the catalog text.
- expect(props.setSummary).toHaveBeenLastCalledWith("Pipeline with Gemini · Google Gemini");
+ expect(props.setSummary).toHaveBeenLastCalledWith("Gemini Live · Google Gemini");
});
it("'pick everything myself' restores the full list and the local path", async () => {
@@ -301,46 +307,39 @@ it("with Ollama running but empty, explains the missing model and shows no activ
expect(screen.queryByRole("button", { name: "onboarding.api_keys.local_use_button" })).toBeNull();
});
-it("reports a gap while a two-key plan still misses a key, and clears it once complete", async () => {
+it("requires agent access in addition to the live key and exposes its connection options", async () => {
plansState.fail = false;
- plansState.plans = [
- {
- ...GEMINI_PLAN,
- id: "gemini-openai-realtime",
- label: "Gemini + OpenAI",
- mode: "realtime",
- recommended: false,
- key_slots: [
- { family: "gemini", slot: "gemini_api_key", label: "Google Gemini", present: true },
- { family: "openai", slot: "openai_api_key", label: "OpenAI", present: false },
- ],
- },
- ];
+ plansState.plans = [GEMINI_PLAN];
providersState.providers = [
provider({ id: "gemini", label: "Google Gemini", secret_keys: ["gemini_api_key"], secrets_set: { gemini_api_key: true }, configured: true }),
- provider({ id: "openai", label: "OpenAI", secret_keys: ["openai_api_key"], secrets_set: { openai_api_key: false } }),
];
stubFetch(null);
const p = renderStep();
- // Not recommended, so not preselected: pick it as a user would.
- fireEvent.click(await screen.findByTestId("onboarding-plan-gemini-openai-realtime"));
- // The picker says how many keys and which engine each plan needs.
- expect(screen.getByTestId("onboarding-plan-gemini-openai-realtime").textContent).toContain(
- "onboarding.api_keys.keys_n",
- );
- expect(screen.getByTestId("onboarding-plan-gemini-openai-realtime").textContent).toContain(
- "onboarding.api_keys.mode_realtime",
- );
- await waitFor(() =>
- expect(p.setGap).toHaveBeenLastCalledWith("onboarding.api_keys.gap_plan_partial"),
- );
+ await screen.findByTestId("onboarding-plan-gemini-live");
+ await waitFor(() => expect(p.setGap).toHaveBeenLastCalledWith("onboarding.api_keys.gap_agents"));
+ expect((screen.getByTestId("onboarding-primary") as HTMLButtonElement).disabled).toBe(true);
+ fireEvent.click(screen.getByRole("button", { name: "onboarding.api_keys.agents_connect" }));
+ expect(screen.getByTestId("agent-connection-options")).toBeDefined();
- providersState.providers = [
- provider({ id: "gemini", label: "Google Gemini", secret_keys: ["gemini_api_key"], secrets_set: { gemini_api_key: true }, configured: true }),
- provider({ id: "openai", label: "OpenAI", secret_keys: ["openai_api_key"], secrets_set: { openai_api_key: true }, configured: true }),
- ];
cleanup();
+ stubFetch(null, true);
const again = renderStep();
- fireEvent.click(await screen.findByTestId("onboarding-plan-gemini-openai-realtime"));
await waitFor(() => expect(again.setGap).toHaveBeenLastCalledWith(null));
+ await waitFor(() => expect((screen.getByTestId("onboarding-primary") as HTMLButtonElement).disabled).toBe(false));
+});
+
+it("does not mark a failed live activation ready", async () => {
+ plansState.fail = false;
+ plansState.plans = [GEMINI_PLAN];
+ plansState.applyStarterPlan.mockResolvedValueOnce({
+ applied: ["brain"], failed: [{ surface: "realtime", error: "unavailable" }], modeSet: false,
+ });
+ providersState.providers = [
+ provider({ id: "gemini", label: "Google Gemini", secret_keys: ["gemini_api_key"], secrets_set: { gemini_api_key: true }, configured: true }),
+ ];
+ stubFetch(null, true);
+ renderStep();
+ await screen.findByTestId("onboarding-plan-partial");
+ expect(screen.queryByTestId("ready-celebration-stub")).toBeNull();
+ expect((screen.getByTestId("onboarding-primary") as HTMLButtonElement).disabled).toBe(true);
});
diff --git a/jarvis/ui/web/frontend/src/components/onboarding/steps/ApiKeysStep.tsx b/jarvis/ui/web/frontend/src/components/onboarding/steps/ApiKeysStep.tsx
index 702e82f33f..2a96706f9e 100644
--- a/jarvis/ui/web/frontend/src/components/onboarding/steps/ApiKeysStep.tsx
+++ b/jarvis/ui/web/frontend/src/components/onboarding/steps/ApiKeysStep.tsx
@@ -1,6 +1,7 @@
import { useEffect, useMemo, useState } from "react";
-import { ChevronDown, ExternalLink } from "lucide-react";
+import { ChevronDown, ExternalLink, KeyRound, Radio, Bot } from "lucide-react";
import { ApiKeyForm } from "@/components/ApiKeyForm";
+import { JarvisAgentSection } from "@/components/JarvisAgentSection";
import { Button, FOCUS_RING } from "@/components/agentic/controls";
import {
switchBrainProvider,
@@ -224,6 +225,8 @@ export function ApiKeysStep({ goNext, goBack, skip, setSummary, setGap }: StepPr
const [open, setOpen] = useState<string | null>(null);
const [expanded, setExpanded] = useState(false);
const [localActive, setLocalActive] = useState(false);
+ const [agentsOpen, setAgentsOpen] = useState(false);
+ const [agentReady, setAgentReady] = useState(false);
// Starter plans: "one key and you are done". The recommended plan is
// preselected; "custom" shows the whole catalog exactly as before.
@@ -241,7 +244,8 @@ export function ApiKeysStep({ goNext, goBack, skip, setSummary, setGap }: StepPr
setPlans(res.plans);
setPlanId(
(current) =>
- current ?? res.selected ?? res.plans.find((p) => p.recommended)?.id ?? CUSTOM_PLAN,
+ current ?? (res.plans.some((p) => p.id === res.selected) ? res.selected : null) ??
+ res.plans.find((p) => p.recommended)?.id ?? CUSTOM_PLAN,
);
} catch {
// No plan catalog (older backend) — the full list still works.
@@ -266,10 +270,41 @@ export function ApiKeysStep({ goNext, goBack, skip, setSummary, setGap }: StepPr
const configured = startable.filter(slotEffective);
const hasKey = configured.length > 0;
const planComplete = plan ? planKeysComplete(plan, allStartable) : false;
- const planApplied = Boolean(plan && applied?.id === plan.id);
+ const planApplied = Boolean(plan && applied?.id === plan.id && applied.outcome.modeSet && applied.outcome.failed.length === 0);
- // Once every key the plan needs is saved, point every surface at it —
- // brain, tool model, agents, voice out, voice in, live voice, mode. Runs
+ useEffect(() => {
+ let cancelled = false;
+ const refresh = async () => {
+ try {
+ const response = await fetch("/api/jarvis-agent/status", { cache: "no-store" });
+ if (!response.ok) return;
+ const status = await response.json() as { mapping?: {
+ is_active_brain?: boolean;
+ dedicated_key_set?: boolean;
+ oauth_connected?: boolean;
+ keyless?: boolean;
+ }[] };
+ if (!cancelled) setAgentReady(Boolean(status.mapping?.some((row) =>
+ row.is_active_brain && (row.dedicated_key_set || row.oauth_connected || row.keyless),
+ )));
+ } catch {
+ // Agent access remains visibly unconfigured while the status endpoint is unavailable.
+ }
+ };
+ void refresh();
+ const timer = agentsOpen ? window.setInterval(() => void refresh(), 3000) : null;
+ window.addEventListener("jarvis:agent-switched", refresh);
+ window.addEventListener("jarvis:secret-configured", refresh);
+ return () => {
+ cancelled = true;
+ if (timer !== null) window.clearInterval(timer);
+ window.removeEventListener("jarvis:agent-switched", refresh);
+ window.removeEventListener("jarvis:secret-configured", refresh);
+ };
+ }, [agentsOpen]);
+
+ // Once the live key is saved, point voice and its thinking model at it. Agent
+ // access remains a separate choice below. Runs
// once per plan; a re-render never re-applies.
useEffect(() => {
if (!plan || !planComplete || applying || applied?.id === plan.id) return;
@@ -305,10 +340,7 @@ export function ApiKeysStep({ goNext, goBack, skip, setSummary, setGap }: StepPr
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [hasKey, localActive, planApplied, configured.map((p) => p.id).join(","), setSummary, t]);
- // What this step leaves undone, for the finish step's disclaimer. A plan
- // that still misses a key is the important one: with "Gemini + OpenAI" and
- // only the Gemini key saved, chat works but live voice does not — the user
- // must see that before pressing Start, not discover it by talking.
+ // Report missing live and agent credentials separately to the finish step.
useEffect(() => {
if (plan && !planComplete) {
const missing = plan.key_slots
@@ -323,6 +355,10 @@ export function ApiKeysStep({ goNext, goBack, skip, setSummary, setGap }: StepPr
.replace("{1}", missing.join(", ")),
);
}
+ } else if (plan && applied?.id === plan.id && applied.outcome.failed.length > 0) {
+ setGap(t("onboarding.api_keys.plan_partial").replace("{0}", applied.outcome.failed.map((f) => f.surface).join(", ")));
+ } else if (plan && !agentReady) {
+ setGap(t("onboarding.api_keys.gap_agents"));
} else if (!hasKey && !localActive) {
setGap(t("onboarding.api_keys.gap_none"));
} else if (!plan && hasKey) {
@@ -331,7 +367,7 @@ export function ApiKeysStep({ goNext, goBack, skip, setSummary, setGap }: StepPr
setGap(null);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
- }, [plan?.id, planComplete, hasKey, localActive, configured.map((p) => p.id).join(","), setGap, t]);
+ }, [plan?.id, planComplete, applied, hasKey, agentReady, localActive, configured.map((p) => p.id).join(","), setGap, t]);
// Open the first row by default so a fresh install shows an input, not a
// list of closed doors. Once anything is configured, everything stays shut.
@@ -368,78 +404,72 @@ export function ApiKeysStep({ goNext, goBack, skip, setSummary, setGap }: StepPr
});
};
- const canContinue = hasKey || localActive;
+ const canContinue = (plan ? planComplete && agentReady && planApplied && applied?.outcome.failed.length === 0 : hasKey) || localActive;
return (
- <div className="space-y-8">
+ <div className="space-y-6">
{plans.length > 0 && (
- <StepSection label={t("onboarding.api_keys.plan_label")}>
+ <StepSection label={t("onboarding.api_keys.voice_label")}>
<p className="text-sm leading-relaxed text-muted-foreground">
{t("onboarding.api_keys.plan_explainer")}
</p>
- <div className="space-y-2" role="radiogroup" data-testid="onboarding-plan-picker">
+ <div className="mt-3 grid gap-2 sm:grid-cols-2" role="radiogroup" data-testid="onboarding-plan-picker">
{plans.map((p) => {
- const n = p.key_slots.length;
- const keysLabel =
- n === 1
- ? t("onboarding.api_keys.keys_one")
- : t("onboarding.api_keys.keys_n").replace("{0}", String(n));
- const modeLabel =
- p.mode === "realtime"
- ? t("onboarding.api_keys.mode_realtime")
- : t("onboarding.api_keys.mode_pipeline");
return (
<ChoiceRow
key={p.id}
selected={planId === p.id}
title={planLabel(p)}
badge={p.recommended ? t("onboarding.api_keys.recommended") : null}
- body={`${planSummary(p)} ${t("onboarding.api_keys.plan_keys_from").replace(
- "{0}",
- p.key_slots.map((s) => s.label).join(" + "),
- )}`}
- meta={
- <>
- <span className={n === 1 ? "text-primary" : undefined}>{keysLabel}</span>
- <span className="px-1.5 text-muted-foreground/50">·</span>
- {modeLabel}
- </>
- }
+ body={planSummary(p)}
+ meta={t("onboarding.api_keys.mode_realtime")}
onSelect={() => void choosePlan(p.id)}
testId={`onboarding-plan-${p.id}`}
/>
);
})}
- <ChoiceRow
- selected={planId === CUSTOM_PLAN}
- title={t("onboarding.api_keys.plan_custom_title")}
- body={t("onboarding.api_keys.plan_custom_body")}
- meta={t("onboarding.api_keys.keys_several")}
- onSelect={() => void choosePlan(CUSTOM_PLAN)}
- testId="onboarding-plan-custom"
- />
</div>
- <p className="text-sm leading-relaxed text-muted-foreground">
- {t("onboarding.api_keys.mode_explainer")}
- </p>
</StepSection>
)}
<StepSection
label={
plan
- ? t("onboarding.api_keys.plan_progress")
- .replace("{0}", String(configured.length))
- .replace("{1}", String(plan.key_slots.length))
+ ? t("onboarding.api_keys.voice_key_label")
: t("onboarding.api_keys.providers_label")
}
>
+ {plan && <p className="mb-2 flex items-center gap-2 text-sm text-muted-foreground"><Radio className="h-4 w-4" />{t("onboarding.api_keys.voice_key_hint")}</p>}
{loading && startable.length === 0 ? (
<p className="text-sm text-muted-foreground">{t("onboarding.api_keys.loading")}</p>
) : error && startable.length === 0 ? (
<StatusLine tone="warning">{t("onboarding.api_keys.load_failed")}</StatusLine>
) : (
- <ol className="border-y border-border/70" data-testid="onboarding-provider-list">
+ <>
+ {plan && startable[0] && (() => {
+ const p = startable[0];
+ const slot = primarySlot(p);
+ return slot ? (
+ <div className="rounded-xl border border-border bg-card p-4" data-testid="onboarding-live-key">
+ <div className="mb-3 flex items-center justify-between gap-3">
+ <span className="text-sm font-semibold text-foreground">{p.label}</span>
+ <span className="text-xs text-muted-foreground">{slotEffective(p) ? t("onboarding.api_keys.configured") : t("onboarding.api_keys.not_configured")}</span>
+ </div>
+ <ApiKeyForm
+ secretKey={slot}
+ dashboardUrl={p.dashboard_url}
+ configured={slotConfigured(p)}
+ effectiveConfigured={slotEffective(p)}
+ credentialHelp={p.credential_help}
+ coveredNote={p.credential_note ?? null}
+ sharedWith={p.secret_shared_with?.[slot] ?? []}
+ testAfterSave={{ id: p.id, label: p.label, section: p.tier, active: p.active }}
+ onChanged={() => void refetch()}
+ />
+ </div>
+ ) : null;
+ })()}
+ {!plan && <ol className="border-y border-border/70" data-testid="onboarding-provider-list">
{visible.map((p, index) => {
const isOpen = open === p.id;
const slot = primarySlot(p);
@@ -517,7 +547,8 @@ export function ApiKeysStep({ goNext, goBack, skip, setSummary, setGap }: StepPr
</li>
);
})}
- </ol>
+ </ol>}
+ </>
)}
{hidden > 0 && !expanded && (
<button
@@ -547,7 +578,7 @@ export function ApiKeysStep({ goNext, goBack, skip, setSummary, setGap }: StepPr
{t("onboarding.api_keys.plan_applied").replace("{0}", planLabel(plan))}
</StatusLine>
)}
- {plan && planApplied && applied && applied.outcome.failed.length > 0 && (
+ {plan && applied?.id === plan.id && applied.outcome.failed.length > 0 && (
<StatusLine tone="warning" testId="onboarding-plan-partial">
{t("onboarding.api_keys.plan_partial").replace(
"{0}",
@@ -558,6 +589,32 @@ export function ApiKeysStep({ goNext, goBack, skip, setSummary, setGap }: StepPr
{plan && planApplied && <ReadyCelebration inline />}
</StepSection>
+ {plan && (
+ <StepSection label={t("onboarding.api_keys.agents_label")}>
+ <div className="rounded-xl border border-border bg-card p-4">
+ <div className="flex flex-wrap items-start justify-between gap-3">
+ <div className="flex min-w-0 items-start gap-3">
+ <Bot className="mt-0.5 h-5 w-5 shrink-0 text-primary" />
+ <div>
+ <p className="text-sm font-semibold text-foreground">{t("onboarding.api_keys.agents_title")}</p>
+ <p className="mt-1 text-sm leading-relaxed text-muted-foreground">{t("onboarding.api_keys.agents_hint")}</p>
+ <p className="mt-2 text-xs text-muted-foreground" data-testid="onboarding-agent-status">
+ {agentReady ? t("onboarding.api_keys.agents_ready") : t("onboarding.api_keys.agents_missing")}
+ </p>
+ </div>
+ </div>
+ <Button variant="quiet" onClick={() => setAgentsOpen((value) => !value)}>
+ <KeyRound className="mr-1.5 h-4 w-4" />
+ {t(agentsOpen ? "onboarding.api_keys.agents_hide" : "onboarding.api_keys.agents_connect")}
+ </Button>
+ </div>
+ {agentsOpen && <div className="mt-5 border-t border-border pt-4" data-testid="onboarding-agent-options"><JarvisAgentSection hideHeader /></div>}
+ </div>
+ </StepSection>
+ )}
+
+ {plans.length > 0 && <button type="button" data-testid="onboarding-plan-custom" className="text-xs text-muted-foreground underline underline-offset-4 hover:text-foreground" onClick={() => void choosePlan(CUSTOM_PLAN)}>{t("onboarding.api_keys.plan_custom_title")}</button>}
+
{!plan && <LocalPath onActivated={() => setLocalActive(true)} />}
<p className="text-sm leading-relaxed text-muted-foreground">
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.json
index 0813b4bf30..00d834d916 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json
@@ -2909,9 +2909,9 @@
"hint": "Oberfläche und Antworten dürfen sich unterscheiden. Beides lässt sich später in den Einstellungen ändern."
},
"api-keys": {
- "label": "Dein Schlüssel",
- "title": "Ein Schlüssel genügt zum Start",
- "hint": "Füge einen API-Schlüssel eines Anbieters ein, den du schon nutzt — oder arbeite komplett lokal. Sprachanbieter kannst du später unter API-Schlüssel ergänzen."
+ "label": "Verbindungen",
+ "title": "Live-Sprache und Agenten einrichten",
+ "hint": "Wähle den Anbieter für Live-Sprache und verbinde danach einen API-Key oder ein Abo für Hintergrund-Agenten."
},
"permissions": {
"label": "Berechtigungen",
@@ -2963,6 +2963,17 @@
"summary": "{0} · Antworten {1}"
},
"api_keys": {
+ "voice_label": "01 · Real-Time-Sprache",
+ "voice_key_label": "Live-API-Key",
+ "voice_key_hint": "Ein Key für Live-Gespräche. OpenAI ist empfohlen; Gemini Live funktioniert ebenfalls.",
+ "agents_label": "02 · Sub-Agents",
+ "agents_title": "Agenten-Zugang verbinden",
+ "agents_hint": "Nutze einen separaten API-Key oder melde dich mit einem unterstützten Abo für Hintergrundaufgaben und Coding-Agenten an.",
+ "agents_ready": "Agenten-Zugang verbunden",
+ "agents_missing": "Für Agenten fehlt noch ein API-Key oder Abo",
+ "agents_connect": "Agenten verbinden",
+ "agents_hide": "Optionen ausblenden",
+ "gap_agents": "Live-Sprache ist eingerichtet, aber Sub-Agents brauchen noch einen API-Key oder ein Abo.",
"providers_label": "Anbieter",
"loading": "Anbieter werden geladen…",
"load_failed": "Die Anbieterliste konnte nicht geladen werden. Du kannst später unter API-Schlüssel einen Schlüssel hinzufügen.",
@@ -2983,16 +2994,16 @@
"local_missing_link": "Ollama holen",
"security_note": "Schlüssel liegen im Schlüsselbund deines Systems und gehen nur an den Anbieter, den du gewählt hast — nie in Chat oder Sprache.",
"later": "Später — Schlüssel in den Einstellungen hinzufügen",
- "later_hint": "Chat und Sprache bleiben aus, bis ein Schlüssel gespeichert ist.",
+ "later_hint": "Live-Sprache braucht einen Key; Sub-Agents brauchen einen separaten Key oder ein Abo.",
"summary_none": "Noch kein Schlüssel",
"summary_local": "Lokal · Ollama",
"plan_label": "Wie willst du starten?",
- "plan_custom_title": "Alles selbst auswählen",
+ "plan_custom_title": "Erweitert: Anbieter selbst wählen oder ein lokales Modell nutzen",
"plan_custom_body": "Die komplette Provider-Liste — jeden Teil einzeln wählen.",
"plan_applying": "Richte alles für {0} ein…",
- "plan_applied": "{0} ist eingerichtet: Denken, Tool-Modell, Agenten und Stimme zeigen alle auf deinen Schlüssel.",
+ "plan_applied": "{0} ist für Live-Sprache eingerichtet. Verbinde unten die Sub-Agents.",
"plan_partial": "Das meiste ist eingerichtet; das hier hat nicht geklappt: {0}. Du kannst es später unter API-Keys nachholen.",
- "plan_explainer": "Wähle, wie {name} laufen soll. Jede Option sagt, wie viele Schlüssel sie braucht und welche Sprach-Engine sie nutzt — die meisten brauchen genau einen Schlüssel.",
+ "plan_explainer": "Real-Time wird automatisch eingerichtet. Wähle den Anbieter für deine Live-Gespräche.",
"keys_one": "1 Schlüssel",
"keys_n": "{0} Schlüssel",
"keys_several": "Mehrere Schlüssel",
@@ -3001,7 +3012,7 @@
"plan_keys_from": "Schlüssel: {0}.",
"mode_explainer": "Pipeline = zuhören, denken, sprechen in drei Schritten; läuft mit jedem Anbieter. Realtime = ein Live-Sprachmodell, das antwortet, während du sprichst; das bieten nur Google Gemini und OpenAI — ein Claude- oder OpenRouter-Schlüssel allein kann kein Realtime.",
"plan_progress": "Schlüssel für diesen Plan · {0} von {1} gespeichert",
- "gap_none": "Kein API-Schlüssel gespeichert — Chat und Sprache bleiben aus, bis du unter API-Schlüssel einen einträgst.",
+ "gap_none": "Kein Live-API-Key gespeichert — Live-Sprache bleibt aus, bis du ihn unter API-Schlüssel hinzufügst.",
"gap_plan_partial": "Bei {0} fehlt der Schlüssel für {1} — die Teile, die ihn brauchen (zum Beispiel die Live-Stimme), bleiben aus, bis du ihn unter API-Schlüssel einträgst.",
"gap_custom": "Du hast die Anbieter selbst gewählt — Spracheingabe, Sprachausgabe und die Agenten brauchen eventuell eigene Schlüssel. Prüfe das unter API-Schlüssel."
},
@@ -3073,6 +3084,10 @@
"gap_skipped_wake_word": "Die Aktivierung wurde übersprungen — nutze das Anruf-Kürzel oder lege in den Einstellungen ein Aktivierungswort fest."
},
"plans": {
+ "openai_live_label": "OpenAI GPT-Live",
+ "openai_live_summary": "Live-Sprache und Denken mit einem OpenAI-API-Key.",
+ "gemini_live_label": "Gemini Live",
+ "gemini_live_summary": "Live-Sprache mit einem Google-Gemini-API-Key.",
"gemini_pipeline_label": "Pipeline mit Gemini",
"gemini_pipeline_summary": "Ein Google-Gemini-Schlüssel für alles: Denken, Tool-Modell, Agenten, Stimme rein und raus.",
"gemini_realtime_label": "Realtime mit Gemini",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.json
index b2aada5b73..ff98708503 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json
@@ -2942,9 +2942,9 @@
"hint": "Interface and replies can differ. Both can be changed later in Settings."
},
"api-keys": {
- "label": "Your key",
- "title": "One key gets you started",
- "hint": "Paste an API key from a provider you already use, or run fully local. Voice providers can be added later under API Keys."
+ "label": "Connections",
+ "title": "Set up live voice and agents",
+ "hint": "Choose your live voice provider, then connect an API key or subscription for background agents."
},
"permissions": {
"label": "Permissions",
@@ -2996,6 +2996,17 @@
"summary": "{0} · replies {1}"
},
"api_keys": {
+ "voice_label": "01 · Real-Time voice",
+ "voice_key_label": "Live API key",
+ "voice_key_hint": "One key for live conversation. OpenAI is recommended; Gemini Live works too.",
+ "agents_label": "02 · Sub-Agents",
+ "agents_title": "Connect agent access",
+ "agents_hint": "Use a separate API key or sign in with a supported subscription for background work and coding agents.",
+ "agents_ready": "Agent access connected",
+ "agents_missing": "Agent access still needs a key or subscription",
+ "agents_connect": "Connect agents",
+ "agents_hide": "Hide options",
+ "gap_agents": "Live voice is set up, but Sub-Agents still need an API key or subscription.",
"providers_label": "Providers",
"loading": "Loading providers…",
"load_failed": "The provider list could not be loaded. You can add a key later under API Keys.",
@@ -3016,16 +3027,16 @@
"local_missing_link": "Get Ollama",
"security_note": "Keys are stored in your system keychain and only ever sent to the provider you chose — never into chat or voice.",
"later": "Later — add a key in Settings",
- "later_hint": "Chat and voice stay off until a key is saved.",
+ "later_hint": "Live voice needs a key; Sub-Agents need a separate key or subscription.",
"summary_none": "No key yet",
"summary_local": "Local · Ollama",
"plan_label": "How do you want to start?",
- "plan_custom_title": "Pick everything myself",
+ "plan_custom_title": "Advanced: configure providers myself or use a local model",
"plan_custom_body": "The full provider list — choose each part on its own.",
"plan_applying": "Setting everything up for {0}…",
- "plan_applied": "{0} is set up: thinking, tool model, agents and voice all point at your key.",
+ "plan_applied": "{0} is set up for live voice. Connect Sub-Agents below.",
"plan_partial": "Most of it is set; this did not apply: {0}. You can fix it later under API Keys.",
- "plan_explainer": "Pick how {name} should run. Each option says how many keys it needs and which voice engine it uses — most people need exactly one key.",
+ "plan_explainer": "Real-Time is set automatically. Choose the provider for your live conversation.",
"keys_one": "1 key",
"keys_n": "{0} keys",
"keys_several": "Several keys",
@@ -3034,7 +3045,7 @@
"plan_keys_from": "Keys: {0}.",
"mode_explainer": "Pipeline = listen, think, speak in three steps; works with any provider. Realtime = one live voice model that answers while you speak; only Google Gemini and OpenAI offer one — a Claude or OpenRouter key alone cannot run Realtime.",
"plan_progress": "Keys for this plan · {0} of {1} saved",
- "gap_none": "No API key saved — chat and voice stay off until you add one under API Keys.",
+ "gap_none": "No live API key saved — live voice stays off until you add one under API Keys.",
"gap_plan_partial": "{0} is missing the {1} key — the parts that need it (live voice, for one) stay off until you add it under API Keys.",
"gap_custom": "You picked providers yourself — voice in, voice out and the agents may still need their own keys. Check under API Keys."
},
@@ -3106,6 +3117,10 @@
"gap_skipped_wake_word": "Activation was skipped — use the Call shortcut, or set a wake word under Settings."
},
"plans": {
+ "openai_live_label": "OpenAI GPT-Live",
+ "openai_live_summary": "Live voice and thinking with one OpenAI API key.",
+ "gemini_live_label": "Gemini Live",
+ "gemini_live_summary": "Live voice with one Google Gemini API key.",
"gemini_pipeline_label": "Pipeline with Gemini",
"gemini_pipeline_summary": "One Google Gemini key runs everything: thinking, the tool model, the agents, voice in and voice out.",
"gemini_realtime_label": "Realtime with Gemini",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.json
index 237d663f43..de7728d387 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json
@@ -1,13 +1,48 @@
{
"live": {
+ "active": "Activo",
+ "pipeline_fallback": "Esta conversación usa Pipeline como alternativa. Los cambios se aplican a la próxima conversación.",
"open_browser": "Abrir voz en el navegador",
- "loading": "Cargando ajustes de voz…", "description": "Conversación natural, tu modelo de razonamiento y las herramientas de Jarvis con una sola clave de OpenAI.",
- "key_required": "Conecta tu clave de OpenAI abajo para activar GPT-Live.", "voice_model": "Modelo de voz", "voice": "Voz", "thinking_model": "Modelo de razonamiento",
- "choose_model": "Selecciona un modelo", "reasoning": "Esfuerzo de razonamiento", "model_default": "Predeterminado del modelo", "web_search": "Búsqueda web",
- "prompts": "Personalizar instrucciones", "conversation_prompt": "Estilo de conversación", "backend_prompt": "Instrucciones de razonamiento y herramientas",
- "billing": "La duración de voz y el modelo se facturan por separado. El control del ordenador usa el mismo modelo. OpenAI no almacena una grabación de la conversación.",
- "save": "Guardar y usar GPT-Live", "saved": "Guardado para la próxima llamada. Se guardó una copia de la configuración anterior.",
- "use_for_agents": "Usar esta clave y modelo para agentes y chat de texto", "agent_saved": "Los agentes y el chat ahora usan este modelo de OpenAI."
+ "loading": "Cargando ajustes de voz…",
+ "description": "Conversación natural, tu modelo de razonamiento y las herramientas de Jarvis con una sola clave de OpenAI.",
+ "key_required": "Conecta arriba tu clave de OpenAI para voz y razonamiento.",
+ "voice_model": "Modelo de voz",
+ "voice": "Voz",
+ "thinking_model": "Modelo de razonamiento",
+ "choose_model": "Selecciona un modelo",
+ "reasoning": "Esfuerzo de razonamiento",
+ "model_default": "Predeterminado del modelo",
+ "web_search": "Búsqueda web",
+ "prompts": "Avanzado · instrucciones e ID del modelo",
+ "conversation_prompt": "Estilo de conversación",
+ "backend_prompt": "Instrucciones de razonamiento y herramientas",
+ "billing": "El tiempo de voz y el razonamiento se facturan por separado. La grabación en la nube está desactivada.",
+ "save": "Guardar y usar GPT-Live",
+ "saved": "Guardado. La próxima conversación usará estos ajustes.",
+ "use_for_agents": "Usar esta clave y modelo para agentes y chat de texto",
+ "agent_saved": "Los agentes y el chat ahora usan este modelo de OpenAI.",
+ "setup_title": "Voz y razonamiento",
+ "setup_description": "Elige cómo Jarvis escucha, responde y utiliza tus herramientas.",
+ "provider_selection": "Configurar proveedor de voz",
+ "call_active": "Conversación en curso",
+ "next_call": "Cambios desde la próxima conversación",
+ "connected": "Clave conectada",
+ "connect": "Configurar",
+ "local_provider": "En tu equipo",
+ "show_cloud": "Mostrar proveedores en la nube",
+ "agents_separate": "El chat de texto y las tareas en segundo plano usan tu selección en Agents. La voz tiene sus propios modelos.",
+ "shared_key_ready": "OpenAI conectado · una clave para voz y razonamiento",
+ "shared_key_help": "Esta clave de OpenAI sirve a GPT-Live y a su modelo de razonamiento.",
+ "manage_key": "Gestionar clave",
+ "conversation_heading": "Conversación",
+ "conversation_help": "Escucha continua y habla natural, incluso con interrupciones.",
+ "thinking_heading": "Razonamiento y herramientas",
+ "thinking_help": "Este modelo razona, usa las herramientas de Jarvis y controla el ordenador con la misma clave.",
+ "search_models": "Buscar modelos de razonamiento…",
+ "web_search_help": "Permite al modelo buscar información actualizada en la web.",
+ "custom_model": "ID de modelo personalizado",
+ "ready": "Guardado y activo",
+ "save_changes": "Guardar cambios"
},
"input_isolation": {
"title": "Las herramientas de dictado y escritura no alcanzan esta ventana",
@@ -79,7 +114,13 @@
"detached_title": "Esta vista está abierta en su propia ventana",
"detached_body": "Sigue trabajando allí o tráela de vuelta aquí.",
"detach_focus": "Mostrar ventana",
- "detach_bring_back": "Traer de vuelta"
+ "detach_bring_back": "Traer de vuelta",
+ "minimize": "Minimizar",
+ "maximize": "Maximizar",
+ "restore": "Restaurar",
+ "close": "Cerrar",
+ "nav_back": "Atrás",
+ "nav_forward": "Adelante"
},
"nav": {
"chat_workspace": "Chat",
@@ -2909,9 +2950,9 @@
"hint": "La interfaz y las respuestas pueden diferir. Ambos se pueden cambiar después en Ajustes."
},
"api-keys": {
- "label": "Tu clave",
- "title": "Una clave basta para empezar",
- "hint": "Pega una clave API de un proveedor que ya uses, o trabaja totalmente en local. Los proveedores de voz se pueden añadir después en Claves API."
+ "label": "Conexiones",
+ "title": "Configura la voz en directo y los agentes",
+ "hint": "Elige el proveedor de voz y conecta una clave API o suscripción para los agentes en segundo plano."
},
"permissions": {
"label": "Permisos",
@@ -2963,6 +3004,17 @@
"summary": "{0} · respuestas {1}"
},
"api_keys": {
+ "voice_label": "01 · Voz en tiempo real",
+ "voice_key_label": "Clave API de voz",
+ "voice_key_hint": "Una clave para hablar en directo. Se recomienda OpenAI; Gemini Live también funciona.",
+ "agents_label": "02 · Subagentes",
+ "agents_title": "Conecta el acceso para agentes",
+ "agents_hint": "Usa una clave API independiente o inicia sesión con una suscripción compatible para tareas en segundo plano y agentes de programación.",
+ "agents_ready": "Acceso para agentes conectado",
+ "agents_missing": "Los agentes aún necesitan una clave API o suscripción",
+ "agents_connect": "Conectar agentes",
+ "agents_hide": "Ocultar opciones",
+ "gap_agents": "La voz en directo está configurada, pero los subagentes aún necesitan una clave API o suscripción.",
"providers_label": "Proveedores",
"loading": "Cargando proveedores…",
"load_failed": "No se pudo cargar la lista de proveedores. Puedes añadir una clave después en Claves API.",
@@ -2983,16 +3035,16 @@
"local_missing_link": "Obtener Ollama",
"security_note": "Las claves se guardan en el llavero de tu sistema y solo se envían al proveedor que elegiste — nunca al chat ni a la voz.",
"later": "Más tarde — añadir una clave en Ajustes",
- "later_hint": "El chat y la voz permanecen desactivados hasta que se guarde una clave.",
+ "later_hint": "La voz en directo necesita una clave; los subagentes necesitan otra clave o una suscripción.",
"summary_none": "Aún sin clave",
"summary_local": "Local · Ollama",
"plan_label": "¿Cómo quieres empezar?",
- "plan_custom_title": "Elegir todo yo mismo",
+ "plan_custom_title": "Avanzado: elegir proveedores o usar un modelo local",
"plan_custom_body": "La lista completa de proveedores — elige cada parte por separado.",
"plan_applying": "Configurando todo para {0}…",
- "plan_applied": "{0} está configurado: pensar, modelo de herramientas, agentes y voz apuntan a tu clave.",
+ "plan_applied": "{0} está configurado para voz en directo. Conecta los subagentes abajo.",
"plan_partial": "Casi todo está listo; esto no se aplicó: {0}. Puedes arreglarlo después en Claves API.",
- "plan_explainer": "Elige cómo debe funcionar {name}. Cada opción indica cuántas claves necesita y qué motor de voz usa — la mayoría necesita exactamente una clave.",
+ "plan_explainer": "El modo en tiempo real se configura automáticamente. Elige el proveedor para tus conversaciones en directo.",
"keys_one": "1 clave",
"keys_n": "{0} claves",
"keys_several": "Varias claves",
@@ -3001,7 +3053,7 @@
"plan_keys_from": "Claves: {0}.",
"mode_explainer": "Pipeline = escuchar, pensar, hablar en tres pasos; funciona con cualquier proveedor. Realtime = un modelo de voz en directo que responde mientras hablas; solo Google Gemini y OpenAI lo ofrecen — una clave de Claude u OpenRouter por sí sola no puede ejecutar Realtime.",
"plan_progress": "Claves para este plan · {0} de {1} guardadas",
- "gap_none": "No hay ninguna clave API guardada — el chat y la voz permanecen desactivados hasta que añadas una en Claves API.",
+ "gap_none": "No hay ninguna clave API de voz guardada — la voz en directo seguirá desactivada hasta que la añadas en Claves API.",
"gap_plan_partial": "A {0} le falta la clave de {1} — las partes que la necesitan (por ejemplo la voz en directo) permanecen desactivadas hasta que la añadas en Claves API.",
"gap_custom": "Elegiste los proveedores tú mismo — la entrada de voz, la salida de voz y los agentes pueden necesitar sus propias claves. Compruébalo en Claves API."
},
@@ -3073,6 +3125,10 @@
"gap_skipped_wake_word": "Se omitió la activación — usa el atajo de Llamada o define una palabra de activación en Ajustes."
},
"plans": {
+ "openai_live_label": "OpenAI GPT-Live",
+ "openai_live_summary": "Voz en directo y razonamiento con una clave API de OpenAI.",
+ "gemini_live_label": "Gemini Live",
+ "gemini_live_summary": "Voz en directo con una clave API de Google Gemini.",
"gemini_pipeline_label": "Pipeline con Gemini",
"gemini_pipeline_summary": "Una clave de Google Gemini lo hace todo: pensar, el modelo de herramientas, los agentes, voz de entrada y salida.",
"gemini_realtime_label": "Realtime con Gemini",
diff --git a/tests/integration/test_starter_plan_routes.py b/tests/integration/test_starter_plan_routes.py
index d99bcd5bcc..7d1d1afeaf 100644
--- a/tests/integration/test_starter_plan_routes.py
+++ b/tests/integration/test_starter_plan_routes.py
@@ -46,24 +46,22 @@ def _all_ok(names: tuple[str, ...]) -> _Snapshot:
def test_starter_plans_report_which_keys_exist(server, state_path, secrets) -> None:
- secrets["gemini_api_key"] = "AIza-1"
+ secrets["openai_api_key"] = "sk-test"
with TestClient(server.app) as client:
body = client.get("/api/setup/starter-plans").json()
plans = {p["id"]: p for p in body["plans"]}
- assert plans["gemini-pipeline"]["recommended"] is True
- assert plans["gemini-pipeline"]["keys_complete"] is True
- assert plans["gemini-pipeline"]["key_slots"][0]["slot"] == "gemini_api_key"
- two = plans["gemini-openai-realtime"]
- assert two["keys_complete"] is False
- assert [s["present"] for s in two["key_slots"]] == [True, False]
+ assert plans["openai-live"]["recommended"] is True
+ assert plans["openai-live"]["keys_complete"] is True
+ assert plans["openai-live"]["key_slots"][0]["slot"] == "openai_api_key"
+ assert plans["gemini-live"]["keys_complete"] is False
assert body["selected"] is None
def test_select_starter_plan_persists_and_rejects_unknown(server, state_path) -> None:
with TestClient(server.app) as client:
assert client.post("/api/setup/starter-plans/nope").status_code == 404
- assert client.post("/api/setup/starter-plans/gemini-pipeline").json()["selected"] == (
- "gemini-pipeline"
+ assert client.post("/api/setup/starter-plans/openai-live").json()["selected"] == (
+ "openai-live"
)
assert client.post("/api/setup/starter-plans/custom").status_code == 200
assert client.get("/api/setup/starter-plans").json()["selected"] == "custom"
diff --git a/tests/unit/setup/test_starter_plans.py b/tests/unit/setup/test_starter_plans.py
index f4bad722f3..fa918a3ac6 100644
--- a/tests/unit/setup/test_starter_plans.py
+++ b/tests/unit/setup/test_starter_plans.py
@@ -63,7 +63,8 @@ def test_every_ready_section_is_a_known_section_health_key() -> None:
def test_exactly_one_recommended_plan() -> None:
assert sum(1 for p in STARTER_PLANS if p.recommended) == 1
- assert get_plan("gemini-pipeline") is not None
+ assert get_plan("openai-live") is not None
+ assert get_plan("openai-live").assignments["realtime"] == "openai-live"
assert plan_ready_sections("pipeline") == ("brain", "computer-use", "tts", "stt")
assert plan_ready_sections("nope") == ()
@@ -72,9 +73,9 @@ def test_state_roundtrip_and_reset(tmp_path) -> None:
p = tmp_path / "setup_state.json"
assert st.get_starter_plan(p) is None
assert st.is_ready_celebrated(p) is False
- st.set_starter_plan("gemini-pipeline", p)
+ st.set_starter_plan("openai-live", p)
st.mark_ready_celebrated(p)
- assert st.get_starter_plan(p) == "gemini-pipeline"
+ assert st.get_starter_plan(p) == "openai-live"
assert st.is_ready_celebrated(p) is True
removed = st.reset_onboarding(p)
assert "starter_plan" in removed and "ready_celebrated_at" in removed