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(ui): the pet plays its working row while Jarvis thinks or works
rubenluetke10-beep92244390dc35
diff --git a/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.test.tsx b/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.test.tsxindex 53b9291943..eeee47dbc7 100644--- a/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.test.tsx@@ -220,12 +220,12 @@ describe("rail look", () => {expect(container.querySelector("[data-trace-pet]")).toBeNull();});- it("lets the pet think, search, work and talk along with the live step", () => {- expect(livePetState([])).toBe("thinking");- expect(livePetState([{ ...thought, live: true } as TurnBlock])).toBe("thinking");- expect(livePetState([tool("s", { name: "grep", output: null })])).toBe("searching");- expect(livePetState([tool("x", { name: "exec_command", output: null })])).toBe("working");- expect(livePetState([tool("x", { name: "exec_command" })])).toBe("thinking");+ it("plays the pet's working row while Jarvis thinks or works, talking while it answers", () => {+ expect(livePetState([])).toBe("working");+ expect(livePetState([{ ...thought, live: true } as TurnBlock])).toBe("working");+ expect(livePetState([tool("s", { name: "grep", output: null })])).toBe("working");+ expect(livePetState([tool("x", { name: "exec_command" })])).toBe("working");+ expect(livePetState([reply("empty", " ")])).toBe("working");expect(livePetState([reply("r", "Here it is")])).toBe("talking");});diff --git a/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.tsx b/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.tsxindex 70c83709d1..3b5eb4112e 100644--- a/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.tsx+++ b/jarvis/ui/web/frontend/src/components/agentchat/WorkTrace.tsx@@ -202,18 +202,14 @@ function Node({ children, live = false }: { children: ReactNode; live?: boolean}/**- * What the user's pet does on a live Jarvis trace: it thinks while the model- * reasons (or before anything has arrived), searches while a search or- * listing runs, works through any other tool, and talks while the reply- * streams in.+ * What the user's pet does on a live Jarvis trace: it plays its working row+ * whenever Jarvis thinks or works — reasoning, a tool call, the wait before+ * anything has arrived (the maintainer's choice, 2026-10-02) — and talks+ * while the reply streams in.*/export function livePetState(blocks: TurnBlock[]): PetState {const last = blocks[blocks.length - 1];- if (!last || last.kind === "reasoning") return "thinking";- if (last.kind === "text") return last.text.trim() ? "talking" : "thinking";- if (last.output !== null) return "thinking";- const family = operation(last.name);- return family === "search" || family === "list" ? "searching" : "working";+ return last?.kind === "text" && last.text.trim() ? "talking" : "working";}/** The words of whatever is happening right now, with a slow light sweep. */diff --git a/jarvis/ui/web/frontend/src/components/home/VoiceStage.tsx b/jarvis/ui/web/frontend/src/components/home/VoiceStage.tsxindex d31b6ca235..eb1ff47e24 100644--- a/jarvis/ui/web/frontend/src/components/home/VoiceStage.tsx+++ b/jarvis/ui/web/frontend/src/components/home/VoiceStage.tsx@@ -162,7 +162,7 @@ export function VoiceStage({ onExit }: { onExit?: () => void } = {}) {)}{active && (voiceState === "thinking" || voiceState === "speaking") && !traceShowsPet && (<div className="pl-0.5" data-testid="voice-turn-indicator" aria-hidden>- <PetMark size={48} state={voiceState === "speaking" ? "talking" : "thinking"} />+ <PetMark size={48} state={voiceState === "speaking" ? "talking" : "working"} /></div>)}</div>diff --git a/jarvis/ui/web/frontend/src/components/pets/PetMark.test.tsx b/jarvis/ui/web/frontend/src/components/pets/PetMark.test.tsxindex 84a39a83b1..01707aac1e 100644--- a/jarvis/ui/web/frontend/src/components/pets/PetMark.test.tsx+++ b/jarvis/ui/web/frontend/src/components/pets/PetMark.test.tsx@@ -96,8 +96,8 @@ describe("PetMark", () => {describe("petStateForVoice", () => {it("maps the voice to the pet's rows", () => {expect(petStateForVoice("listening")).toBe("listening");- expect(petStateForVoice("thinking")).toBe("thinking");- expect(petStateForVoice("connecting")).toBe("thinking");+ expect(petStateForVoice("thinking")).toBe("working");+ expect(petStateForVoice("connecting")).toBe("working");expect(petStateForVoice("speaking")).toBe("talking");expect(petStateForVoice("error")).toBe("error");expect(petStateForVoice("idle")).toBe("idle");diff --git a/jarvis/ui/web/frontend/src/components/pets/PetMark.tsx b/jarvis/ui/web/frontend/src/components/pets/PetMark.tsxindex 16ce4c06bc..3a42939d01 100644--- a/jarvis/ui/web/frontend/src/components/pets/PetMark.tsx+++ b/jarvis/ui/web/frontend/src/components/pets/PetMark.tsx@@ -16,9 +16,9 @@ import { useEventStore, type VoiceState } from "@/store/events";* at once — `PetChanged` refetches the shared query.** `state` fixes the animation row; `reactive` follows the voice instead- * (listening while you talk, thinking, talking while it answers). Until the- * pets answer arrives the box stays empty at its final size, so nothing- * jumps and no stand-in image flashes.+ * (listening while you talk, working while it thinks, talking while it+ * answers). Until the pets answer arrives the box stays empty at its final+ * size, so nothing jumps and no stand-in image flashes.*/export function PetMark({size,@@ -82,7 +82,8 @@ export function petStateForVoice(voice: VoiceState): PetState {return "listening";case "connecting":case "thinking":- return "thinking";+ // Thinking plays the working row, the same as a trace's live line.+ return "working";case "speaking":return "talking";case "error":