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(deck): the orb is the click-shaped wake word, and the idle line names the phrase

Haralddda1ad2f7457
diff --git a/jarvis/ui/web/frontend/src/components/deck/DeckLogAndTurn.test.tsx b/jarvis/ui/web/frontend/src/components/deck/DeckLogAndTurn.test.tsx
index 3b440088aa..be946e77bb 100644
--- a/jarvis/ui/web/frontend/src/components/deck/DeckLogAndTurn.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/deck/DeckLogAndTurn.test.tsx
@@ -77,7 +77,7 @@ describe("TurnCard", () => {
test("says so before the first turn", () => {
render(<TurnCard />);
- expect(screen.getByText("No response yet. Say your wake word.")).toBeTruthy();
+ expect(screen.getByText("No response yet.")).toBeTruthy();
});
test("shows the phases, the marks and the model of the last turn", () => {
diff --git a/jarvis/ui/web/frontend/src/components/deck/DeckOrb.test.tsx b/jarvis/ui/web/frontend/src/components/deck/DeckOrb.test.tsx
new file mode 100644
index 0000000000..31ad058629
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/components/deck/DeckOrb.test.tsx
@@ -0,0 +1,55 @@
+import { cleanup, fireEvent, render, screen } from "@testing-library/react";
+import { afterEach, describe, expect, test, vi } from "vitest";
+
+// The orb's face is canvas + the mascot's timers — both proven elsewhere
+// (VoiceOrb.test, MascotGigi.test). Here only the press affordance matters.
+vi.mock("@/components/agentic/VoiceOrb", () => ({
+ VoiceOrb: () => <div data-testid="voice-orb" />,
+}));
+vi.mock("@/components/MascotGigi", () => ({
+ MascotGigi: () => <div data-testid="mascot" />,
+}));
+
+import { DeckOrb } from "@/components/deck/DeckOrb";
+
+/**
+ * The orb is the click-shaped wake word (maintainer, 2026-08-18): pressing
+ * the mascot in the centre does what saying the phrase does. Display-only
+ * callers get no button at all.
+ */
+describe("DeckOrb", () => {
+ afterEach(() => cleanup());
+
+ test("is display only without a press handler", () => {
+ render(<DeckOrb steps={[]} busy={false} />);
+ expect(screen.queryByRole("button")).toBeNull();
+ expect(screen.getByTestId("mascot")).toBeTruthy();
+ });
+
+ test("a press on the mascot fires the handler and carries its label", () => {
+ const onPress = vi.fn();
+ render(
+ <DeckOrb
+ steps={[]}
+ busy={false}
+ onPress={onPress}
+ pressLabel="Start talking — the same as saying “Hey Nova”."
+ />,
+ );
+ const button = screen.getByRole("button", { name: /saying “Hey Nova”/ });
+ expect(button.getAttribute("title")).toContain("Hey Nova");
+ fireEvent.click(screen.getByTestId("mascot"));
+ expect(onPress).toHaveBeenCalledTimes(1);
+ });
+
+ test("stays inert while the call is being set up", () => {
+ const onPress = vi.fn();
+ render(
+ <DeckOrb steps={[]} busy={false} onPress={onPress} pressLabel="Start" pressDisabled />,
+ );
+ const button = screen.getByRole("button", { name: "Start" });
+ expect((button as HTMLButtonElement).disabled).toBe(true);
+ fireEvent.click(button);
+ expect(onPress).not.toHaveBeenCalled();
+ });
+});
diff --git a/jarvis/ui/web/frontend/src/components/deck/DeckOrb.tsx b/jarvis/ui/web/frontend/src/components/deck/DeckOrb.tsx
index 9113ceb482..602dff6394 100644
--- a/jarvis/ui/web/frontend/src/components/deck/DeckOrb.tsx
+++ b/jarvis/ui/web/frontend/src/components/deck/DeckOrb.tsx
@@ -1,5 +1,5 @@
import { useEffect, useId, useMemo, useRef, useState } from "react";
-import { useEventStore } from "@/store/events";
+import { useEventStore, type VoiceState } from "@/store/events";
import { VoiceOrb } from "@/components/agentic/VoiceOrb";
import { MascotGigi } from "@/components/MascotGigi";
import type { ThinkingStep } from "@/lib/thinkingSteps";
@@ -31,12 +31,24 @@ export function DeckOrb({
size = 240,
readouts,
className,
+ onPress,
+ pressLabel,
+ pressDisabled = false,
}: {
steps: ThinkingStep[];
busy: boolean;
size?: number;
readouts?: OrbReadouts;
className?: string;
+ /**
+ * The click-shaped wake word: pressing the orb (the mascot in it) does what
+ * saying the wake phrase does — starts the conversation, or ends the one
+ * that runs. Without it the orb is display only.
+ */
+ onPress?: () => void;
+ /** What the press does right now — the accessible name and the tooltip. */
+ pressLabel?: string;
+ pressDisabled?: boolean;
}) {
const voiceState = useEventStore((s) => s.voiceState);
const reduced = useMemo(
@@ -164,12 +176,28 @@ export function DeckOrb({
</svg>
<div className="absolute inset-0 grid place-items-center">
- <div className="relative" style={{ width: orbSize, height: orbSize }}>
- <VoiceOrb state={voiceState} size={orbSize} className="absolute inset-0" />
- <div className="absolute inset-0 grid place-items-center">
- <MascotGigi size={Math.round(orbSize * 0.46)} reactToVoice enableComments={false} />
+ {onPress ? (
+ <button
+ type="button"
+ onClick={onPress}
+ disabled={pressDisabled}
+ aria-label={pressLabel}
+ title={pressLabel}
+ className={cn(
+ "relative rounded-full transition-transform duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/70 focus-visible:ring-offset-2 focus-visible:ring-offset-background",
+ pressDisabled
+ ? "cursor-wait"
+ : "cursor-pointer hover:scale-[1.04] active:scale-[0.97] motion-reduce:transform-none",
+ )}
+ style={{ width: orbSize, height: orbSize }}
+ >
+ <OrbFace voiceState={voiceState} orbSize={orbSize} />
+ </button>
+ ) : (
+ <div className="relative" style={{ width: orbSize, height: orbSize }}>
+ <OrbFace voiceState={voiceState} orbSize={orbSize} />
</div>
- </div>
+ )}
</div>
{readouts && (
@@ -184,6 +212,18 @@ export function DeckOrb({
);
}
+/** The orb and the mascot inside it — the part of the centre a press lands on. */
+function OrbFace({ voiceState, orbSize }: { voiceState: VoiceState; orbSize: number }) {
+ return (
+ <>
+ <VoiceOrb state={voiceState} size={orbSize} className="absolute inset-0" />
+ <div className="absolute inset-0 grid place-items-center">
+ <MascotGigi size={Math.round(orbSize * 0.46)} reactToVoice enableComments={false} />
+ </div>
+ </>
+ );
+}
+
function Readout({ text, className }: { text: string; className?: string }) {
return (
<span
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.json
index 7c11850eab..ace92c826b 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json
@@ -4333,7 +4333,9 @@
"running": "Läuft gerade",
"thinking_now": "Denkt gerade",
"thinking_starting": "Startet…",
- "idle_headline": "Bereit. Sag dein Wake-Word.",
+ "idle_headline": "Sag „{0}“ – oder klick auf den Orb.",
+ "orb_call": "Losreden – so, als hättest du „{0}“ gesagt.",
+ "orb_hangup": "Gespräch beenden.",
"warming": "Startet gerade. Sprechen geht gleich.",
"mood_ready": "bereit",
"mood_busy": "arbeitet",
@@ -4427,7 +4429,7 @@
"log_quiet_for": "seit {0} still",
"log_open_section": "Sitzungen öffnen",
"card_turn": "Antwort",
- "turn_empty": "Noch keine Antwort. Sag dein Wake-Word.",
+ "turn_empty": "Noch keine Antwort.",
"turn_phase_hear": "hören",
"turn_phase_think": "denken",
"turn_phase_act": "handeln",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.json
index 7fb974c535..cc47e51932 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json
@@ -4333,7 +4333,9 @@
"running": "Running now",
"thinking_now": "Thinking",
"thinking_starting": "Starting…",
- "idle_headline": "Ready. Say your wake word.",
+ "idle_headline": "Say “{0}” — or click the orb.",
+ "orb_call": "Start talking — the same as saying “{0}”.",
+ "orb_hangup": "End the conversation.",
"warming": "Starting up. Speaking works in a moment.",
"mood_ready": "ready",
"mood_busy": "working",
@@ -4427,7 +4429,7 @@
"log_quiet_for": "quiet for {0}",
"log_open_section": "Open sessions",
"card_turn": "Response",
- "turn_empty": "No response yet. Say your wake word.",
+ "turn_empty": "No response yet.",
"turn_phase_hear": "hear",
"turn_phase_think": "think",
"turn_phase_act": "act",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.json
index a6b10ce40c..c3035f7149 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json
@@ -4333,7 +4333,9 @@
"running": "En marcha",
"thinking_now": "Pensando",
"thinking_starting": "Empezando…",
- "idle_headline": "Listo. Di tu palabra de activación.",
+ "idle_headline": "Di «{0}» — o haz clic en el orbe.",
+ "orb_call": "Empieza a hablar — igual que decir «{0}».",
+ "orb_hangup": "Terminar la conversación.",
"warming": "Arrancando. Hablar funcionará enseguida.",
"mood_ready": "listo",
"mood_busy": "trabajando",
@@ -4427,7 +4429,7 @@
"log_quiet_for": "en silencio desde hace {0}",
"log_open_section": "Abrir sesiones",
"card_turn": "Respuesta",
- "turn_empty": "Aún no hay respuesta. Di tu palabra de activación.",
+ "turn_empty": "Aún no hay respuesta.",
"turn_phase_hear": "oír",
"turn_phase_think": "pensar",
"turn_phase_act": "actuar",
diff --git a/jarvis/ui/web/frontend/src/views/MissionDeckView.tsx b/jarvis/ui/web/frontend/src/views/MissionDeckView.tsx
index 06d6b2211a..6623348961 100644
--- a/jarvis/ui/web/frontend/src/views/MissionDeckView.tsx
+++ b/jarvis/ui/web/frontend/src/views/MissionDeckView.tsx
@@ -17,6 +17,8 @@ import { LogCard } from "@/components/deck/DeckLogCard";
import { TurnCard } from "@/components/deck/DeckTurnCard";
import { WikiCard } from "@/components/deck/DeckWiki";
import { useVoiceReadiness } from "@/hooks/useVoiceReadiness";
+import { useWakeWord } from "@/hooks/useWakeWord";
+import { useVoiceCall } from "@/components/agentic/useVoiceCall";
import { writeDeckMode } from "@/lib/deckMode";
import { cn } from "@/lib/utils";
import { useT } from "@/i18n";
@@ -75,6 +77,14 @@ export function MissionDeckView({
const wordsSession = useDeckStore((s) => s.wordsSession);
const turnPhase = useDeckStore((s) => s.turn.phase);
const { warming } = useVoiceReadiness();
+ // The orb is the click-shaped wake word: the same start/stop path the
+ // classic surface's voice bubble uses, so both do exactly one thing.
+ const { active: callActive, busy: callBusy, connecting, toggleCall } = useVoiceCall();
+ // The idle line names the real phrase ("Hey Nova"), never "your wake word":
+ // a person who just installed the app should read what to say. Until the
+ // phrase is known the name it derives from stands in.
+ const { config: wakeConfig } = useWakeWord();
+ const wakePhrase = wakeConfig?.phrase.trim() || assistantName;
const running = useMemo(
() => thinkingSteps.filter((s) => s.status === "active"),
@@ -109,7 +119,10 @@ export function MissionDeckView({
? lastAssistant.content
: warming
? t("deck.warming")
- : t("deck.idle_headline");
+ : t("deck.idle_headline").replace("{0}", wakePhrase);
+ const orbPressLabel = callActive
+ ? t("deck.orb_hangup")
+ : t("deck.orb_call").replace("{0}", wakePhrase);
return (
<div className="flex h-full min-h-0 flex-col">
@@ -203,8 +216,16 @@ export function MissionDeckView({
sw: brainProvider || "—",
se: `${wordsSession} ${t("deck.orb_words")}`,
}}
+ onPress={() => void toggleCall()}
+ pressLabel={orbPressLabel}
+ pressDisabled={callBusy || connecting || !connected}
/>
- <p className="max-w-[44ch] text-pretty text-sm leading-relaxed text-foreground">
+ <p
+ className={cn(
+ "max-w-[44ch] text-pretty text-sm leading-relaxed",
+ lastAssistant ? "text-foreground" : "text-muted-foreground",
+ )}
+ >
{headline}
</p>
</div>