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(frontend): Jarvis-Agents section, API-keys & thinking-steps UI
Ruben Lütkefcd14c58c16a
diff --git a/jarvis/ui/web/frontend/src/components/JarvisAgentSection.model.test.tsx b/jarvis/ui/web/frontend/src/components/JarvisAgentSection.model.test.tsxindex 0471c5dc62..ef6c432f25 100644--- a/jarvis/ui/web/frontend/src/components/JarvisAgentSection.model.test.tsx+++ b/jarvis/ui/web/frontend/src/components/JarvisAgentSection.model.test.tsx@@ -45,9 +45,9 @@ const MODELS = {function mockFetch() {return vi.fn().mockImplementation(async (url: string) => {const u = String(url);- if (u.includes("/api/openclaw/status")) return { ok: true, json: async () => STATUS };+ if (u.includes("/api/jarvis-agent/status")) return { ok: true, json: async () => STATUS };if (u.includes("/models")) return { ok: true, json: async () => MODELS };- if (u.includes("/api/subagent/model")) {+ if (u.includes("/api/jarvis-agent/model")) {return {ok: true,json: async () => ({@@ -78,7 +78,7 @@ describe("JarvisAgentSection — dedicated subagent LLM dropdown", () => {expect(await screen.findByText("claude-opus-4-8")).toBeTruthy();});- it("saves a picked model via POST /api/subagent/model", async () => {+ it("saves a picked model via POST /api/jarvis-agent/model", async () => {const fetchMock = mockFetch();vi.stubGlobal("fetch", fetchMock);render(<JarvisAgentSection />);@@ -91,7 +91,7 @@ describe("JarvisAgentSection — dedicated subagent LLM dropdown", () => {await waitFor(() => {const post = fetchMock.mock.calls.find((c) =>- String(c[0]).includes("/api/subagent/model") &&+ String(c[0]).includes("/api/jarvis-agent/model") &&(c[1] as RequestInit | undefined)?.method === "POST",);expect(post).toBeDefined();diff --git a/jarvis/ui/web/frontend/src/components/JarvisAgentSection.tsx b/jarvis/ui/web/frontend/src/components/JarvisAgentSection.tsxindex 23973b4431..cfaba214b8 100644--- a/jarvis/ui/web/frontend/src/components/JarvisAgentSection.tsx+++ b/jarvis/ui/web/frontend/src/components/JarvisAgentSection.tsx@@ -30,11 +30,11 @@ import { ProviderBillingBadge } from "@/components/ProviderBillingBadge";* being stuck on one. There is no key input — sub-agent workers reuse the* brain-provider keys entered above (`key_set` mirrors that state).*- * Data source is `GET /api/openclaw/status`; the switch posts to- * `POST /api/subagent/switch` (3-layer persist). This is its own section+ * Data source is `GET /api/jarvis-agent/status`; the switch posts to+ * `POST /api/jarvis-agent/switch` (3-layer persist). This is its own section* rather than a fourth `ProviderTier` because the status payload differs.* The endpoint path and the JSON keys below are the server contract; the- * user-facing UI never says anything but "Subagent".+ * user-facing UI never says anything but "Jarvis-Agent".*/interface SubagentMappingRow {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.tsxindex 89eda282c5..cc5df7fa3b 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@@ -46,11 +46,11 @@ vi.mock("@/components/ApiKeyForm", () => ({<div data-testid="keyform">{secretKey}</div>),}));-// The subagent section fetches /api/openclaw/status on mount, which jsdom has no+// The subagent section fetches /api/jarvis-agent/status on mount, which jsdom has no// server for. Stub it so the step renders deterministically; its real behaviour-// is covered by SubagentSection's own tests.-vi.mock("@/components/SubagentSection", () => ({- SubagentSection: () => <div data-testid="subagent-section" />,+// is covered by JarvisAgentSection's own tests.+vi.mock("@/components/JarvisAgentSection", () => ({+ JarvisAgentSection: () => <div data-testid="subagent-section" />,}));vi.mock("@/hooks/useProviders", () => ({useProviders: () => ({@@ -90,9 +90,9 @@ it("shows every provider class and the subagent section at once", () => {renderStep();// All three tier headers are visible simultaneously — no paging.- expect(screen.getByText("Brain — reasoning")).toBeTruthy();- expect(screen.getByText("Voice — text to speech")).toBeTruthy();- expect(screen.getByText("Hearing — speech to text")).toBeTruthy();+ expect(screen.getByText("Brain")).toBeTruthy();+ expect(screen.getByText("Voice")).toBeTruthy();+ expect(screen.getByText("Hearing")).toBeTruthy();// ...and their providers, in order, in the same scroll container.expect(screen.getByText("Claude")).toBeTruthy();diff --git a/jarvis/ui/web/frontend/src/components/onboarding/steps/ApiKeysStep.tsx b/jarvis/ui/web/frontend/src/components/onboarding/steps/ApiKeysStep.tsxindex 4a9d51861b..9c175f0cf9 100644--- a/jarvis/ui/web/frontend/src/components/onboarding/steps/ApiKeysStep.tsx+++ b/jarvis/ui/web/frontend/src/components/onboarding/steps/ApiKeysStep.tsx@@ -101,7 +101,7 @@ export function ApiKeysStep({ goNext, skip }: StepProps) {);})}- {/* Subagent (Heavy-Task worker) — own data source (/api/openclaw/status),+ {/* Jarvis-Agent (Heavy-Task worker) — own data source (/api/jarvis-agent/status),rendered as a sibling section so the onboarding key step matches thefull Settings → API Keys layout. */}<JarvisAgentSection />diff --git a/jarvis/ui/web/frontend/src/components/sessions/TurnCard.test.tsx b/jarvis/ui/web/frontend/src/components/sessions/TurnCard.test.tsxindex dc5b34c082..0524c3ca06 100644--- a/jarvis/ui/web/frontend/src/components/sessions/TurnCard.test.tsx+++ b/jarvis/ui/web/frontend/src/components/sessions/TurnCard.test.tsx@@ -127,7 +127,7 @@ describe("TurnCard spoken track", () => {/>,);// Attributed label, not the generic "Background result".- expect(screen.getByText("Jarvis Sub-Agent / Output")).toBeTruthy();+ expect(screen.getByText("Jarvis-Agent / Output")).toBeTruthy();// The line block is tinted violet (agent) — visibly distinct from the sky// tint used by every other spoken kind.const line = container.querySelector('[data-spoken-kind="subagent"]');diff --git a/jarvis/ui/web/frontend/src/lib/thinkingSteps.test.ts b/jarvis/ui/web/frontend/src/lib/thinkingSteps.test.tsindex d47166e630..40cd987fff 100644--- a/jarvis/ui/web/frontend/src/lib/thinkingSteps.test.ts+++ b/jarvis/ui/web/frontend/src/lib/thinkingSteps.test.ts@@ -132,10 +132,10 @@ describe("reduceThinkingSteps", () => {expect(cu[0].status).toBe("active");});- it("pairs OpenClaw worker start/completion and converts duration_s to ms", () => {+ it("pairs Jarvis-Agent worker start/completion and converts duration_s to ms", () => {const steps = run([- ["OpenClawTaskStarted", { utterance: "build a flask app" }],- ["OpenClawTaskCompleted", { success: true, duration_s: 44.8 }],+ ["JarvisAgentTaskStarted", { utterance: "build a flask app" }],+ ["JarvisAgentTaskCompleted", { success: true, duration_s: 44.8 }],]);expect(steps).toHaveLength(1);expect(steps[0]).toMatchObject({diff --git a/jarvis/ui/web/frontend/src/lib/thinkingSteps.ts b/jarvis/ui/web/frontend/src/lib/thinkingSteps.tsindex 4341f8a43a..a0ed7fd948 100644--- a/jarvis/ui/web/frontend/src/lib/thinkingSteps.ts+++ b/jarvis/ui/web/frontend/src/lib/thinkingSteps.ts@@ -277,7 +277,7 @@ export function reduceThinkingSteps(return upsertComputer(steps, labelKey, `#${idx + 1}`, tsMs);}- case "OpenClawTaskStarted":+ case "JarvisAgentTaskStarted":return push(steps, {id: nextId(),kind: "worker",@@ -287,7 +287,7 @@ export function reduceThinkingSteps(startedTs: tsMs,});- case "OpenClawTaskCompleted":+ case "JarvisAgentTaskCompleted":return complete(steps, "worker", tsMs, {durationMs: num(p.duration_s) * 1000 || undefined,error: p.success === false,diff --git a/jarvis/ui/web/frontend/src/views/ApiKeysView.antigravity.test.tsx b/jarvis/ui/web/frontend/src/views/ApiKeysView.antigravity.test.tsxindex 0b327bad9c..db026d39fa 100644--- a/jarvis/ui/web/frontend/src/views/ApiKeysView.antigravity.test.tsx+++ b/jarvis/ui/web/frontend/src/views/ApiKeysView.antigravity.test.tsx@@ -183,11 +183,11 @@ function routesFor(): Record<string, () => RouteResult> {return {"/api/providers": () => ({ body: { providers: [provider] } }),- "/api/openclaw/status": () => ({ body: OPENCLAW_EMPTY }),+ "/api/jarvis-agent/status": () => ({ body: OPENCLAW_EMPTY }),"/api/antigravity/status": () => ({body: provider.antigravity_status ?? {},}),- "/api/subagent/switch": () => ({+ "/api/jarvis-agent/switch": () => ({body: { ok: true, active: "antigravity", persisted: true },}),"/api/antigravity/login": () => ({@@ -213,7 +213,7 @@ describe("ApiKeysView — Antigravity (Google subscription) OAuth card", () => {installFetchMock(routesFor(antigravityDescriptor()));render(<ApiKeysView />);// Antigravity lives in the "Subagents" category tab now; open it first.- fireEvent.click(screen.getByRole("tab", { name: /subagents/i }));+ fireEvent.click(screen.getByRole("tab", { name: /jarvis-agents/i }));await waitFor(() =>expect(screen.getByText("Antigravity (Subscription)")).toBeTruthy(),@@ -231,7 +231,7 @@ describe("ApiKeysView — Antigravity (Google subscription) OAuth card", () => {const { calls } = installFetchMock(routesFor(antigravityDescriptor()));render(<ApiKeysView />);// Antigravity lives in the "Subagents" category tab now; open it first.- fireEvent.click(screen.getByRole("tab", { name: /subagents/i }));+ fireEvent.click(screen.getByRole("tab", { name: /jarvis-agents/i }));await waitFor(() => screen.getByRole("radio"));fireEvent.click(screen.getByRole("radio"));@@ -240,7 +240,7 @@ describe("ApiKeysView — Antigravity (Google subscription) OAuth card", () => {expect(calls.some((c) =>- c.url.startsWith("/api/subagent/switch") &&+ c.url.startsWith("/api/jarvis-agent/switch") &&c.method === "POST" &&(c.body as { provider?: string })?.provider === "antigravity",),@@ -252,7 +252,7 @@ describe("ApiKeysView — Antigravity (Google subscription) OAuth card", () => {const { calls } = installFetchMock(routesFor(antigravityNotConnected()));render(<ApiKeysView />);// Antigravity lives in the "Subagents" category tab now; open it first.- fireEvent.click(screen.getByRole("tab", { name: /subagents/i }));+ fireEvent.click(screen.getByRole("tab", { name: /jarvis-agents/i }));await waitFor(() =>expect(screen.getByText("Connect")).toBeTruthy(),@@ -273,7 +273,7 @@ describe("ApiKeysView — Antigravity (Google subscription) OAuth card", () => {installFetchMock(routesFor(antigravityMissing()));render(<ApiKeysView />);// Antigravity lives in the "Subagents" category tab now; open it first.- fireEvent.click(screen.getByRole("tab", { name: /subagents/i }));+ fireEvent.click(screen.getByRole("tab", { name: /jarvis-agents/i }));const connectBtn = await waitFor(() =>screen.getByText("Connect"),@@ -288,7 +288,7 @@ describe("ApiKeysView — Antigravity (Google subscription) OAuth card", () => {const { calls } = installFetchMock(routesFor(antigravityDescriptor()));render(<ApiKeysView />);// Antigravity lives in the "Subagents" category tab now; open it first.- fireEvent.click(screen.getByRole("tab", { name: /subagents/i }));+ fireEvent.click(screen.getByRole("tab", { name: /jarvis-agents/i }));const disconnect = await waitFor(() => screen.getByText("Disconnect"));fireEvent.click(disconnect);diff --git a/jarvis/ui/web/frontend/src/views/ApiKeysView.codex.test.tsx b/jarvis/ui/web/frontend/src/views/ApiKeysView.codex.test.tsxindex 066eb5de88..82c8812542 100644--- a/jarvis/ui/web/frontend/src/views/ApiKeysView.codex.test.tsx+++ b/jarvis/ui/web/frontend/src/views/ApiKeysView.codex.test.tsx@@ -167,12 +167,12 @@ function routesFor(): Record<string, () => RouteResult> {return {"/api/providers": () => ({ body: { providers: [provider] } }),- "/api/openclaw/status": () => ({ body: OPENCLAW_CODEX }),+ "/api/jarvis-agent/status": () => ({ body: OPENCLAW_CODEX }),"/api/codex/status": () => ({body: provider.codex_status ?? {},}),"/api/antigravity/status": () => ({ body: {} }),- "/api/subagent/switch": () => ({+ "/api/jarvis-agent/switch": () => ({body: { ok: true, active: "openai-codex", persisted: true },}),"/api/codex/login": () => ({@@ -202,7 +202,7 @@ describe("ApiKeysView - Codex is subagent-only", () => {installFetchMock(routesFor(codexDescriptor()));render(<ApiKeysView />);// Codex lives in the "Subagents" category tab now; open it first.- fireEvent.click(screen.getByRole("tab", { name: /subagents/i }));+ fireEvent.click(screen.getByRole("tab", { name: /jarvis-agents/i }));await waitFor(() => expect(screen.getByText("OpenAI Codex (Subscription)")).toBeTruthy());@@ -214,7 +214,7 @@ describe("ApiKeysView - Codex is subagent-only", () => {const { calls } = installFetchMock(routesFor(codexDescriptor()));render(<ApiKeysView />);// Codex lives in the "Subagents" category tab now; open it first.- fireEvent.click(screen.getByRole("tab", { name: /subagents/i }));+ fireEvent.click(screen.getByRole("tab", { name: /jarvis-agents/i }));await waitFor(() => screen.getByRole("radio"));fireEvent.click(screen.getByRole("radio"));@@ -223,7 +223,7 @@ describe("ApiKeysView - Codex is subagent-only", () => {expect(calls.some((c) =>- c.url.startsWith("/api/subagent/switch") &&+ c.url.startsWith("/api/jarvis-agent/switch") &&c.method === "POST" &&(c.body as { provider?: string })?.provider === "openai-codex",),@@ -236,7 +236,7 @@ describe("ApiKeysView - Codex is subagent-only", () => {const { calls } = installFetchMock(routesFor(codexDescriptorNotConnected()));render(<ApiKeysView />);// Codex lives in the "Subagents" category tab now; open it first.- fireEvent.click(screen.getByRole("tab", { name: /subagents/i }));+ fireEvent.click(screen.getByRole("tab", { name: /jarvis-agents/i }));const connect = await waitFor(() => screen.getByText("Connect"));fireEvent.click(connect);@@ -254,7 +254,7 @@ describe("ApiKeysView - Codex is subagent-only", () => {const { calls } = installFetchMock(routesFor(codexDescriptor()));render(<ApiKeysView />);// Codex lives in the "Subagents" category tab now; open it first.- fireEvent.click(screen.getByRole("tab", { name: /subagents/i }));+ fireEvent.click(screen.getByRole("tab", { name: /jarvis-agents/i }));const disconnect = await waitFor(() => screen.getByText("Disconnect"));fireEvent.click(disconnect);diff --git a/jarvis/ui/web/frontend/src/views/sub-agents/tool-icons.ts b/jarvis/ui/web/frontend/src/views/sub-agents/tool-icons.tsindex 2085b70f00..0075c0bf5d 100644--- a/jarvis/ui/web/frontend/src/views/sub-agents/tool-icons.ts+++ b/jarvis/ui/web/frontend/src/views/sub-agents/tool-icons.ts@@ -75,7 +75,7 @@ export function getToolAppearance(if (matches(args, "openclaw")) {return {Icon: Code2,- label: "OpenClaw",+ label: "Jarvis-Agent",bg: "bg-orange-950",ring: "ring-orange-500",iconColor: "text-orange-300",@@ -113,7 +113,7 @@ export function getToolAppearance(if (tool === "spawn_openclaw" || tool === "spawn-openclaw") {return {Icon: Brain,- label: "OpenClaw",+ label: "Jarvis-Agent",bg: "bg-violet-950",ring: "ring-violet-500",iconColor: "text-violet-300",