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(agentic-ide): drop the voice bubble panel and let updates speak from it

rubenluetke10-beep92b7c9aaea4a
diff --git a/jarvis/ui/web/frontend/src/components/agentic/VoiceBubble.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/VoiceBubble.test.tsx
index fcb74907d2..4d7a32eaeb 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/VoiceBubble.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/VoiceBubble.test.tsx
@@ -6,11 +6,13 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
* renders. Through `vi.hoisted` because the mock factory is lifted above
* ordinary module code.
*/
-const { pendingVoiceBatches, storeState } = vi.hoisted(() => ({
+const { pendingVoiceBatches, paneNotifications, storeState } = vi.hoisted(() => ({
pendingVoiceBatches: new Map<
string,
{ batch_id: string; files: string[]; reserved?: boolean }
>(),
+ /** What the bell would be counting — the update card reads the same store. */
+ paneNotifications: [] as Array<Record<string, unknown>>,
storeState: {} as Record<string, unknown>,
}));
@@ -52,17 +54,42 @@ vi.mock("@/lib/agenticIdeApi", () => ({
removeVoiceAttachment: vi.fn(async (_terminal: string, batchId: string) => {
pendingVoiceBatches.delete(batchId);
}),
+ fetchPaneNotifications: vi.fn(async () => ({
+ enabled: true,
+ unread: paneNotifications.filter((n) => !n.read).length,
+ notifications: paneNotifications,
+ })),
}));
vi.mock("@/lib/sound", () => ({ playDropConfirm: vi.fn() }));
import { VoiceBubble } from "./VoiceBubble";
+import { resetDismissedNotices } from "./VoiceBubbleNotice";
import * as api from "@/lib/voiceApi";
import * as ideApi from "@/lib/agenticIdeApi";
const pushToast = vi.fn();
const onClose = vi.fn();
+/** One entry as the bell's endpoint returns it. */
+function notification(overrides: Record<string, unknown> = {}) {
+ return {
+ id: "n1",
+ kind: "completed",
+ workspace_id: "ws-7",
+ workspace: "Jarvis",
+ pane_key: "ws-7:T3",
+ pane: "T3",
+ agent: "claude",
+ display_name: "Claude Code",
+ title: "T3 went quiet.",
+ detail: "Analyse the marketing options",
+ created_at: 1_700_000_000,
+ read: false,
+ ...overrides,
+ };
+}
+
/**
* jsdom has no PointerEvent constructor, so `fireEvent.pointerDown` falls back
* to a bare Event that silently drops `button` and the coordinates — and the
@@ -84,6 +111,10 @@ beforeEach(() => {
vi.spyOn(HTMLCanvasElement.prototype, "getContext").mockReturnValue(null);
window.localStorage.clear();
pendingVoiceBatches.clear();
+ paneNotifications.length = 0;
+ // The waved-away ids live in a module set on purpose (they survive closing
+ // the bubble), so a test has to clear them the same way a reload would.
+ resetDismissedNotices();
for (const key of Object.keys(storeState)) delete storeState[key];
Object.assign(storeState, {
voiceState: "idle",
@@ -340,4 +371,88 @@ describe("voice bubble", () => {
renderBubble();
expect(screen.queryByTestId("voice-bubble-transcript")).toBeNull();
});
+
+ /*
+ * The bubble has no panel of its own. What that has to mean, mechanically, is
+ * that the space it spans keeps belonging to the terminals underneath — the
+ * wrapper takes no pointer events and every real control turns them back on.
+ * Without this the bubble would be an invisible click shield over the wall.
+ */
+ it("takes no clicks except on its own controls", () => {
+ renderBubble();
+ const bubble = screen.getByTestId("voice-bubble");
+ expect(bubble.className).toContain("pointer-events-none");
+ // No card: nothing paints a background across the whole column.
+ expect(bubble.className).not.toContain("bg-background/95");
+
+ for (const id of [
+ "voice-bubble-attach",
+ "voice-bubble-mic",
+ "voice-bubble-close",
+ "voice-bubble-speaker",
+ ]) {
+ expect(screen.getByTestId(id).className).toContain("pointer-events-auto");
+ }
+ // The row itself is only the gaps between the discs, and those belong to
+ // whatever pane is behind them.
+ const row = screen.getByTestId("voice-bubble-mic").parentElement!;
+ expect(row.className).toContain("pointer-events-none");
+ });
+
+ it("keeps the status line off the screen while nothing is happening", () => {
+ renderBubble();
+ // Still spoken to a screen reader, just not painted over a terminal.
+ const idle = screen.getByTestId("voice-bubble-status").parentElement!;
+ expect(idle.className).toContain("sr-only");
+ cleanup();
+
+ storeState.voiceState = "speaking";
+ renderBubble();
+ const busy = screen.getByTestId("voice-bubble-status").parentElement!;
+ expect(busy.className).not.toContain("sr-only");
+ expect(busy.className).toContain("pointer-events-auto");
+ });
+
+ it("reports the newest unread pane update and takes you to that pane", async () => {
+ paneNotifications.push(notification());
+ const onJumpToPane = vi.fn();
+ renderBubble({ onJumpToPane });
+
+ const card = await screen.findByTestId("voice-bubble-notice");
+ expect(card.getAttribute("data-kind")).toBe("completed");
+ // What the pane was asked to do, not the backend's "went quiet" sentence.
+ expect(card.textContent).toContain("Analyse the marketing options");
+ expect(card.textContent).toContain("T3");
+
+ fireEvent.click(screen.getByTestId("voice-bubble-notice-jump"));
+ expect(onJumpToPane).toHaveBeenCalledWith("ws-7", "T3");
+ });
+
+ it("says nothing about updates the bell has already been shown", async () => {
+ paneNotifications.push(notification({ read: true }));
+ renderBubble();
+ await waitFor(() => expect(ideApi.fetchPaneNotifications).toHaveBeenCalled());
+ expect(screen.queryByTestId("voice-bubble-notice")).toBeNull();
+ });
+
+ it("hiding an update card leaves the entry in the bell", async () => {
+ paneNotifications.push(notification());
+ renderBubble();
+
+ await screen.findByTestId("voice-bubble-notice");
+ fireEvent.click(screen.getByTestId("voice-bubble-notice-dismiss"));
+ await waitFor(() =>
+ expect(screen.queryByTestId("voice-bubble-notice")).toBeNull(),
+ );
+ // The peek hid it. Nothing was discarded and nothing was marked read, so
+ // the bell still counts it — that is the whole contract of the X here.
+ expect(paneNotifications[0].read).toBe(false);
+ });
+
+ it("is a plain report, not a link, when nobody can move the grid", async () => {
+ paneNotifications.push(notification());
+ renderBubble();
+ await screen.findByTestId("voice-bubble-notice");
+ expect(screen.queryByTestId("voice-bubble-notice-jump")).toBeNull();
+ });
});
diff --git a/jarvis/ui/web/frontend/src/components/agentic/VoiceBubble.tsx b/jarvis/ui/web/frontend/src/components/agentic/VoiceBubble.tsx
index 07753f2839..bd5fd1bfba 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/VoiceBubble.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/VoiceBubble.tsx
@@ -17,6 +17,26 @@
* session only (never persisted — a forgotten mute must not survive a
* restart).
*
+ * ## Why the bubble has no panel around it
+ *
+ * It used to be a rounded card: a 224 px slab of opaque background sitting on
+ * top of the terminal wall for as long as the voice was open. The orb is the
+ * only part of it that has to be seen, and the card was covering agents to
+ * frame it. So there is no card — the orb, the status, the controls and the
+ * update notice each carry their own small surface, and the space between them
+ * is the workspace, visible and clickable.
+ *
+ * That last part is a rule, not an aesthetic: the wrapper is
+ * `pointer-events-none` and every real control turns them back on. A
+ * transparent-but-solid rectangle would eat clicks meant for the terminal
+ * behind it, which is exactly the thing the card was already doing visibly.
+ * Anything added here needs `pointer-events-auto` to work, and needs to deserve
+ * the clicks it takes away from the pane underneath.
+ *
+ * Dragging still works anywhere on the orb, the status pill or the transcript —
+ * they carry `data-drag-surface`, which is also where the pointer capture goes,
+ * because a capture on the `pointer-events-none` wrapper is not delivered.
+ *
* Everything shown is read from the event store the voice pipeline already
* feeds over the WebSocket (`voiceState`, the live transcription), so the
* bubble costs no polling of its own and is exactly as current as the
@@ -28,6 +48,7 @@ import {
type PointerEvent as ReactPointerEvent,
useCallback,
useEffect,
+ useMemo,
useRef,
useState,
} from "react";
@@ -53,6 +74,7 @@ import {
attachToTerminal,
fetchAllVoiceAttachments,
removeVoiceAttachment,
+ type PaneNotification,
} from "@/lib/agenticIdeApi";
import { playDropConfirm } from "@/lib/sound";
import { useT } from "@/i18n";
@@ -63,12 +85,13 @@ import {
type PaneDropPayload,
} from "./paneDrop";
import { VoiceOrb } from "./VoiceOrb";
+import { VoiceBubbleNotice } from "./VoiceBubbleNotice";
const OPEN_KEY = "jarvis.agenticIde.voiceBubbleOpen";
const POS_KEY = "jarvis.agenticIde.voiceBubblePos";
/** The bubble's fixed width; the drag clamp keeps this much reachable. */
-const BUBBLE_WIDTH_PX = 224;
+const BUBBLE_WIDTH_PX = 256;
/** How much of the bubble must stay inside the window after a drag/resize. */
const MIN_VISIBLE_PX = 88;
@@ -170,23 +193,42 @@ function format(text: string, ...values: Array<string | number>): string {
);
}
-/** One round control of the bubble's action row. */
+/**
+ * One round control of the bubble's action row.
+ *
+ * Each button is its own small disc with its own background: with no panel
+ * behind them, a row of bare glyphs would sit directly on whatever the terminal
+ * underneath happens to be printing, and half of them would be unreadable half
+ * the time. `pointer-events-auto` is per button, not on the row — the gaps
+ * between them belong to the pane below.
+ */
const BUBBLE_BTN =
- "flex h-9 w-9 items-center justify-center rounded-full border border-border/70 " +
- "bg-secondary/70 text-muted-foreground transition-colors hover:bg-secondary " +
- "hover:text-foreground focus-visible:outline-none focus-visible:ring-2 " +
+ "pointer-events-auto flex h-8 w-8 items-center justify-center rounded-full " +
+ "border border-border/50 bg-background/85 text-muted-foreground shadow-lg " +
+ "backdrop-blur transition-colors hover:bg-secondary hover:text-foreground " +
+ "focus-visible:outline-none focus-visible:ring-2 " +
"focus-visible:ring-primary/50 disabled:cursor-not-allowed disabled:opacity-40";
+/** The small floating surfaces (status, transcript, receipts) share this look. */
+const BUBBLE_SURFACE =
+ "pointer-events-auto border border-border/50 bg-background/85 shadow-lg backdrop-blur";
+
export function VoiceBubble({
open,
onClose,
promptTarget = "",
onScreen = true,
+ onJumpToPane,
}: {
open: boolean;
onClose: () => void;
promptTarget?: string;
onScreen?: boolean;
+ /**
+ * Take the user to the pane an update card names. Optional: without it the
+ * card still reports what finished, it just is not a link.
+ */
+ onJumpToPane?: (workspaceId: string, pane: string) => void;
}) {
const t = useT();
const voiceState = (useEventStore((s) => s.voiceState) ?? "idle") as VoiceState;
@@ -258,9 +300,20 @@ export function VoiceBubble({
originY: origin.y,
moved: false,
};
- // Optional-chained: jsdom has no pointer capture, and losing it only
- // means a very fast drag can slip off the bubble mid-gesture.
- event.currentTarget.setPointerCapture?.(event.pointerId);
+ /*
+ * Capture on the surface that was actually grabbed, not on the wrapper:
+ * the wrapper is `pointer-events-none` so the terminals behind the gaps
+ * stay clickable, and a capture target that takes no pointer events never
+ * receives the move/up it was captured for. Captured events still bubble
+ * up to the wrapper's handlers, so the drag reads exactly as before.
+ *
+ * Optional-chained: jsdom has no pointer capture, and losing it only means
+ * a very fast drag can slip off the bubble mid-gesture.
+ */
+ const handle =
+ (event.target as HTMLElement).closest<HTMLElement>("[data-drag-surface]") ??
+ event.currentTarget;
+ handle.setPointerCapture?.(event.pointerId);
}, []);
const onDragPointerMove = useCallback((event: ReactPointerEvent<HTMLDivElement>) => {
@@ -410,6 +463,17 @@ export function VoiceBubble({
};
}, [mounted]);
+ // Only a parent that can actually move the grid makes the card a link —
+ // otherwise it stays a plain report, because a link that goes nowhere is
+ // worse than no link.
+ const jumpToNotice = useMemo(
+ () =>
+ onJumpToPane
+ ? (entry: PaneNotification) => onJumpToPane(entry.workspace_id, entry.pane)
+ : undefined,
+ [onJumpToPane],
+ );
+
const toggleMute = useCallback(async () => {
const next = !muted;
try {
@@ -500,6 +564,9 @@ export function VoiceBubble({
// the bubble decides to be invisible down here, never above a hook.
if (!mounted || !pos) return null;
+ /** Nothing is happening and nothing is being dropped — say nothing. */
+ const quiet = voiceState === "idle" && dropPhase === "idle";
+
return (
<div
data-testid="voice-bubble"
@@ -519,13 +586,16 @@ export function VoiceBubble({
}
}}
className={cn(
- "fixed z-50 flex w-56 cursor-grab select-none flex-col items-center gap-2.5",
- "rounded-3xl border border-border/60 bg-background/95 p-4 shadow-2xl",
+ // No card: the wrapper is only a column of floating pieces, and it lets
+ // every click it does not need through to the terminals underneath.
+ "pointer-events-none fixed z-50 flex w-64 cursor-grab select-none",
+ "flex-col items-center gap-2",
"active:cursor-grabbing",
)}
>
<div
data-testid="voice-orb-stage"
+ data-drag-surface
data-state={voiceState}
data-drop-state={
dropPhase === "idle" && receipts.some((receipt) => receipt.reserved)
@@ -534,7 +604,7 @@ export function VoiceBubble({
? "ready"
: dropPhase
}
- className="agentic-voice-orb-stage relative grid h-40 w-40 shrink-0 place-items-center"
+ className="agentic-voice-orb-stage pointer-events-auto relative grid h-40 w-40 shrink-0 place-items-center"
>
<span aria-hidden="true" className="agentic-voice-orb-ring agentic-voice-orb-ring-a" />
<span aria-hidden="true" className="agentic-voice-orb-ring agentic-voice-orb-ring-b" />
@@ -580,6 +650,9 @@ export function VoiceBubble({
*/
"relative z-10 rounded-full outline-none transition-[transform,filter,opacity] duration-700 ease-out",
"hover:scale-[1.02] active:scale-[0.98] focus-visible:ring-2 focus-visible:ring-primary/50 motion-reduce:transform-none",
+ // With no card behind it, the sphere needs its own separation from
+ // whatever the pane below is drawing — a cast shadow, not a frame.
+ "drop-shadow-[0_10px_28px_rgba(0,0,0,0.5)]",
active
? "[filter:saturate(1)_brightness(1)]"
: "[filter:saturate(0.45)_brightness(0.72)] hover:[filter:saturate(0.7)_brightness(0.85)]",
@@ -591,7 +664,21 @@ export function VoiceBubble({
</button>
</div>
- <span className="flex shrink-0 items-center gap-1.5">
+ {/*
+ The status line says something only when there is something to say. An
+ idle bubble printing "READY" over a terminal is a label for a state the
+ desaturated orb already reads as — so at rest it stays in the DOM for
+ screen readers and leaves the screen alone. It is still a drag surface,
+ which is why it keeps its element either way.
+ */}
+ <span
+ data-drag-surface
+ className={cn(
+ quiet
+ ? "sr-only"
+ : cn(BUBBLE_SURFACE, "flex shrink-0 items-center gap-1.5 rounded-full px-2.5 py-1"),
+ )}
+ >
<span
aria-hidden="true"
data-state={voiceState}
@@ -622,7 +709,12 @@ export function VoiceBubble({
{active && transcription && (
<p
data-testid="voice-bubble-transcript"
- className="line-clamp-3 max-w-full shrink-0 text-center text-[13px] leading-relaxed text-muted-foreground"
+ data-drag-surface
+ className={cn(
+ BUBBLE_SURFACE,
+ "line-clamp-3 max-w-full shrink-0 rounded-2xl px-3 py-2",
+ "text-center text-[13px] leading-relaxed text-muted-foreground",
+ )}
>
{transcription}
</p>
@@ -633,7 +725,10 @@ export function VoiceBubble({
key={receipt.batchId}
data-testid="voice-orb-drop-context"
aria-live="polite"
- className="flex w-full max-w-full shrink-0 items-start gap-2 rounded-control border border-border/70 bg-card/50 px-2.5 py-2 text-left"
+ className={cn(
+ BUBBLE_SURFACE,
+ "flex w-full max-w-full shrink-0 items-start gap-2 rounded-2xl px-2.5 py-2 text-left",
+ )}
>
<span className="mt-0.5 grid h-4 w-4 shrink-0 place-items-center rounded-full bg-primary/15 text-primary">
<Check className="h-2.5 w-2.5" aria-hidden="true" />
@@ -690,8 +785,10 @@ export function VoiceBubble({
/>
{/* The action row: attach, talk, put away, mute — four equal circles so
- none of them reads as the "main" one; the orb above is the main one. */}
- <div className="flex shrink-0 items-center gap-2.5 pt-0.5">
+ none of them reads as the "main" one; the orb above is the main one.
+ The row itself takes no pointer events, so the gaps between the discs
+ belong to the terminal behind them. */}
+ <div className="pointer-events-none flex shrink-0 items-center gap-2">
<button
type="button"
data-no-drag
@@ -771,6 +868,11 @@ export function VoiceBubble({
)}
</button>
</div>
+
+ {/* What finished while the user was talking — one card, newest unread
+ only. It sits below the controls so it can grow without ever pushing
+ the orb or the buttons somewhere else. */}
+ <VoiceBubbleNotice onJump={jumpToNotice} />
</div>
);
}
diff --git a/jarvis/ui/web/frontend/src/components/agentic/VoiceBubbleNotice.tsx b/jarvis/ui/web/frontend/src/components/agentic/VoiceBubbleNotice.tsx
new file mode 100644
index 0000000000..5545f9ae36
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/components/agentic/VoiceBubbleNotice.tsx
@@ -0,0 +1,197 @@
+/**
+ * The update card under the voice bubble — what happened while you were talking.
+ *
+ * ## Why it exists next to the bell
+ *
+ * The bell in the header counts finished panes, but a counter is something you
+ * have to go and look at. While the bubble is open the user is already looking
+ * at the orb, and that is exactly the moment a terminal quietly finishes. So
+ * the newest unread entry gets to say so where the eyes already are — one card,
+ * newest only, never a list. The bell keeps the full history; this is a peek.
+ *
+ * ## What dismissing means here
+ *
+ * The X hides the card and nothing else: the entry stays in the bell, still
+ * unread, still counted. A peek that could silently delete the record would
+ * make the bell lie about work nobody has seen. The hidden ids live in a module
+ * set so closing and reopening the bubble does not bring a waved-away card
+ * back; a reload starts over, which is the honest reading of "still unread".
+ *
+ * Opening the bell marks everything read, and this card follows — the user has
+ * seen the list, so the peek has nothing left to announce.
+ */
+import { useCallback, useEffect, useState } from "react";
+import { AlertTriangle, CheckCircle2, CircleHelp, PowerOff, X } from "lucide-react";
+
+import { useT } from "@/i18n";
+import { cn } from "@/lib/utils";
+import { useDocumentVisible } from "@/hooks/useDocumentVisible";
+import {
+ fetchPaneNotifications,
+ type PaneNotification,
+ type PaneNotificationKind,
+} from "@/lib/agenticIdeApi";
+
+/**
+ * How often the card asks.
+ *
+ * The same beat as the bell: both read the one in-memory store the backend
+ * sweep fills every 2 s, and a card that lags the bell it sits under would read
+ * as a bug long before anyone worked out it was only slower.
+ */
+export const NOTICE_POLL_MS = 5_000;
+
+/** Waved away by hand — kept out of the DOM, kept in the bell. */
+const dismissedIds = new Set<string>();
+
+/** For tests: forget what was waved away. */
+export function resetDismissedNotices(): void {
+ dismissedIds.clear();
+}
+
+const KINDS: Record<
+ PaneNotificationKind,
+ { key: string; icon: typeof CheckCircle2; tone: string }
+> = {
+ completed: {
+ key: "agentic_grid.notifications.kind_completed",
+ icon: CheckCircle2,
+ tone: "text-emerald-400",
+ },
+ needs_input: {
+ key: "agentic_grid.notifications.kind_needs_input",
+ icon: CircleHelp,
+ tone: "text-amber-400",
+ },
+ exited: {
+ key: "agentic_grid.notifications.kind_exited",
+ icon: PowerOff,
+ tone: "text-muted-foreground",
+ },
+ failed: {
+ key: "agentic_grid.notifications.kind_failed",
+ icon: AlertTriangle,
+ tone: "text-destructive",
+ },
+};
+
+export function VoiceBubbleNotice({
+ onJump,
+}: {
+ /**
+ * Take the user to the pane the entry came from. Optional: without it the
+ * card still reports, it just does not pretend to be a link.
+ */
+ onJump?: (entry: PaneNotification) => void;
+}) {
+ const t = useT();
+ const [entry, setEntry] = useState<PaneNotification | null>(null);
+ // Bumped by a dismissal so the next entry, if any, takes the slot at once
+ // instead of after the rest of the current interval.
+ const [dismissals, setDismissals] = useState(0);
+ const documentVisible = useDocumentVisible();
+
+ useEffect(() => {
+ if (!documentVisible) return;
+ let cancelled = false;
+ const read = async () => {
+ try {
+ const state = await fetchPaneNotifications();
+ if (cancelled) return;
+ // Newest first, so the first survivor of the two filters IS the newest
+ // thing the user has not seen.
+ setEntry(
+ state.notifications.find((n) => !n.read && !dismissedIds.has(n.id)) ?? null,
+ );
+ } catch {
+ // A warming backend or a dropped request keeps whatever is on screen.
+ // Blinking an error at somebody who is mid-sentence would be worse
+ // than being five seconds behind, and the next tick corrects it.
+ }
+ };
+ void read();
+ const timer = window.setInterval(() => void read(), NOTICE_POLL_MS);
+ return () => {
+ cancelled = true;
+ window.clearInterval(timer);
+ };
+ }, [documentVisible, dismissals]);
+
+ const dismiss = useCallback(() => {
+ setEntry((current) => {
+ if (current) dismissedIds.add(current.id);
+ return null;
+ });
+ setDismissals((n) => n + 1);
+ }, []);
+
+ if (!entry) return null;
+
+ const kind = KINDS[entry.kind] ?? KINDS.completed;
+ const Icon = kind.icon;
+ // What the pane was last asked to do is the line a person recognises; the
+ // backend's own sentence is the fallback for a pane nobody prompted.
+ const headline = entry.detail.trim() || entry.title;
+ const subline = `${entry.pane} · ${t(kind.key)}`;
+
+ const body = (
+ <>
+ <span className="block truncate text-[12px] font-semibold leading-snug text-foreground">
+ {headline}
+ </span>
+ <span className="mt-0.5 block truncate text-[11px] leading-snug text-muted-foreground">
+ {subline}
+ </span>
+ </>
+ );
+
+ return (
+ <div
+ data-testid="voice-bubble-notice"
+ data-kind={entry.kind}
+ data-no-drag
+ role="status"
+ aria-live="polite"
+ className={cn(
+ "pointer-events-auto flex w-full shrink-0 items-center gap-2.5",
+ "rounded-2xl border border-border/50 bg-background/90 px-3 py-2.5",
+ "text-left shadow-xl backdrop-blur",
+ )}
+ >
+ {onJump ? (
+ <button
+ type="button"
+ data-testid="voice-bubble-notice-jump"
+ onClick={() => onJump(entry)}
+ title={t("agentic_grid.voice_bubble.notice_jump").replace("{0}", entry.pane)}
+ className="min-w-0 flex-1 rounded text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50"
+ >
+ {body}
+ </button>
+ ) : (
+ <span className="min-w-0 flex-1">{body}</span>
+ )}
+
+ <Icon className={cn("h-4 w-4 shrink-0", kind.tone)} aria-hidden="true" />
+
+ <button
+ type="button"
+ data-testid="voice-bubble-notice-dismiss"
+ onClick={dismiss}
+ title={t("agentic_grid.voice_bubble.notice_dismiss")}
+ aria-label={t("agentic_grid.voice_bubble.notice_dismiss")}
+ className={cn(
+ // Dim rather than hidden-until-hover: a touch screen has no hover,
+ // and a control nobody can reach is not a control.
+ "grid h-5 w-5 shrink-0 place-items-center rounded text-muted-foreground",
+ "opacity-40 transition-opacity hover:opacity-100 focus-visible:opacity-100",
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50",
+ )}
+ >
+ <X className="h-3 w-3" aria-hidden="true" />
+ </button>
+ </div>
+ );
+}
+
+export default VoiceBubbleNotice;
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.json
index a0b1247358..a460cb26db 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json
@@ -3822,7 +3822,9 @@
"close": "Sprach-Bubble schließen",
"mute": "Stimme von {0} für diese Sitzung stummschalten",
"unmute": "Stummschaltung von {0} aufheben",
- "start_failed": "Das Zuhören konnte nicht gestartet werden — möglicherweise läuft bereits ein Gespräch."
+ "start_failed": "Das Zuhören konnte nicht gestartet werden — möglicherweise läuft bereits ein Gespräch.",
+ "notice_jump": "Zu {0} springen",
+ "notice_dismiss": "Diese Meldung ausblenden"
},
"voice_drop": {
"hover": "Für den nächsten Prompt an {0} ablegen",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.json
index a0cd4fa4b1..7254afef35 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json
@@ -3822,7 +3822,9 @@
"close": "Close the voice bubble",
"mute": "Mute {0}'s voice for this session",
"unmute": "Unmute {0}'s voice",
- "start_failed": "Could not start listening — a conversation may already be running."
+ "start_failed": "Could not start listening — a conversation may already be running.",
+ "notice_jump": "Go to {0}",
+ "notice_dismiss": "Hide this update"
},
"voice_drop": {
"hover": "Drop for {0}'s next prompt",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.json
index ae6edb861b..534b9ed348 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json
@@ -3822,7 +3822,9 @@
"close": "Cerrar la burbuja de voz",
"mute": "Silenciar la voz de {0} en esta sesión",
"unmute": "Reactivar la voz de {0}",
- "start_failed": "No se pudo empezar a escuchar — puede que ya haya una conversación en curso."
+ "start_failed": "No se pudo empezar a escuchar — puede que ya haya una conversación en curso.",
+ "notice_jump": "Ir a {0}",
+ "notice_dismiss": "Ocultar este aviso"
},
"voice_drop": {
"hover": "Soltar para el próximo prompt de {0}",
diff --git a/jarvis/ui/web/frontend/src/views/AgenticIdeView.tsx b/jarvis/ui/web/frontend/src/views/AgenticIdeView.tsx
index 2bfe883e12..de30305c25 100644
--- a/jarvis/ui/web/frontend/src/views/AgenticIdeView.tsx
+++ b/jarvis/ui/web/frontend/src/views/AgenticIdeView.tsx
@@ -788,6 +788,10 @@ export function AgenticIdeView({ onScreen = true }: AgenticIdeViewProps) {
open={voiceOpen}
onClose={closeVoiceBubble}
onScreen={onScreen}
+ // The same jump the bell's list performs, from the bubble's update
+ // card: switch workspace if the pane lives in another one, then bring
+ // that pane into view.
+ onJumpToPane={(id, pane) => void jumpToPane(id, pane)}
promptTarget={
session.terminals.some(
(terminal) =>