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(chat): rebuild the front page as a quiet Claude-style chat
rubenluetke10-beep753b65ec43be
diff --git a/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsx b/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsxindex 5da0c4d198..0c809d846c 100644--- a/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsx+++ b/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsx@@ -2,6 +2,7 @@ import { ChatCommandPanel, useChatCommands } from "./ChatCommands";import { useCallback, useEffect, useMemo, useRef, useState } from "react";import {ArrowUp,+ AudioLines,Bot,Brain,FolderCode,@@ -36,6 +37,7 @@ import { ComposerChipField, type ComposerChipFieldHandle } from "@/components/agimport type { ToolChoice } from "@/components/agentchat/toolChoices";import { useAppshotClaim } from "@/components/agentchat/useAppshotClaim";import { GigiMark } from "@/components/GigiMark";+import { useVoiceModeSwitch } from "@/components/home/assistantStatus";import { fill, useT } from "@/i18n";import { cn } from "@/lib/utils";@@ -79,6 +81,15 @@ import { cn } from "@/lib/utils";** A pick applies to the open session at once (the backend patches it and* the next turn runs on it); with no session open it seeds the next one.+ *+ * The front page (`jarvis` surface) draws the same controls the quiet way+ * (2026-10-01, judged against the Claude app's composer): the text on top,+ * and one row under it — a round "+" and the permission glyph on the left;+ * on the right ONE brain pick (provider and model in one list), the effort+ * as a muted word, dictation, and one round button that is voice mode while+ * the box is empty, Send once there is something to send, and Stop while a+ * turn runs. The IDE keeps the labelled pills: there a folder, a stance and+ * a model are things a person checks before every run.*/export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {const t = useT();@@ -130,6 +141,9 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {const cancel = useAgentChat((s) => s.cancel);const loadCatalog = useAgentChat((s) => s.loadCatalog);const loadHealth = useAgentChat((s) => s.loadHealth);+ // Not an aliased narrowing: the IDE branch below still names the surface.+ const minimal: boolean = String(surface) === "jarvis";+ const voiceMode = useVoiceModeSwitch();useEffect(() => {if (!catalog) void loadCatalog();@@ -188,7 +202,7 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {onAttachProblem,);// A shortcut appshot parked for "the next message" joins this one.- useAppshotClaim(files.attachFiles, surface === "jarvis");+ useAppshotClaim(files.attachFiles, surface === "jarvis", activeSessionId ?? "new");const fileInputRef = useRef<HTMLInputElement | null>(null);const pasteRescue = usePasteRescue();@@ -281,6 +295,52 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {// greyed with its "connect" hint, so the list is a map and not a void. No// "active" marker either — that word is the voice sub-agent's, and the// pick here is its own thing: what you choose here is what the chat runs.+ // A provider's mark plus its live health dot — the same face in the IDE's+ // provider list and in the front page's brain pick.+ const providerIcon = useCallback(+ (p: ProviderOption) => {+ const live = liveHealthFor(p, health[p.id]);+ const broken = p.connected && live?.status === "error";+ const working = p.connected && live?.status === "ok";+ return (+ <span className="relative inline-flex shrink-0">+ {/* A coding CLI installed on this machine wears its own mark; a+ catalog row wears its provider family's. Both are real brand+ files — the fallback either would otherwise take is a letter+ in a box, and a letter is not a logo. */}+ {p.agentMark ? (+ <AgentMark+ agent={p.agentMark}+ label={p.label}+ logoUrl={p.logoUrl}+ variant="plain"+ size="sm"+ />+ ) : (+ <ProviderLogo providerId={p.id} label={p.label} size="sm" />+ )}+ {(broken || working) && (+ <span+ data-testid={`provider-health-${p.id}`}+ data-health={live?.status}+ title={live?.detail || undefined}+ aria-label={+ broken+ ? healthReasonLabel(live?.reason ?? "", t)+ : t("agent_chat.provider_health_ok")+ }+ className={cn(+ "absolute -bottom-0.5 -right-0.5 h-2 w-2 rounded-full ring-2 ring-popover",+ broken ? "bg-destructive" : "bg-muted-foreground",+ )}+ />+ )}+ </span>+ );+ },+ [health, t],+ );+const providerGroups = useMemo<ComboboxGroup[]>(() => {const anyConnected = providers.some((p) => p.connected);const shown = anyConnected ? providers.filter((p) => p.connected) : providers;@@ -293,7 +353,6 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {// not paint "Key rejected" on that CLI.const live = liveHealthFor(p, health[p.id]);const broken = p.connected && live?.status === "error";- const working = p.connected && live?.status === "ok";return {value: p.id,label: p.label,@@ -308,41 +367,7 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {// and refusing the click would strand someone whose account recovered// a minute ago. The dot and the reason are the honest part.disabled: !p.connected,- icon: (- <span className="relative inline-flex shrink-0">- {/* A coding CLI installed on this machine wears its own mark; a- catalog row wears its provider family's. Both are real brand- files — the fallback either would otherwise take is a letter- in a box, and a letter is not a logo. */}- {p.agentMark ? (- <AgentMark- agent={p.agentMark}- label={p.label}- logoUrl={p.logoUrl}- variant="plain"- size="sm"- />- ) : (- <ProviderLogo providerId={p.id} label={p.label} size="sm" />- )}- {(broken || working) && (- <span- data-testid={`provider-health-${p.id}`}- data-health={live?.status}- title={live?.detail || undefined}- aria-label={- broken- ? healthReasonLabel(live?.reason ?? "", t)- : t("agent_chat.provider_health_ok")- }- className={cn(- "absolute -bottom-0.5 -right-0.5 h-2 w-2 rounded-full ring-2 ring-popover",- broken ? "bg-destructive" : "bg-muted-foreground",- )}- />- )}- </span>- ),+ icon: providerIcon(p),searchText: `${p.family} ${p.runner}`,};};@@ -362,7 +387,50 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {});}return groups;- }, [providers, health, t]);+ }, [providers, health, providerIcon, t]);++ // The front page's single brain pick: every offered provider as a group,+ // its default first, then its models (live when loaded, else curated).+ const brainGroups = useMemo<ComboboxGroup[]>(() => {+ if (!minimal) return [];+ const anyConnected = providers.some((p) => p.connected);+ const shown = anyConnected ? providers.filter((p) => p.connected) : providers;+ return shown.map((p) => {+ const live = liveModels[p.id];+ const models = p.models_source === "live" && live && live.length ? live : (p.curated_models ?? []);+ const icon = providerIcon(p);+ const disabled = !p.connected;+ const hint = disabled+ ? p.cli_installed === false+ ? t("agent_chat.provider_not_installed")+ : t("agent_chat.provider_connect")+ : undefined;+ return {+ id: p.id,+ label: p.label,+ options: [+ {+ value: brainValue(p.id, ""),+ label: p.label,+ hint: hint ?? t("agent_chat.model_default"),+ icon,+ disabled,+ searchText: p.family,+ },+ ...models+ .filter((m) => m.id)+ .map((m) => ({+ value: brainValue(p.id, m.id),+ label: m.label || m.id,+ hint: hint ?? m.note,+ icon,+ disabled,+ searchText: `${p.label} ${m.id}`,+ })),+ ],+ };+ });+ }, [minimal, providers, liveModels, providerIcon, t]);const modelList = useMemo(() => {if (!provider) return [];@@ -482,8 +550,10 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {// the thing it looks like is a target people miss.{...files.dragHandlers}className={cn(- "relative flex flex-col gap-2 rounded-2xl border border-border-strong bg-card p-3 shadow-rim transition-[border-color,box-shadow]",- "focus-within:border-primary/40",+ "relative flex flex-col transition-[border-color,box-shadow]",+ minimal+ ? "gap-1.5 rounded-[22px] border border-border bg-card px-3 pb-2.5 pt-3 shadow-rim focus-within:border-border-strong"+ : "gap-2 rounded-2xl border border-border-strong bg-card p-3 shadow-rim focus-within:border-primary/40",files.dragging && "border-primary/60",)}>@@ -491,7 +561,7 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {<divdata-testid="composer-drop-overlay"aria-hidden- className="pointer-events-none absolute inset-0 z-10 flex items-center justify-center rounded-2xl border-2 border-dashed border-primary/70 bg-card text-sm font-medium text-primary"+ className="pointer-events-none absolute inset-0 z-10 flex items-center justify-center rounded-[inherit] border-2 border-dashed border-primary/70 bg-card text-sm font-medium text-primary">{t("agent_chat.attach_drop_hint")}</div>@@ -532,8 +602,166 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {pasteRescue.onPaste();files.onPaste(e);}}- className="max-h-[50vh] text-reading scrollbar-jarvis"+ className={cn("max-h-[50vh] text-reading scrollbar-jarvis", minimal && "min-h-[52px] px-1.5")}/>+ {minimal ? (+ <div className="flex items-center gap-1" data-testid="composer-row">+ <ComposerAddMenu+ key={activeSessionId ?? "new"}+ compact+ anchorRef={cardRef}+ provider={draft.provider}+ model={draft.model}+ cwd={draft.cwd}+ stance={draft.permissionMode}+ selected={selectedTools}+ onChange={setSelectedTools}+ onInsert={(row) => fieldRef.current?.insertChip(row)}+ onAttach={() => fileInputRef.current?.click()}+ onFolder={() => void onPickFolder()}+ onConnect={(row) =>+ setActiveSection(+ row.category === "mcp" ? "mcps" : row.category === "skills" ? "skills" : "plugins",+ )+ }+ disabled={!connected || busy}+ />+ {provider && permissionModes.length > 0 && (+ <span title={locks?.permissionMode ?? permissionDescription} className="inline-flex">+ <Combobox+ iconOnly+ value={permissionValue}+ groups={permissionGroups}+ onChange={(v) => void setDraft({ permissionMode: v })}+ ariaLabel={t("agent_chat.pick_permission")}+ fallbackLabel={t("agent_chat.pick_permission")}+ disabled={Boolean(locks?.permissionMode)}+ testId="composer-permission"+ triggerHint={false}+ className="h-8 w-8 justify-center gap-0 rounded-full bg-transparent p-0 text-muted-foreground shadow-none hover:bg-secondary focus-visible:ring-1 [&_svg]:h-4 [&_svg]:w-4"+ />+ </span>+ )}+ {hasPlan && (+ <button+ type="button"+ role="switch"+ aria-checked={planOn}+ aria-label={planOn ? t("agent_chat.mode_plan") : t("agent_chat.mode_build")}+ data-testid="composer-plan"+ onClick={() => void setPlan(!planOn)}+ disabled={Boolean(locks?.permissionMode)}+ title={locks?.permissionMode ?? (planOn ? t("agent_chat.plan_hint") : t("agent_chat.build_hint"))}+ className={cn(+ "inline-flex h-8 items-center gap-1.5 rounded-full text-xs font-medium transition-colors disabled:opacity-50",+ planOn+ ? "bg-accent-soft px-3 text-accent"+ : "w-8 justify-center text-muted-foreground hover:bg-secondary hover:text-foreground",+ )}+ >+ <NotebookPen className="h-4 w-4" aria-hidden />+ {planOn && t("agent_chat.mode_plan")}+ </button>+ )}+ <span className="flex-1" />+ <Pick+ testId="composer-model"+ ariaLabel={t("agent_chat.pick_model")}+ value={brainValue(draft.provider, draft.model)}+ groups={brainGroups}+ onChange={(v) => {+ const [nextProvider, nextModel] = splitBrainValue(v);+ void setDraft(+ nextProvider !== draft.provider ? { provider: nextProvider, model: nextModel } : { model: nextModel },+ );+ }}+ fallbackLabel={+ catalogError+ ? t("agent_chat.catalog_unavailable")+ : provider+ ? draft.model || provider.label+ : t("agent_chat.pick_provider")+ }+ searchPlaceholder={t("agent_chat.search_models")}+ disabled={!catalog || (Boolean(locks?.provider) && Boolean(locks?.model))}+ title={locks?.model ?? locks?.provider}+ className="max-w-[240px]"+ />+ {provider && effortLevels.length > 1 && (+ <Pick+ testId="composer-effort"+ ariaLabel={t("agent_chat.pick_effort")}+ value={draft.effort}+ groups={effortGroups}+ onChange={(v) => void setDraft({ effort: v })}+ fallbackLabel={effortLabel(draft.effort, t)}+ disabled={Boolean(locks?.effort)}+ title={locks?.effort}+ muted+ />+ )}+ <input+ ref={fileInputRef}+ type="file"+ multiple+ className="sr-only"+ tabIndex={-1}+ onChange={(event) => {+ const picked = Array.from(event.currentTarget.files ?? []);+ event.currentTarget.value = "";+ if (picked.length > 0) files.attachFiles(picked);+ }}+ />+ <DictationButton+ dictating={dictating}+ onToggle={toggleDictation}+ disabled={!connected}+ startLabel={t("chats_view.dictation_start")}+ stopLabel={t("chats_view.dictation_stop")}+ shape="round"+ />+ {live && !commands.isCommand && !(commands.canSteer && value.trim()) ? (+ <button+ type="button"+ onClick={() => void cancel()}+ aria-label={t("agent_chat.stop")}+ title={t("agent_chat.stop")}+ data-testid="composer-stop"+ className="ml-0.5 inline-flex h-8 w-8 items-center justify-center rounded-full bg-foreground text-background transition-colors hover:bg-foreground/85"+ >+ <Square className="h-3 w-3 fill-current" />+ </button>+ ) : value.trim() || files.attachments.length > 0 || dictating || commands.isCommand ? (+ <button+ type="button"+ onClick={() => (dictating ? stopDictationAndSend() : void onSend())}+ disabled={!canSend && !canFinishDictation}+ aria-label={t("agent_chat.send")}+ data-testid="composer-send"+ className={cn(+ "ml-0.5 inline-flex h-8 w-8 items-center justify-center rounded-full transition-colors",+ canSend || canFinishDictation+ ? "bg-foreground text-background hover:bg-foreground/85"+ : "bg-secondary text-muted-foreground",+ )}+ >+ <ArrowUp className="h-4 w-4" strokeWidth={2.5} />+ </button>+ ) : (+ <button+ type="button"+ onClick={voiceMode.enter}+ disabled={voiceMode.busy}+ aria-label={t("assistant_chat.voice_enter")}+ title={fill(t("assistant_chat.voice_enter_hint"), { name: assistantName })}+ data-testid="composer-voice-mode"+ className="ml-0.5 inline-flex h-8 w-8 items-center justify-center rounded-full bg-foreground text-background transition-colors hover:bg-foreground/85 disabled:opacity-60"+ >+ <AudioLines className="h-4 w-4" />+ </button>+ )}+ </div>+ ) : (<div className="flex flex-wrap items-center gap-1">{surface === "jarvis" && (<ComposerAddMenu@@ -753,6 +981,7 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {</button>)}</div>+ )}{backendOutdated && (<divclassName="flex items-center gap-2 px-1 text-xs text-muted-foreground"@@ -879,6 +1108,7 @@ function Pick({disabled,title,className,+ muted = false,}: {testId: string;ariaLabel: string;@@ -891,6 +1121,8 @@ function Pick({disabled?: boolean;title?: string;className?: string;+ /** Muted ink — a secondary pick beside a primary one (the effort word). */+ muted?: boolean;}) {// The Combobox draws the selected option's own icon; the leading glyph here// is the column's, shown when the option has none (model, effort, permission).@@ -913,7 +1145,8 @@ function Pick({testId={testId}triggerHint={false}className={cn(- "h-7 w-auto max-w-[200px] gap-1.5 rounded-lg border-transparent bg-transparent py-0 pr-1.5 text-xs font-medium text-foreground shadow-none",+ "h-7 w-auto max-w-[200px] gap-1.5 rounded-lg border-transparent bg-transparent py-0 pr-1.5 text-xs font-medium shadow-none",+ muted ? "text-muted-foreground" : "text-foreground","hover:border-transparent hover:bg-secondary focus-visible:ring-1",icon && !selectedHasIcon ? "pl-7" : "pl-1.5",)}@@ -922,6 +1155,18 @@ function Pick({);}+const BRAIN_SEP = "\u0001";++/** One value for a provider + model pair in the front page's brain pick. */+export function brainValue(provider: string, model: string): string {+ return `${provider}${BRAIN_SEP}${model}`;+}++export function splitBrainValue(value: string): [string, string] {+ const at = value.indexOf(BRAIN_SEP);+ return at < 0 ? [value, ""] : [value.slice(0, at), value.slice(at + 1)];+}+export function effortLabel(level: string, t: (key: string) => string): string {switch (level) {case "":diff --git a/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.test.tsx b/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.test.tsxindex 3694390f8a..7224c3dcbf 100644--- a/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.test.tsx@@ -1,7 +1,7 @@import { cleanup, render, screen, within } from "@testing-library/react";import { afterEach, describe, expect, it } from "vitest";-import { AgentTimeline } from "./AgentTimeline";-import { EMPTY_TIMELINE, reduceEvents } from "./reduce";+import { AgentTimeline, timeStamps } from "./AgentTimeline";+import { EMPTY_TIMELINE, reduceEvents, type TimelineItem } from "./reduce";import type { AgentChatEvent } from "@/lib/agentChatApi";let seq = 0;function ev(kind: string, payload: Record<string, unknown>, tsMs = 1000): AgentChatEvent {@@ -55,3 +55,20 @@ describe("the person's turn with files", () => {expect(turn.querySelector(".jarvis-user-bubble")).not.toBeNull();});});++describe("timeStamps", () => {+ const MIN = 60_000;+ const user = (id: string, tsMs: number) =>+ ({ type: "user", id, text: id, attachments: [], tsMs }) as TimelineItem;++ it("stamps the first message and every one after a 20-minute pause", () => {+ const t0 = new Date(2026, 9, 1, 9, 0).getTime();+ const items = [user("a", t0), user("b", t0 + MIN), user("c", t0 + 5 * MIN), user("d", t0 + 40 * MIN)];+ expect([...timeStamps(items, new Date(2026, 9, 1, 12, 0)).keys()]).toEqual(["a", "d"]);+ });++ it("leads with the date when the message is not from today", () => {+ const t0 = new Date(2026, 8, 24, 8, 13).getTime();+ expect(timeStamps([user("a", t0)], new Date(2026, 9, 1)).get("a")).toContain(",");+ });+});diff --git a/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.tsx b/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.tsxindex de9ff984dd..c736f1534e 100644--- a/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.tsx+++ b/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.tsx@@ -4,7 +4,6 @@ import { CircleAlert, FileText, ImageIcon } from "lucide-react";import { InternalMessageBubble, type InternalParticipant } from "./InternalMessageBubble";import { MessageWithChips } from "./ToolChoiceChips";import { ProviderLogo } from "@/components/providers/ProviderLogo";-import { GigiMark } from "@/components/GigiMark";import { effortLabel } from "./AgentComposer";import { TurnTrace, type Decide } from "./WorkTrace";import type { TimelineItem, TurnItem, TextBlock } from "./reduce";@@ -30,10 +29,11 @@ export function AgentTimeline({/** Sender faces by agent id, where the caller has a roster. */agentsById?: Record<string, InternalParticipant>;/**- * The front page's messenger look (2026-10-01): your words in a signal-blue- * bubble on the right, the assistant's answers in card bubbles on the left- * under a small face, and a centred time stamp wherever the conversation- * paused. The Agentic IDE keeps the document look (the default).+ * The front page's conversation look (2026-10-01, after the Claude app):+ * your words in a soft rounded bubble on the right, the assistant's answer+ * as plain text with no name-and-model header above it, and a quiet+ * centred time stamp wherever the conversation paused. The Agentic IDE+ * keeps the labelled document look (the default).*/bubbles?: boolean;}) {@@ -80,7 +80,7 @@ export function AgentTimeline({className={cn("text-reading",bubbles- ? "jarvis-chat-out max-w-[78%] rounded-3xl rounded-br-lg px-4 py-2.5"+ ? "jarvis-user-bubble max-w-[80%] rounded-[20px] px-4 py-2.5": "jarvis-user-bubble max-w-[85%] rounded-lg px-4 py-3",)}>@@ -237,28 +237,15 @@ const Turn = memo(function Turn({ turn, assistantName, providerLabel, onDecide,}) {const t = useT();return <div className="flex min-w-0 flex-col gap-3" data-testid="agent-turn" data-message-id={turn.id} data-status={turn.status}>- <div className="flex flex-wrap items-center gap-2 text-xs text-muted-foreground">- {bubbles ? <GigiMark size={20} className="rounded-full" /> : null}- <span className="font-medium text-foreground">{assistantName}</span>- <ProviderLogo providerId={turn.provider} label={providerLabel} size="sm" />- <span>{providerLabel}{turn.model ? ` · ${turn.model}` : ""}</span>- {turn.effort ? <span>{effortLabel(turn.effort, t)}</span> : null}- </div>- <TurnTrace- turn={turn}- onDecide={onDecide}- renderText={(text, id) =>- bubbles ? (- text.trim() ? (- <div className="w-fit max-w-full rounded-3xl rounded-tl-lg bg-card px-5 py-1.5" data-testid="agent-bubble">- <Prose block={{ kind: "text", text, id }} />- </div>- ) : null- ) : (- <Prose block={{ kind: "text", text, id }} />- )- }- />+ {!bubbles && (+ <div className="flex flex-wrap items-center gap-2 text-xs text-muted-foreground">+ <span className="font-medium text-foreground">{assistantName}</span>+ <ProviderLogo providerId={turn.provider} label={providerLabel} size="sm" />+ <span>{providerLabel}{turn.model ? ` · ${turn.model}` : ""}</span>+ {turn.effort ? <span>{effortLabel(turn.effort, t)}</span> : null}+ </div>+ )}+ <TurnTrace turn={turn} onDecide={onDecide} renderText={(text, id) => <Prose block={{ kind: "text", text, id }} />} /></div>;});diff --git a/jarvis/ui/web/frontend/src/components/agentchat/ComposerAddMenu.tsx b/jarvis/ui/web/frontend/src/components/agentchat/ComposerAddMenu.tsxindex 68dfa923d2..b5e0a7fd43 100644--- a/jarvis/ui/web/frontend/src/components/agentchat/ComposerAddMenu.tsx+++ b/jarvis/ui/web/frontend/src/components/agentchat/ComposerAddMenu.tsx@@ -27,6 +27,7 @@ export function ComposerAddMenu({onFolder,onConnect,disabled,+ compact = false,}: {anchorRef: RefObject<HTMLElement | null>;provider: string;@@ -40,6 +41,8 @@ export function ComposerAddMenu({onFolder: () => void;onConnect: (row: ToolChoice) => void;disabled: boolean;+ /** A round "+" with no word beside it — the front page's quiet composer. */+ compact?: boolean;}) {const t = useT();const [open, setOpen] = useState(false);@@ -153,10 +156,14 @@ export function ComposerAddMenu({aria-haspopup="dialog"aria-label={t("chat_tools.add")}onClick={() => setOpen(!open)}- className="inline-flex h-8 items-center gap-1.5 rounded-lg px-2 text-xs font-medium text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50"+ title={compact ? t("chat_tools.add") : undefined}+ className={cn(+ "inline-flex h-8 items-center text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",+ compact ? "w-8 justify-center rounded-full" : "gap-1.5 rounded-lg px-2 text-xs font-medium",+ )}>- <Plus className="h-4 w-4" />- {t("chat_tools.add")}+ <Plus className={compact ? "h-[18px] w-[18px]" : "h-4 w-4"} />+ {!compact && t("chat_tools.add")}</button>{open &&createPortal(diff --git a/jarvis/ui/web/frontend/src/components/agentchat/providerHealth.test.tsx b/jarvis/ui/web/frontend/src/components/agentchat/providerHealth.test.tsxindex ea84dd48e0..cd6ba02e80 100644--- a/jarvis/ui/web/frontend/src/components/agentchat/providerHealth.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentchat/providerHealth.test.tsx@@ -179,11 +179,12 @@ describe("the health dot in the provider picker", () => {const onPill = screen.getByTestId("provider-health-claude-api");expect(onPill.getAttribute("data-health")).toBe("error");- fireEvent.click(screen.getByTestId("composer-provider"));+ fireEvent.click(screen.getByTestId("composer-model"));await waitFor(() => expect(screen.getByTestId("provider-health-grok")).toBeTruthy());+ // The front page's brain pick: the pill plus every row of that provider.const broken = screen.getAllByTestId("provider-health-claude-api");- expect(broken).toHaveLength(2); // the pill and the row+ expect(broken.length).toBeGreaterThanOrEqual(2);for (const dot of broken) {expect(dot.getAttribute("data-health")).toBe("error");expect(dot.className).toContain("bg-destructive");@@ -223,7 +224,7 @@ describe("the health dot in the provider picker", () => {<AgentComposer /></AgentChatStoreProvider>,);- fireEvent.click(screen.getByTestId("composer-provider"));+ fireEvent.click(screen.getByTestId("composer-model"));await waitFor(() => expect(screen.getByRole("listbox")).toBeTruthy());expect(screen.queryByTestId("provider-health-claude-api")).toBeNull();expect(screen.queryByTestId("provider-health-grok")).toBeNull();@@ -243,8 +244,8 @@ describe("the health dot in the provider picker", () => {<AgentComposer /></AgentChatStoreProvider>,);- fireEvent.click(screen.getByTestId("composer-provider"));- const option = await screen.findByRole("option", { name: /Anthropic Claude/ });+ fireEvent.click(screen.getByTestId("composer-model"));+ const [option] = await screen.findAllByRole("option", { name: /Anthropic Claude/ });expect(option.getAttribute("aria-disabled")).not.toBe("true");});@@ -307,7 +308,7 @@ describe("the health dot in the provider picker", () => {);expect(screen.queryByTestId("provider-health-claude-api")).toBeNull();expect(screen.queryByText("Key rejected")).toBeNull();- fireEvent.click(screen.getByTestId("composer-provider"));+ fireEvent.click(screen.getByTestId("composer-model"));await waitFor(() => expect(screen.getByRole("listbox")).toBeTruthy());expect(screen.queryByText("Key rejected")).toBeNull();expect(screen.queryByTestId("provider-health-claude-api")).toBeNull();diff --git a/jarvis/ui/web/frontend/src/components/home/AssistantChat.tsx b/jarvis/ui/web/frontend/src/components/home/AssistantChat.tsxindex 004ffd3228..13950a2f3a 100644--- a/jarvis/ui/web/frontend/src/components/home/AssistantChat.tsx+++ b/jarvis/ui/web/frontend/src/components/home/AssistantChat.tsx@@ -1,73 +1,66 @@-import { lazy, Suspense, useCallback, useState } from "react";+import { lazy, Suspense } from "react";+import { Keyboard } from "lucide-react";-import { AssistantProfilePanel } from "@/components/home/AssistantProfilePanel";-import { ChatTopBar } from "@/components/home/ChatTopBar";import { VoiceStage } from "@/components/home/VoiceStage";-import { useT } from "@/i18n";+import { useVoiceModeSwitch } from "@/components/home/assistantStatus";+import { fill, useT } from "@/i18n";+import { useEventStore } from "@/store/events";import { useHomeStore } from "@/store/home";const ChatStage = lazy(() =>import("@/components/home/ChatStage").then((module) => ({ default: module.ChatStage })),);-const PANEL_KEY = "jarvis.home.assistant-panel.v1";--function readPanelOpen(): boolean {- try {- return window.localStorage.getItem(PANEL_KEY) !== "closed";- } catch {- return true;- }-}--function writePanelOpen(open: boolean): void {- try {- window.localStorage.setItem(PANEL_KEY, open ? "open" : "closed");- } catch {- /* not remembering the choice must not stop the panel from toggling */- }-}-/*** The front page: ONE chat with the assistant (2026-10-01).*- * A top bar (who, what they are doing, the voice-mode button), the- * conversation under it, and the assistant card on the right on wide- * windows. Voice mode is a state of this chat, not another page: it swaps- * the typed column for the spoken transcript and the Jarvis bar, and the- * same button brings the typing back. The card's open/closed choice is- * remembered per browser.+ * Nothing but the conversation — no header row, no side card. An empty chat+ * is a short greeting over the composer in the middle of the page, the way+ * the Claude app opens; the composer itself carries every control,+ * including the round voice-mode button. Voice mode is a state of this+ * chat, not another page: it swaps the typed column for the spoken+ * transcript and the Jarvis bar, and one quiet button in the corner brings+ * the typing back.*/export function AssistantChat() {const t = useT();const surface = useHomeStore((s) => s.surface);- const [panelOpen, setPanelOpen] = useState(readPanelOpen);- const togglePanel = useCallback(() => {- setPanelOpen((open) => {- writePanelOpen(!open);- return !open;- });- }, []);return (- <div className="flex min-h-0 flex-1" data-testid="assistant-chat">- <div className="flex min-w-0 flex-1 flex-col">- <ChatTopBar panelOpen={panelOpen} onTogglePanel={togglePanel} />- {surface === "chat" ? (- <Suspense- fallback={- <div role="status" className="flex min-h-0 flex-1 items-center justify-center text-sm text-muted-foreground">- {t("common.loading")}- </div>- }- >- <ChatStage />- </Suspense>- ) : (- <VoiceStage />- )}- </div>- {panelOpen && <AssistantProfilePanel onClose={togglePanel} />}+ <div className="relative flex min-h-0 flex-1 flex-col" data-testid="assistant-chat">+ {surface === "voice" && <BackToTyping />}+ {surface === "chat" ? (+ <Suspense+ fallback={+ <div role="status" className="flex min-h-0 flex-1 items-center justify-center text-sm text-muted-foreground">+ {t("common.loading")}+ </div>+ }+ >+ <ChatStage />+ </Suspense>+ ) : (+ <VoiceStage />+ )}</div>);}++/** Voice mode's way out — ends a running call and shows the composer again. */+function BackToTyping() {+ const t = useT();+ const assistantName = useEventStore((s) => s.assistantName);+ const voice = useVoiceModeSwitch();+ return (+ <button+ type="button"+ onClick={voice.exit}+ data-testid="voice-mode-exit"+ title={fill(t("assistant_chat.voice_exit_hint"), { name: assistantName })}+ className="absolute right-4 top-3 z-10 flex h-9 items-center gap-2 rounded-full border border-border bg-card px-3.5 text-sm font-medium text-foreground transition-colors hover:bg-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"+ >+ <Keyboard aria-hidden className="h-4 w-4 text-muted-foreground" />+ {t("assistant_chat.voice_exit")}+ </button>+ );+}diff --git a/jarvis/ui/web/frontend/src/components/home/AssistantProfilePanel.test.tsx b/jarvis/ui/web/frontend/src/components/home/AssistantProfilePanel.test.tsxdeleted file mode 100644index 26c3858a56..0000000000--- a/jarvis/ui/web/frontend/src/components/home/AssistantProfilePanel.test.tsx+++ /dev/null@@ -1,91 +0,0 @@-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import { cleanup, render, screen, waitFor } from "@testing-library/react";--import { AssistantProfilePanel, chatFacts } from "@/components/home/AssistantProfilePanel";-import { timeStamps } from "@/components/agentchat/AgentTimeline";-import type { TimelineItem } from "@/components/agentchat/reduce";-import { useEventStore } from "@/store/events";--vi.mock("@/components/MascotGigi", () => ({ MascotGigi: () => <div data-testid="mascot" /> }));--const MIN = 60_000;--function user(id: string, tsMs: number, origin?: "control"): TimelineItem {- return { type: "user", id, text: id, attachments: [], tsMs, ...(origin ? { origin } : {}) };-}--function turn(id: string, startedMs: number, tools: number): TimelineItem {- return {- type: "turn", id, provider: "p", model: "m", effort: "", runner: "api", status: "done",- blocks: [- { kind: "text", id: `${id}-t`, text: "hi" },- ...Array.from({ length: tools }, (_, i) => ({- kind: "tool" as const, callId: `${id}-${i}`, name: "x", input: {}, output: null, isError: false,- })),- ],- startedMs, durationMs: 1, usage: null, liveUsage: null, costUsd: null, error: null,- } as TimelineItem;-}--describe("timeStamps", () => {- it("stamps the first message and every one after a 20-minute pause", () => {- const t0 = new Date(2026, 9, 1, 9, 0).getTime();- const items = [user("a", t0), turn("b", t0 + MIN, 0), user("c", t0 + 5 * MIN), user("d", t0 + 40 * MIN)];- const stamps = timeStamps(items, new Date(2026, 9, 1, 12, 0));- expect([...stamps.keys()]).toEqual(["a", "d"]);- });-- it("leads with the date when the message is not from today", () => {- const t0 = new Date(2026, 8, 24, 8, 13).getTime();- const label = timeStamps([user("a", t0)], new Date(2026, 9, 1)).get("a") ?? "";- expect(label).toContain(",");- });-});--describe("chatFacts", () => {- it("counts what the person wrote, the answers and the tool calls", () => {- const facts = chatFacts([user("a", 10), turn("b", 20, 3), user("c", 30, "control"), turn("d", 40, 1)]);- expect(facts).toEqual({ messages: 1, answers: 2, tools: 4, startedMs: 10 });- });-});--describe("AssistantProfilePanel", () => {- beforeEach(() => {- useEventStore.setState({ assistantName: "George", connected: true, voiceState: "idle" });- vi.stubGlobal(- "fetch",- vi.fn(async (url: string) => {- if (String(url).startsWith("/api/settings/agent-instructions")) {- return new Response(- JSON.stringify({ content: "x", exists: true, filename: "George.md", template: "", char_count: 1200 }),- { status: 200 },- );- }- if (String(url).startsWith("/api/wiki/health")) {- return new Response(JSON.stringify({ ok: true, health: { vault_pages: 42, last_write: null } }), { status: 200 });- }- return new Response("{}", { status: 404 });- }),- );- });-- afterEach(() => {- cleanup();- vi.unstubAllGlobals();- });-- it("shows the name, the soul file and the wiki page count from real reads", async () => {- render(<AssistantProfilePanel onClose={() => {}} />);- expect(screen.getByTestId("assistant-panel-name").textContent).toBe("George");- await waitFor(() => expect(screen.getByTestId("assistant-tile-memory").textContent).toContain("42"));- const soul = screen.getByTestId("assistant-tile-soul").textContent ?? "";- expect(soul).toContain("George.md");- expect(soul).toMatch(/1[.,]?200/);- });-- it("never shows an invented number while the reads are in flight", () => {- vi.stubGlobal("fetch", vi.fn(() => new Promise<Response>(() => {})));- render(<AssistantProfilePanel onClose={() => {}} />);- expect(screen.getByTestId("assistant-tile-memory").textContent).not.toMatch(/\d/);- });-});diff --git a/jarvis/ui/web/frontend/src/components/home/AssistantProfilePanel.tsx b/jarvis/ui/web/frontend/src/components/home/AssistantProfilePanel.tsxdeleted file mode 100644index fd67284dff..0000000000--- a/jarvis/ui/web/frontend/src/components/home/AssistantProfilePanel.tsx+++ /dev/null@@ -1,318 +0,0 @@-import { useEffect, useMemo, useState, type ReactNode } from "react";-import { ArrowUpRight, AudioLines, Keyboard, Loader2, Plus, X } from "lucide-react";--import { useAgentChat } from "@/components/agentchat/AgentChatStoreContext";-import { MascotGigi } from "@/components/MascotGigi";-import { ProviderLogo } from "@/components/providers/ProviderLogo";-import { ScrollArea } from "@/components/ui/scroll-area";-import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";-import { TONE_DOT, useAssistantStatus, useVoiceModeSwitch } from "@/components/home/assistantStatus";-import { useAgentInstructions } from "@/hooks/useAgentInstructions";-import { fill, useT } from "@/i18n";-import { startNewTextChat } from "@/lib/newChat";-import { cn } from "@/lib/utils";-import { fetchWikiHealth, type WikiHealthSnapshot } from "@/lib/wikiApi";-import { useEventStore } from "@/store/events";-import type { TimelineItem } from "@/components/agentchat/reduce";--/**- * The assistant card — the right-hand column of the front page.- *- * Who you are talking to, as a contact card in a messenger: the living- * mascot in a round frame (it reacts to the voice), the name, what it is- * doing right now, and the two things you do with an assistant — talk to it- * or start over. Under that two tabs:- *- * Overview — two vivid tiles that open what makes this assistant YOURS:- * Soul (the standing-instructions file it reads every turn)- * and Memory (the wiki it writes to), plus the model this chat- * runs on.- * This chat — plain facts about the conversation on screen, counted from- * its own timeline.- *- * Every number comes from a real read; while a read is in flight the tile- * shows a placeholder bar, never an invented zero.- */-export function AssistantProfilePanel({ onClose }: { onClose: () => void }) {- const t = useT();- const assistantName = useEventStore((s) => s.assistantName);- const status = useAssistantStatus();- const voice = useVoiceModeSwitch();-- return (- <aside- className="hidden w-[320px] shrink-0 flex-col border-l border-border bg-sidebar xl:flex"- data-testid="assistant-panel"- aria-label={assistantName}- >- <div className="flex justify-end px-3 pt-3">- <button- type="button"- onClick={onClose}- aria-label={t("assistant_chat.panel_close")}- title={t("assistant_chat.panel_close")}- data-testid="assistant-panel-close"- className="flex h-8 w-8 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"- >- <X aria-hidden className="h-4 w-4" />- </button>- </div>- <ScrollArea className="min-h-0 flex-1">- <div className="flex flex-col items-center px-5 pb-6">- <div className="relative">- <div- className={cn(- "flex h-28 w-28 items-center justify-center overflow-hidden rounded-full border border-border bg-card shadow-float transition-shadow",- status.tone === "live" && "ring-4 ring-accent/40",- )}- >- <MascotGigi size={84} reactToVoice enableComments={false} />- </div>- <span- aria-hidden- className={cn(- "absolute bottom-1.5 right-1.5 h-4 w-4 rounded-full ring-4 ring-sidebar",- TONE_DOT[status.tone],- status.tone === "live" && "animate-jarvis-pulse",- )}- />- </div>- <h2 className="mt-4 text-xl font-semibold text-foreground-strong" data-testid="assistant-panel-name">- {assistantName}- </h2>- <p className="mt-1 flex items-center gap-1.5 text-sm text-muted-foreground" data-testid="assistant-panel-status">- {status.tone === "busy" || status.tone === "live" ? (- <Loader2 aria-hidden className="h-3.5 w-3.5 animate-spin text-accent motion-reduce:animate-none" />- ) : null}- {status.label}- </p>-- <div className="mt-5 grid w-full grid-cols-2 gap-2">- <button- type="button"- onClick={voice.toggle}- disabled={voice.busy}- data-testid="assistant-panel-talk"- className={cn(- "flex h-10 items-center justify-center gap-2 rounded-full text-sm font-medium transition-colors",- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60",- "bg-accent text-accent-foreground hover:bg-accent/90",- )}- >- {voice.on ? <Keyboard aria-hidden className="h-4 w-4" /> : <AudioLines aria-hidden className="h-4 w-4" />}- {t(voice.on ? "assistant_chat.voice_exit" : "assistant_chat.talk")}- </button>- <button- type="button"- onClick={() => {- voice.exit();- startNewTextChat();- }}- data-testid="assistant-panel-new-chat"- className="flex h-10 items-center justify-center gap-2 rounded-full border border-border bg-card text-sm font-medium text-foreground transition-colors hover:bg-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"- >- <Plus aria-hidden className="h-4 w-4" />- {t("assistant_chat.new_chat")}- </button>- </div>-- <Tabs defaultValue="overview" className="mt-6 w-full">- <TabsList className="grid w-full grid-cols-2">- <TabsTrigger value="overview" data-testid="assistant-tab-overview">{t("assistant_chat.tab_overview")}</TabsTrigger>- <TabsTrigger value="chat" data-testid="assistant-tab-chat">{t("assistant_chat.tab_chat")}</TabsTrigger>- </TabsList>- <TabsContent value="overview" className="mt-4 space-y-4">- <div className="grid grid-cols-2 gap-3">- <SoulTile />- <MemoryTile />- </div>- <BrainRow />- </TabsContent>- <TabsContent value="chat" className="mt-4">- <ChatFacts />- </TabsContent>- </Tabs>- </div>- </ScrollArea>- </aside>- );-}--function SoulTile() {- const t = useT();- const assistantName = useEventStore((s) => s.assistantName);- const setActiveSection = useEventStore((s) => s.setActiveSection);- const { config, loading, error } = useAgentInstructions();- const value = loading- ? null- : error || !config- ? t("assistant_chat.memory_unknown")- : config.exists- ? fill(t("assistant_chat.soul_chars"), { count: config.char_count.toLocaleString() })- : t("assistant_chat.soul_empty");- const file = config?.filename || `${assistantName}.md`;- return (- <VividTile- kind="soul"- title={t("assistant_chat.soul")}- subtitle={file}- value={value}- hint={fill(t("assistant_chat.soul_open"), { file, name: assistantName })}- onOpen={() => setActiveSection("agent-instructions")}- testId="assistant-tile-soul"- />- );-}--function MemoryTile() {- const t = useT();- const assistantName = useEventStore((s) => s.assistantName);- const setActiveSection = useEventStore((s) => s.setActiveSection);- const [health, setHealth] = useState<WikiHealthSnapshot | null | undefined>(undefined);- useEffect(() => {- let alive = true;- void fetchWikiHealth().then((snapshot) => {- if (alive) setHealth(snapshot);- });- return () => {- alive = false;- };- }, []);- const value =- health === undefined- ? null- : health === null- ? t("assistant_chat.memory_unknown")- : fill(t("assistant_chat.memory_pages"), { count: health.vault_pages.toLocaleString() });- // The last time something was written to the wiki, when this run has seen- // a write; the health record lives in memory and starts empty after a boot.- const lastWrite = health?.last_write?.ok && health.last_write.ts- ? new Date(health.last_write.ts * 1000).toLocaleDateString(undefined, { month: "2-digit", day: "2-digit", year: "2-digit" })- : null;- return (- <VividTile- kind="memory"- title={t("assistant_chat.memory")}- subtitle={lastWrite ?? t("assistant_chat.memory_hint")}- value={value}- hint={fill(t("assistant_chat.memory_open"), { name: assistantName })}- onOpen={() => setActiveSection("memory")}- testId="assistant-tile-memory"- />- );-}--function VividTile({- kind,- title,- subtitle,- value,- hint,- onOpen,- testId,-}: {- kind: "soul" | "memory";- title: string;- subtitle: string;- /** Null while the read is in flight — drawn as a placeholder bar. */- value: string | null;- hint: string;- onOpen: () => void;- testId: string;-}) {- return (- <button- type="button"- onClick={onOpen}- title={hint}- aria-label={hint}- data-testid={testId}- className={cn(- kind === "soul" ? "jarvis-tile-soul" : "jarvis-tile-memory",- "group flex aspect-[4/5] flex-col rounded-2xl p-3.5 text-left shadow-float transition-transform duration-200",- "hover:-translate-y-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-sidebar motion-reduce:transition-none motion-reduce:hover:translate-y-0",- )}- >- <span className="text-lg font-bold uppercase leading-tight tracking-tight">{title}</span>- <span className="mt-0.5 truncate font-mono text-xs uppercase tracking-wide opacity-85">{subtitle}</span>- <span className="mt-auto flex items-end justify-between gap-2">- {value === null ? (- <span aria-hidden className="h-3 w-16 animate-pulse rounded bg-current opacity-30 motion-reduce:animate-none" />- ) : (- <span className="font-mono text-xs font-semibold leading-tight">{value}</span>- )}- <ArrowUpRight aria-hidden className="h-4 w-4 shrink-0 opacity-80 transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5 motion-reduce:transition-none" />- </span>- </button>- );-}--/** The provider and model this chat runs on — the composer's picks, read back. */-function BrainRow() {- const t = useT();- const draft = useAgentChat((s) => s.draft);- const catalog = useAgentChat((s) => s.catalog);- const provider = catalog?.providers.find((p) => p.id === draft.provider);- const model = provider?.curated_models.find((m) => m.id === draft.model)?.label || draft.model;- return (- <div className="rounded-xl border border-border bg-card px-3.5 py-3" data-testid="assistant-brain">- <div className="text-xs font-medium text-muted-foreground">{t("assistant_chat.brain")}</div>- {provider ? (- <div className="mt-1.5 flex min-w-0 items-center gap-2 text-sm text-foreground">- <ProviderLogo providerId={provider.id} label={provider.label} size="sm" />- <span className="truncate font-medium">{provider.label}</span>- <span className="truncate text-muted-foreground">· {model || t("agent_chat.model_default")}</span>- </div>- ) : (- <div className="mt-1.5 text-sm text-muted-foreground">{t("assistant_chat.brain_none")}</div>- )}- </div>- );-}--/** What this conversation holds, counted from its own timeline. */-export function chatFacts(items: TimelineItem[]) {- let messages = 0;- let answers = 0;- let tools = 0;- let startedMs = 0;- for (const item of items) {- const ts = item.type === "turn" ? item.startedMs : item.tsMs;- if (ts && (!startedMs || ts < startedMs)) startedMs = ts;- if (item.type === "user" && item.origin !== "control") messages += 1;- if (item.type === "turn") {- answers += 1;- tools += item.blocks.filter((b) => b.kind === "tool").length;- }- }- return { messages, answers, tools, startedMs };-}--function ChatFacts() {- const t = useT();- const items = useAgentChat((s) => s.timeline.items);- const facts = useMemo(() => chatFacts(items), [items]);- if (!items.length) {- return <p className="px-1 text-sm text-muted-foreground" data-testid="assistant-chat-empty">{t("assistant_chat.chat_empty")}</p>;- }- const started = facts.startedMs- ? new Date(facts.startedMs).toLocaleString(undefined, { month: "short", day: "numeric", hour: "numeric", minute: "2-digit" })- : "—";- return (- <dl className="divide-y divide-border rounded-xl border border-border bg-card" data-testid="assistant-chat-facts">- <Fact label={t("assistant_chat.chat_started")}>{started}</Fact>- <Fact label={t("assistant_chat.chat_messages")}>{facts.messages}</Fact>- <Fact label={t("assistant_chat.chat_answers")}>{facts.answers}</Fact>- <Fact label={t("assistant_chat.chat_tools")}>{facts.tools}</Fact>- </dl>- );-}--function Fact({ label, children }: { label: string; children: ReactNode }) {- return (- <div className="flex items-center justify-between gap-3 px-3.5 py-2.5 text-sm">- <dt className="text-muted-foreground">{label}</dt>- <dd className="font-medium tabular-nums text-foreground">{children}</dd>- </div>- );-}diff --git a/jarvis/ui/web/frontend/src/components/home/ChatStage.test.tsx b/jarvis/ui/web/frontend/src/components/home/ChatStage.test.tsxindex 06718e717c..033ad2b398 100644--- a/jarvis/ui/web/frontend/src/components/home/ChatStage.test.tsx+++ b/jarvis/ui/web/frontend/src/components/home/ChatStage.test.tsx@@ -187,29 +187,64 @@ describe("ChatStage (agent chat)", () => {vi.unstubAllGlobals();});- it("shows the greeting and the composer with the four picks when there is nothing yet", () => {+ it("opens on a short greeting over the quiet composer when there is nothing yet", () => {render(<ChatStage />);expect(screen.getByTestId("chat-stage").getAttribute("data-empty")).toBe("true");+ // One line, no explainer paragraph under it.+ expect(screen.getByTestId("home-greeting").querySelector("p")).toBeNull();const composer = screen.getByTestId("agent-composer");- expect(within(composer).getByTestId("composer-provider").getAttribute("data-value")).toBe("claude-api");- expect(within(composer).getByTestId("composer-model")).toBeTruthy();+ expect(within(composer).getByTestId("composer-row")).toBeTruthy();+ // Provider and model are ONE pick on the front page.+ expect(within(composer).queryByTestId("composer-provider")).toBeNull();+ expect(within(composer).getByTestId("composer-model").getAttribute("data-value")).toBe("claude-api\u0001");expect(within(composer).getByTestId("composer-effort").getAttribute("data-value")).toBe("high");expect(within(composer).getByTestId("composer-permission").getAttribute("data-value")).toBe("acceptEdits");// Claude Code has a plan entry, so the Build | Plan switch is drawn.expect(within(composer).getByTestId("composer-plan").getAttribute("aria-checked")).toBe("false");+ // No surface chip, no paperclip: "+" carries attaching.+ expect(within(composer).queryByTestId("composer-surface")).toBeNull();+ expect(within(composer).queryByTestId("composer-attach")).toBeNull();+ expect(within(composer).getByTestId("composer-add")).toBeTruthy();});- it("says who is answering: the front page names the assistant, the IDE names a coding agent", () => {- // The maintainer's complaint, twice over: the two chats wear the same face,- // so nothing on screen said which of them you were in (2026-08-25). They- // are different harnesses — Jarvis with a keyboard vs a coding agent in a- // folder — and the composer now says so before a word is typed.+ it("turns the empty composer's round button into voice mode, and into Send once there is text", () => {+ useHomeStore.setState({ surface: "chat" });+ render(<ChatStage />);+ expect(screen.queryByTestId("composer-send")).toBeNull();+ const box = screen.getByRole("textbox");+ box.textContent = "hello";+ fireEvent.input(box);+ expect(screen.getByTestId("composer-send")).toBeTruthy();+ expect(screen.queryByTestId("composer-voice-mode")).toBeNull();+ box.textContent = "";+ fireEvent.input(box);+ fireEvent.click(screen.getByTestId("composer-voice-mode"));+ expect(useHomeStore.getState().surface).toBe("voice");+ useHomeStore.setState({ surface: "chat" });+ });++ it("lists each connected provider with its models in the one brain pick", async () => {+ render(<ChatStage />);+ fireEvent.click(screen.getByTestId("composer-model"));+ const panel = await screen.findByTestId("composer-model-panel");+ const options = within(panel).getAllByRole("option").map((el) => el.getAttribute("data-value"));+ expect(options).toEqual([+ "claude-api\u0001",+ "claude-api\u0001claude-opus-5",+ "claude-api\u0001claude-sonnet-5",+ ]);+ // Codex is not installed on this box, so it is not offered at all.+ expect(within(panel).queryByText("GPT-5.4")).toBeNull();+ fireEvent.click(within(panel).getByText("Claude Sonnet 5"));+ await act(async () => {});+ expect(useAgentChatStore.getState().draft.provider).toBe("claude-api");+ expect(useAgentChatStore.getState().draft.model).toBe("claude-sonnet-5");+ });++ it("says who is answering in the IDE; the front page needs no label for its own assistant", () => {const { unmount } = render(<ChatStage />);- const front = screen.getByTestId("composer-surface");- expect(front.getAttribute("data-surface")).toBe("jarvis");- expect(front.textContent).toContain("Jarvis");- // The front page's subtitle says it is the assistant the microphone reaches.- expect(screen.getByTestId("home-greeting").textContent).toContain("microphone");+ expect(screen.queryByTestId("composer-surface")).toBeNull();+ expect(screen.getByTestId("home-greeting")).toBeTruthy();unmount();useAgentSessionStore.setState(seedState());@@ -234,7 +269,6 @@ describe("ChatStage (agent chat)", () => {// nobody chose (maintainer, 2026-08-25). The folder itself did not go// away; a CLI seat still starts in one. It is just no longer a control.const { unmount } = render(<ChatStage />);- expect(screen.getByTestId("composer-surface").getAttribute("data-surface")).toBe("jarvis");expect(screen.queryByTestId("composer-folder")).toBeNull();unmount();@@ -248,7 +282,7 @@ describe("ChatStage (agent chat)", () => {expect(screen.getByTestId("composer-folder")).toBeTruthy();});- it("bylines a turn with the assistant on the front page and with the coding agent in the IDE", () => {+ it("answers as plain text on the front page and bylines the coding agent in the IDE", () => {const timeline = reduceEvents(EMPTY_TIMELINE, [ev("user_message", { text: "list the files" }),ev("turn_started", { turn_id: "t1", provider: "claude-api", model: "claude-opus-5", effort: "high", runner: "brain" }),@@ -257,7 +291,9 @@ describe("ChatStage (agent chat)", () => {]);useAgentChatStore.setState({ activeSessionId: "s1", timeline });const { unmount } = render(<ChatStage />);- expect(screen.getByTestId("agent-turn").textContent).toContain("Jarvis");+ const front = screen.getByTestId("agent-turn");+ expect(front.textContent).toContain("Two files.");+ expect(front.textContent).not.toContain("Anthropic Claude");unmount();useAgentSessionStore.setState({ ...seedState(), activeSessionId: "ide-1", timeline });@@ -289,7 +325,8 @@ describe("ChatStage (agent chat)", () => {cli_installed: null,};const localRow = { ...apiRow, id: "ollama", label: "Ollama", family: "ollama", keyless: true };- useAgentChatStore.setState({+ useAgentSessionStore.setState({+ ...seedState(),catalog: { ...CATALOG, providers: [...CATALOG.providers, apiRow, localRow] },connections: [{ jarvis: "claude-api", key_set: true, is_active_brain: false },@@ -297,7 +334,11 @@ describe("ChatStage (agent chat)", () => {{ jarvis: "openai", key_set: true, is_active_brain: true },],});- render(<ChatStage />);+ render(+ <AgentChatStoreProvider store={useAgentSessionStore}>+ <ChatStage />+ </AgentChatStoreProvider>,+ );fireEvent.click(screen.getByTestId("composer-provider"));const panel = await screen.findByTestId("composer-provider-panel");// The headings, in catalog order — never "connected / not connected".@@ -313,13 +354,18 @@ describe("ChatStage (agent chat)", () => {});it("with nothing connected yet, lists every provider greyed with its connect hint", async () => {- useAgentChatStore.setState({+ useAgentSessionStore.setState({+ ...seedState(),connections: [{ jarvis: "claude-api", key_set: false, is_active_brain: false },{ jarvis: "openai-codex", key_set: false, is_active_brain: false },],});- render(<ChatStage />);+ render(+ <AgentChatStoreProvider store={useAgentSessionStore}>+ <ChatStage />+ </AgentChatStoreProvider>,+ );fireEvent.click(screen.getByTestId("composer-provider"));const panel = await screen.findByTestId("composer-provider-panel");const options = within(panel).getAllByRole("option");@@ -424,6 +470,9 @@ describe("ChatStage (agent chat)", () => {const hint = screen.getByTestId("composer-connect-hint");expect(hint.textContent).toContain("Anthropic Claude");// Send stays off until the provider is usable.+ const box = screen.getByRole("textbox");+ box.textContent = "hello";+ fireEvent.input(box);expect((screen.getByTestId("composer-send") as HTMLButtonElement).disabled).toBe(true);});@@ -436,8 +485,12 @@ describe("ChatStage (agent chat)", () => {ev("assistant_text", { turn_id: "t1", message_id: "m1", text: "Two files: **a.py** and b.py." }),ev("turn_finished", { turn_id: "t1", status: "done", duration_ms: 1200, usage: {} }),]);- useAgentChatStore.setState({ activeSessionId: "s1", timeline });- render(<ChatStage />);+ useAgentSessionStore.setState({ ...seedState(), activeSessionId: "s1", timeline });+ render(+ <AgentChatStoreProvider store={useAgentSessionStore}>+ <ChatStage />+ </AgentChatStoreProvider>,+ );expect(screen.getByTestId("chat-stage").getAttribute("data-empty")).toBe("false");expect(screen.getByTestId("agent-message-user").textContent).toContain("list the files");const turn = screen.getByTestId("agent-turn");diff --git a/jarvis/ui/web/frontend/src/components/home/ChatStage.tsx b/jarvis/ui/web/frontend/src/components/home/ChatStage.tsxindex b9b34de7b2..c7a05d0195 100644--- a/jarvis/ui/web/frontend/src/components/home/ChatStage.tsx+++ b/jarvis/ui/web/frontend/src/components/home/ChatStage.tsx@@ -14,9 +14,8 @@ import { VoiceThreadStage } from "@/components/home/VoiceThreadStage";import type { ApprovalDecision } from "@/lib/agentChatApi";import { fill, useT } from "@/i18n";import { folderLeaf } from "@/lib/folderPath";-import { AudioLines, FolderCode } from "lucide-react";-import { useVoiceModeSwitch } from "@/components/home/assistantStatus";-import { useWakeWord } from "@/hooks/useWakeWord";+import { useHistoryPolling } from "@/hooks/useHistoryPolling";+import { FolderCode } from "lucide-react";/*** The chat stage — the typed half of the front page: Jarvis with a keyboard.@@ -79,8 +78,8 @@ function ChatStageContent() {useEffect(() => {if (!catalog) void loadCatalog();- void loadSessions();- }, [catalog, loadCatalog, loadSessions]);+ }, [catalog, loadCatalog]);+ useHistoryPolling(loadSessions);const providerLabel = useCallback((id: string) => catalog?.providers.find((p) => p.id === id)?.label ?? id,@@ -203,19 +202,20 @@ function ChatStageContent() {// chat is coding sessions and never shows a spoken thread.if (surface === "jarvis" && voiceThreadId && !activeSessionId) return <VoiceThreadStage />;+ // The front page opens the way the Claude app does: one short line and+ // the composer, a little above the middle, nothing else to read first.if (!hasContent) {return (<div className="flex min-h-0 flex-1 flex-col items-center" data-testid="chat-stage" data-empty="true">- <div className="flex w-full max-w-[720px] flex-1 flex-col justify-center gap-8 px-6 pb-20">- {isJarvis ? (- <Greeting subtitle={subtitle} />- ) : (- <FolderHeadline folder={cwd} subtitle={subtitle} />- )}- <div className="flex flex-col gap-4">- <AgentComposer autoFocus />- {isJarvis && <TalkInvitation />}- </div>+ <div+ className={+ isJarvis+ ? "flex w-full max-w-[680px] flex-1 flex-col justify-center gap-7 px-6 pb-[14vh]"+ : "flex w-full max-w-[720px] flex-1 flex-col justify-center gap-8 px-6 pb-20"+ }+ >+ {isJarvis ? <Greeting /> : <FolderHeadline folder={cwd} subtitle={subtitle} />}+ <AgentComposer autoFocus /></div></div>);@@ -226,7 +226,7 @@ function ChatStageContent() {<ScrollArea ref={setRoot} className="min-h-0 w-full flex-1"><divref={columnRef}- className="relative mx-auto flex w-full max-w-[720px] flex-col gap-5 px-6 pb-6 pt-8"+ className="relative mx-auto flex w-full max-w-[720px] flex-col gap-6 px-6 pb-6 pt-8"><AgentTimelineitems={items}@@ -267,34 +267,6 @@ function FolderHeadline({ folder, subtitle }: { folder: string; subtitle: string);}-/**- * Under the empty front-page composer: the way into voice mode, for someone- * who would rather talk. The same switch as the top bar's button- * (useVoiceModeSwitch) — and, when a wake word is set, the reminder that- * saying it works from anywhere.- */-function TalkInvitation() {- const t = useT();- const voice = useVoiceModeSwitch();- const { config } = useWakeWord();- const wake = config?.phrase.trim() || "";- return (- <div className="flex flex-wrap items-center justify-center gap-x-2 gap-y-1 text-sm text-muted-foreground" data-testid="chat-talk-invitation">- <button- type="button"- onClick={voice.enter}- disabled={voice.busy}- data-testid="chat-talk-invitation-start"- className="flex items-center gap-2 rounded-full px-3 py-1.5 font-medium text-foreground transition-colors hover:bg-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60"- >- <AudioLines aria-hidden className="h-4 w-4 text-accent" />- {t("assistant_chat.talk_cta")}- </button>- {wake && <span>{fill(t("assistant_chat.talk_cta_wake"), { wake })}</span>}- </div>- );-}-/** Room kept under the turn so the composer's shadow never kisses the text. */const TURN_BOTTOM_PAD_PX = 24;diff --git a/jarvis/ui/web/frontend/src/components/home/ChatTopBar.tsx b/jarvis/ui/web/frontend/src/components/home/ChatTopBar.tsxdeleted file mode 100644index 358862c692..0000000000--- a/jarvis/ui/web/frontend/src/components/home/ChatTopBar.tsx+++ /dev/null@@ -1,111 +0,0 @@-import { AudioLines, Keyboard, Loader2, PanelRightClose, PanelRightOpen } from "lucide-react";--import { GigiMark } from "@/components/GigiMark";-import { TONE_DOT, useAssistantStatus, useVoiceModeSwitch } from "@/components/home/assistantStatus";-import { fill, useT } from "@/i18n";-import { cn } from "@/lib/utils";-import { useEventStore } from "@/store/events";--/**- * The front page's top bar: who you are talking to, what they are doing, and- * the one button that turns the chat into a spoken conversation.- *- * Left, the assistant as a pill — face, name, status dot; clicking it shows- * or hides the assistant card on the right. Centre, a status pill that only- * appears when there is news (working, listening, speaking, offline): "Ready"- * is the normal state and earns no space. Right, the voice-mode button —- * outlined while you type, filled in the signal hue while voice mode is on,- * with a live ping while the microphone is actually open.- */-export function ChatTopBar({- panelOpen,- onTogglePanel,-}: {- panelOpen: boolean;- onTogglePanel: () => void;-}) {- const t = useT();- const assistantName = useEventStore((s) => s.assistantName);- const status = useAssistantStatus();- const voice = useVoiceModeSwitch();- const news = status.tone !== "ready";-- return (- <header className="relative flex h-14 shrink-0 items-center gap-2 px-4" data-testid="chat-top-bar">- <button- type="button"- onClick={onTogglePanel}- title={fill(t(panelOpen ? "assistant_chat.panel_close" : "assistant_chat.panel_open"), { name: assistantName })}- data-testid="chat-top-assistant"- className="flex h-9 min-w-0 items-center gap-2 rounded-full border border-border bg-card py-1 pl-1 pr-3.5 text-sm font-semibold text-foreground-strong transition-colors hover:bg-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"- >- <span className="relative shrink-0">- <GigiMark size={28} className="rounded-full" />- <span- aria-hidden- className={cn(- "absolute -right-0.5 -top-0.5 h-2.5 w-2.5 rounded-full ring-2 ring-card",- TONE_DOT[status.tone],- status.tone === "live" && "animate-jarvis-pulse",- )}- />- </span>- <span className="truncate">{assistantName}</span>- </button>-- {news && (- <div- role="status"- data-testid="chat-top-status"- data-tone={status.tone}- className="pointer-events-none absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 items-center gap-1.5 rounded-full bg-secondary px-3 py-1.5 text-xs font-medium text-foreground"- >- {status.tone === "busy" || status.tone === "live" ? (- <Loader2 aria-hidden className="h-3.5 w-3.5 animate-spin text-accent motion-reduce:animate-none" />- ) : (- <span aria-hidden className={cn("h-1.5 w-1.5 rounded-full", TONE_DOT[status.tone])} />- )}- <span>{status.label}</span>- </div>- )}-- <div className="ml-auto flex items-center gap-1.5">- <button- type="button"- onClick={voice.toggle}- aria-pressed={voice.on}- disabled={voice.busy}- data-testid="chat-voice-mode"- title={fill(t(voice.on ? "assistant_chat.voice_exit_hint" : "assistant_chat.voice_enter_hint"), { name: assistantName })}- className={cn(- "relative flex h-9 items-center gap-2 rounded-full px-3.5 text-sm font-medium transition-colors",- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60",- voice.on- ? "bg-accent text-accent-foreground hover:bg-accent/90"- : "border border-border bg-card text-foreground hover:bg-secondary",- )}- >- {voice.on ? <Keyboard aria-hidden className="h-4 w-4" /> : <AudioLines aria-hidden className="h-4 w-4" />}- <span>{t(voice.on ? "assistant_chat.voice_exit" : "assistant_chat.voice_enter")}</span>- {voice.on && voice.live && (- <span aria-hidden className="relative ml-0.5 flex h-2 w-2">- <span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-accent-foreground opacity-70 motion-reduce:animate-none" />- <span className="relative inline-flex h-2 w-2 rounded-full bg-accent-foreground" />- </span>- )}- </button>- <button- type="button"- onClick={onTogglePanel}- aria-pressed={panelOpen}- data-testid="chat-panel-toggle"- aria-label={fill(t(panelOpen ? "assistant_chat.panel_close" : "assistant_chat.panel_open"), { name: assistantName })}- title={fill(t(panelOpen ? "assistant_chat.panel_close" : "assistant_chat.panel_open"), { name: assistantName })}- className="hidden h-9 w-9 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring xl:flex"- >- {panelOpen ? <PanelRightClose aria-hidden className="h-4 w-4" /> : <PanelRightOpen aria-hidden className="h-4 w-4" />}- </button>- </div>- </header>- );-}diff --git a/jarvis/ui/web/frontend/src/components/home/Greeting.tsx b/jarvis/ui/web/frontend/src/components/home/Greeting.tsxindex b20706a328..eae63af20b 100644--- a/jarvis/ui/web/frontend/src/components/home/Greeting.tsx+++ b/jarvis/ui/web/frontend/src/components/home/Greeting.tsx@@ -32,8 +32,8 @@ export function Greeting({)}data-testid="home-greeting">- <h1 className="flex items-center gap-3 text-2xl font-semibold text-foreground-strong [text-wrap:balance]">- <GigiMark size={36} />+ <h1 className="flex items-center gap-3 font-display text-2xl text-foreground-strong [text-wrap:balance]">+ <GigiMark size={34} className="rounded-[10px]" /><span>{text}</span></h1>{subtitle && !muted && (diff --git a/jarvis/ui/web/frontend/src/components/home/VoiceStage.tsx b/jarvis/ui/web/frontend/src/components/home/VoiceStage.tsxindex af72c5d8b1..9b793f7de1 100644--- a/jarvis/ui/web/frontend/src/components/home/VoiceStage.tsx+++ b/jarvis/ui/web/frontend/src/components/home/VoiceStage.tsx@@ -147,9 +147,9 @@ export function VoiceStage() {}/**- * One line of the lane, drawn as a chat bubble so voice mode reads like the- * chat it lives in: your words on the right in the signal hue, the- * assistant's on the left on a card. A LIVE line (words still being said, an+ * One line of the lane, drawn the way the chat draws a turn so voice mode+ * reads like the chat it lives in: your words in a soft bubble on the+ * right, the assistant's as plain text on the left. A LIVE line (words still being said, an* answer still being produced) is dimmed and italic with a cursor; the* finished line it becomes is the same words, settled. The speaker's name* stays for screen readers only — the side says who spoke.@@ -174,8 +174,8 @@ function TranscriptLine({<span className="sr-only">{who}: </span><spanclassName={cn(- "max-w-[80%] whitespace-pre-wrap px-4 py-2.5 text-lg leading-snug",- user ? "jarvis-chat-out rounded-3xl rounded-br-lg" : "rounded-3xl rounded-tl-lg bg-card text-foreground",+ "max-w-[80%] whitespace-pre-wrap text-lg leading-snug",+ user ? "jarvis-user-bubble rounded-[20px] px-4 py-2.5" : "py-1 text-foreground",live && "italic opacity-70",)}>diff --git a/jarvis/ui/web/frontend/src/components/home/assistantStatus.ts b/jarvis/ui/web/frontend/src/components/home/assistantStatus.tsindex 976d5d449a..0fec6fc7e7 100644--- a/jarvis/ui/web/frontend/src/components/home/assistantStatus.ts+++ b/jarvis/ui/web/frontend/src/components/home/assistantStatus.ts@@ -1,73 +1,13 @@import { useCallback } from "react";-import { useAgentChat } from "@/components/agentchat/AgentChatStoreContext";import { useVoiceCall } from "@/components/agentic/useVoiceCall";import { useVoiceReadiness } from "@/hooks/useVoiceReadiness";-import { useT } from "@/i18n";import { useEventStore } from "@/store/events";import { useHomeStore } from "@/store/home";/**- * What the assistant is doing right now, in one word and one hue — read by- * the chat's top bar and the assistant card so the two never disagree.- *- * A voice call outranks the typed chat: while the microphone is open the- * spoken state is the news. Otherwise a running typed turn says "is working".- * Only a dead socket reads as offline — voice still warming up does not take- * the typed chat down with it.- */-export type AssistantTone = "ready" | "busy" | "live" | "offline" | "error";--export interface AssistantStatus {- tone: AssistantTone;- label: string;-}--export function useAssistantStatus(): AssistantStatus {- const t = useT();- const voiceState = useEventStore((s) => s.voiceState);- const { connected, bootWarming } = useVoiceReadiness();- const turnRunning = useAgentChat((s) => {- const items = s.timeline.items;- for (let i = items.length - 1; i >= 0; i -= 1) {- const item = items[i];- if (item.type === "turn") return item.status === "running";- }- return false;- });-- if (!connected) {- return {- tone: "offline",- label: bootWarming ? t("voice_state.booting") : t("assistant_chat.status_offline"),- };- }- if (voiceState === "error") return { tone: "error", label: t("voice_state.error") };- if (- voiceState === "connecting" ||- voiceState === "listening" ||- voiceState === "thinking" ||- voiceState === "speaking" ||- voiceState === "paused"- ) {- return { tone: "live", label: t(`voice_state.${voiceState}`) };- }- if (turnRunning) return { tone: "busy", label: t("assistant_chat.status_working") };- return { tone: "ready", label: t("assistant_chat.status_ready") };-}--/** The status dot's fill per tone — status hues only, from theme tokens. */-export const TONE_DOT: Record<AssistantTone, string> = {- ready: "bg-success",- busy: "bg-accent",- live: "bg-accent",- offline: "bg-muted-foreground",- error: "bg-destructive",-};--/**- * Entering and leaving the chat's voice mode — the ONE path the top bar, the- * assistant card and the empty chat's invitation all use.+ * Entering and leaving the front-page chat's voice mode — the ONE path the+ * composer's round voice button and voice mode's "Back to typing" use.** Entering shows the spoken transcript and opens the microphone through the* same start/stop request the Jarvis bar uses (useVoiceCall), so there isdiff --git a/jarvis/ui/web/frontend/src/components/ui/combobox.tsx b/jarvis/ui/web/frontend/src/components/ui/combobox.tsxindex ec3e8dac15..0a577f18e5 100644--- a/jarvis/ui/web/frontend/src/components/ui/combobox.tsx+++ b/jarvis/ui/web/frontend/src/components/ui/combobox.tsx@@ -91,6 +91,12 @@ export interface ComboboxProps {* shows every hint.*/triggerHint?: boolean;+ /**+ * Draw only the selected option's icon on the trigger — no label, no+ * chevron. For a dense toolbar where the glyph already says which option+ * is on; the accessible name and the open list still carry the words.+ */+ iconOnly?: boolean;}/** Panel height cap — roughly nine rows, enough to show that more exist. */@@ -211,6 +217,7 @@ export function Combobox({ariaDescribedBy,testId,triggerHint = true,+ iconOnly = false,}: ComboboxProps) {const [open, setOpen] = useState(false);const [query, setQuery] = useState("");@@ -496,8 +503,8 @@ export function Combobox({)}>{selected?.icon}- <span className="min-w-0 flex-1 truncate">{triggerLabel}</span>- {triggerHint && selected?.hint && (+ <span className={iconOnly ? "sr-only" : "min-w-0 flex-1 truncate"}>{triggerLabel}</span>+ {!iconOnly && triggerHint && selected?.hint && (<span className="shrink-0 truncate text-sm text-muted-foreground">{selected.hint}</span>@@ -506,6 +513,7 @@ export function Combobox({aria-hidden="true"className={cn("h-4 w-4 shrink-0 text-muted-foreground transition-transform",+ iconOnly && "hidden",// Body ink, not --primary: an open chevron is a decoration, and a// decoration is never brighter than the label it sits beside.open && "rotate-180 text-foreground",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex e49d183baa..e31d0e7dbc 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@ -671,35 +671,7 @@"voice_enter": "Sprachmodus","voice_enter_hint": "Sprechen statt tippen — {name} hört zu und antwortet laut","voice_exit": "Zurück zum Tippen",- "voice_exit_hint": "Das Gespräch beenden und zurück in den Chat",- "panel_open": "Karte von {name} anzeigen",- "panel_close": "Karte ausblenden",- "status_ready": "Bereit",- "status_working": "arbeitet",- "status_offline": "Offline",- "talk": "Sprechen",- "new_chat": "Neuer Chat",- "tab_overview": "Übersicht",- "tab_chat": "Dieser Chat",- "soul": "Seele",- "soul_hint": "Feste Anweisungen",- "soul_empty": "Noch nicht geschrieben",- "soul_chars": "{count} Zeichen",- "soul_open": "{file} öffnen — die festen Anweisungen, die {name} bei jeder Antwort liest",- "memory": "Gedächtnis",- "memory_hint": "Dein Wiki",- "memory_pages": "{count} Seiten",- "memory_unknown": "Nicht verfügbar",- "memory_open": "Das Wiki öffnen — was {name} sich merkt",- "brain": "Läuft auf",- "brain_none": "Wähle im Eingabefeld ein Modell",- "chat_started": "Begonnen",- "chat_messages": "Deine Nachrichten",- "chat_answers": "Antworten",- "chat_tools": "Werkzeugaufrufe",- "chat_empty": "In diesem Chat wurde noch nichts gesagt.",- "talk_cta": "Lieber sprechen? Sprachmodus starten",- "talk_cta_wake": "oder sag „{wake}“"+ "voice_exit_hint": "Das Gespräch beenden und zurück in den Chat"},"agent_chat": {"pair_open": "Agenten-Chat öffnen",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex ab4dbe57e2..c35ac9d5b9 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@ -671,35 +671,7 @@"voice_enter": "Voice mode","voice_enter_hint": "Talk instead of typing — {name} listens and answers out loud","voice_exit": "Back to typing",- "voice_exit_hint": "End the spoken conversation and go back to the chat",- "panel_open": "Show {name}'s card",- "panel_close": "Hide the card",- "status_ready": "Ready",- "status_working": "is working",- "status_offline": "Offline",- "talk": "Talk",- "new_chat": "New chat",- "tab_overview": "Overview",- "tab_chat": "This chat",- "soul": "Soul",- "soul_hint": "Standing instructions",- "soul_empty": "Not written yet",- "soul_chars": "{count} characters",- "soul_open": "Open {file} — the standing instructions {name} reads every turn",- "memory": "Memory",- "memory_hint": "Your wiki",- "memory_pages": "{count} pages",- "memory_unknown": "Not available",- "memory_open": "Open the wiki — what {name} remembers",- "brain": "Runs on",- "brain_none": "Pick a model in the composer",- "chat_started": "Started",- "chat_messages": "Your messages",- "chat_answers": "Answers",- "chat_tools": "Tool calls",- "chat_empty": "Nothing said in this chat yet.",- "talk_cta": "Rather talk? Start voice mode",- "talk_cta_wake": "or say “{wake}”"+ "voice_exit_hint": "End the spoken conversation and go back to the chat"},"agent_chat": {"pair_open": "Open agent conversation",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex 85734db275..d21fa38ec2 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -671,35 +671,7 @@"voice_enter": "Modo voz","voice_enter_hint": "Habla en lugar de escribir: {name} escucha y responde en voz alta","voice_exit": "Volver a escribir",- "voice_exit_hint": "Terminar la conversación hablada y volver al chat",- "panel_open": "Mostrar la tarjeta de {name}",- "panel_close": "Ocultar la tarjeta",- "status_ready": "Listo",- "status_working": "está trabajando",- "status_offline": "Sin conexión",- "talk": "Hablar",- "new_chat": "Nuevo chat",- "tab_overview": "Resumen",- "tab_chat": "Este chat",- "soul": "Alma",- "soul_hint": "Instrucciones fijas",- "soul_empty": "Aún sin escribir",- "soul_chars": "{count} caracteres",- "soul_open": "Abrir {file}: las instrucciones fijas que {name} lee en cada turno",- "memory": "Memoria",- "memory_hint": "Tu wiki",- "memory_pages": "{count} páginas",- "memory_unknown": "No disponible",- "memory_open": "Abrir la wiki: lo que {name} recuerda",- "brain": "Funciona con",- "brain_none": "Elige un modelo en el compositor",- "chat_started": "Empezado",- "chat_messages": "Tus mensajes",- "chat_answers": "Respuestas",- "chat_tools": "Llamadas a herramientas",- "chat_empty": "Todavía no se ha dicho nada en este chat.",- "talk_cta": "¿Prefieres hablar? Inicia el modo voz",- "talk_cta_wake": "o di «{wake}»"+ "voice_exit_hint": "Terminar la conversación hablada y volver al chat"},"agent_chat": {"pair_open": "Abrir conversación entre agentes",diff --git a/jarvis/ui/web/frontend/src/index.css b/jarvis/ui/web/frontend/src/index.cssindex f6584de540..f4184b8234 100644--- a/jarvis/ui/web/frontend/src/index.css+++ b/jarvis/ui/web/frontend/src/index.css@@ -561,16 +561,6 @@ label,--popover-foreground: 0 0% 9%;--user-bubble: 0 0% 96%; /* #F5F5F5 — the speaker: quiet lift, strong ink */--user-bubble-foreground: 0 0% 9%;- /* Front-page chat: the outbound bubble wears the signal hue, and the- assistant card's two vivid tiles (Soul = standing instructions,- Memory = the wiki) carry their own gradient pair. */- --chat-bubble-out: 212 92% 45%;- --chat-bubble-out-foreground: 0 0% 100%;- --soul-from: 347 83% 52%;- --soul-to: 14 92% 56%;- --memory-from: 224 86% 52%;- --memory-to: 194 92% 48%;- --vivid-card-foreground: 0 0% 100%;--surface-raised: 0 0% 93%; /* #EDEDED — pressed/selected rows, code blocks */--border: 0 0% 90%; /* #E5E5E5 — hairline */--border-strong: 0 0% 82%; /* #D1D1D1 — input borders, focused card, float rim */@@ -763,13 +753,6 @@ label,--popover-foreground: 0 0% 98%;--user-bubble: 0 0% 16%; /* #292929 — the speaker: a quiet, legible lift */--user-bubble-foreground: 0 0% 98%;- --chat-bubble-out: 212 100% 56%;- --chat-bubble-out-foreground: 0 0% 100%;- --soul-from: 347 86% 56%;- --soul-to: 14 94% 58%;- --memory-from: 226 92% 60%;- --memory-to: 194 96% 50%;- --vivid-card-foreground: 0 0% 100%;/* --- Rims. A rim is LIGHTER than the fill it encloses ------------------On near-black a dark border around a dark fill reads as a wireframe@@ -997,32 +980,6 @@ body {color: hsl(var(--user-bubble-foreground));}- /* The front page's chat bubbles (AgentTimeline `bubbles`). */- .jarvis-chat-out {- background: hsl(var(--chat-bubble-out));- color: hsl(var(--chat-bubble-out-foreground));- }- .jarvis-chat-out a {- color: inherit;- }-- /* The assistant card's vivid tiles: a gradient pair plus a soft light- bloom in the top corner, so the tile reads as an object, not a swatch. */- .jarvis-tile-soul,- .jarvis-tile-memory {- color: hsl(var(--vivid-card-foreground));- }- .jarvis-tile-soul {- background:- radial-gradient(120% 90% at 100% 0%, hsl(var(--vivid-card-foreground) / 0.22), transparent 55%),- linear-gradient(140deg, hsl(var(--soul-from)), hsl(var(--soul-to)));- }- .jarvis-tile-memory {- background:- radial-gradient(120% 90% at 100% 0%, hsl(var(--vivid-card-foreground) / 0.22), transparent 55%),- linear-gradient(140deg, hsl(var(--memory-from)), hsl(var(--memory-to)));- }-/* Selected nav row — the lift surface across the WHOLE row, plus strong inkon the label. Not a hairline, not an inset accent bar, and never drawn onthe icon box alone while the row it belongs to stays at ground. */diff --git a/jarvis/ui/web/frontend/src/views/ChatsSurface.test.tsx b/jarvis/ui/web/frontend/src/views/ChatsSurface.test.tsxindex ec14312e9d..6913d1180f 100644--- a/jarvis/ui/web/frontend/src/views/ChatsSurface.test.tsx+++ b/jarvis/ui/web/frontend/src/views/ChatsSurface.test.tsx@@ -6,9 +6,9 @@ import { readHomeSurface } from "@/lib/homeSurface";/*** The front page is ONE chat with a voice mode inside it (2026-10-01). What- * is under test is the shell: it opens on the chat, the top bar's voice-mode- * button swaps in the spoken stage and brings the typing back, and the mode- * is remembered. Both stages and the assistant card are stubbed.+ * is under test is the shell: it opens on the chat, voice mode swaps in the+ * spoken stage with a way back to typing, and the mode is remembered. Both+ * stages are stubbed; the composer's voice button is ChatStage's own test.*/vi.mock("@/components/home/VoiceStage", () => ({VoiceStage: () => <div data-testid="voice">voice</div>,@@ -16,9 +16,6 @@ vi.mock("@/components/home/VoiceStage", () => ({vi.mock("@/components/home/ChatStage", () => ({ChatStage: () => <div data-testid="chat">chat</div>,}));-vi.mock("@/components/home/AssistantProfilePanel", () => ({- AssistantProfilePanel: () => <div data-testid="assistant-panel-stub" />,-}));const STORAGE_KEY = "jarvis.home.surface.v2";@@ -30,10 +27,11 @@ describe("ChatsSurface (the front page)", () => {afterEach(cleanup);- it("opens on the chat by default", async () => {+ it("opens on the chat by default, with nothing above it", async () => {render(<ChatsSurface />);expect(await screen.findByTestId("chat")).toBeTruthy();expect(screen.queryByTestId("voice")).toBeNull();+ expect(screen.queryByTestId("voice-mode-exit")).toBeNull();expect(screen.getByTestId("home-view").getAttribute("data-surface")).toBe("chat");});@@ -44,22 +42,12 @@ describe("ChatsSurface (the front page)", () => {expect(await screen.findByTestId("chat")).toBeTruthy();});- it("enters voice mode from the top bar and remembers it", async () => {- render(<ChatsSurface />);- await screen.findByTestId("chat");- fireEvent.click(screen.getByTestId("chat-voice-mode"));- expect(screen.getByTestId("voice")).toBeTruthy();- expect(screen.queryByTestId("chat")).toBeNull();- expect(window.localStorage.getItem(STORAGE_KEY)).toBe("voice");- expect(screen.getByTestId("chat-voice-mode").getAttribute("aria-pressed")).toBe("true");- });-- it("goes back to typing from voice mode", async () => {+ it("goes back to typing from voice mode and remembers it", async () => {window.localStorage.setItem(STORAGE_KEY, "voice");useHomeStore.setState({ surface: readHomeSurface() });render(<ChatsSurface />);expect(screen.getByTestId("voice")).toBeTruthy();- fireEvent.click(screen.getByTestId("chat-voice-mode"));+ fireEvent.click(screen.getByTestId("voice-mode-exit"));expect(await screen.findByTestId("chat")).toBeTruthy();expect(window.localStorage.getItem(STORAGE_KEY)).toBe("chat");});@@ -70,14 +58,4 @@ describe("ChatsSurface (the front page)", () => {render(<ChatsSurface />);expect(await screen.findByTestId("chat")).toBeTruthy();});-- it("hides and shows the assistant card from the top bar", async () => {- render(<ChatsSurface />);- await screen.findByTestId("chat");- expect(screen.getByTestId("assistant-panel-stub")).toBeTruthy();- fireEvent.click(screen.getByTestId("chat-panel-toggle"));- expect(screen.queryByTestId("assistant-panel-stub")).toBeNull();- fireEvent.click(screen.getByTestId("chat-top-assistant"));- expect(screen.getByTestId("assistant-panel-stub")).toBeTruthy();- });});