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
refactor(agentic-ide): rebuild the workspace chrome as one quiet surface
rubenluetke10-beep62a4f9b33be0
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.test.tsxindex bf50a725cd..2783956d87 100644--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.test.tsx@@ -424,7 +424,7 @@ describe("pane actions", () => {// The freshly added pane is the one the user just asked for, so the prompt// bar should already point at it.await waitFor(() =>- expect(screen.getByPlaceholderText(/instruction for Aria/i)).toBeTruthy(),+ expect(screen.getByLabelText(/instruction for Aria/i)).toBeTruthy(),);});@@ -446,7 +446,7 @@ describe("pane actions", () => {expect(screen.getByRole("button", { name: /^Mika/ })).toBeTruthy();expect(screen.queryByRole("button", { name: /^Nova live$/ })).toBeNull();// The agent pane, not the shell, is what the prompt goes to.- expect(screen.getByPlaceholderText(/instruction for Mika/i)).toBeTruthy();+ expect(screen.getByLabelText(/instruction for Mika/i)).toBeTruthy();});it("does not make a new plain terminal the prompt target", async () => {@@ -469,7 +469,7 @@ describe("pane actions", () => {await waitFor(() => expect(api.addTerminal).toHaveBeenCalled());// The prompt bar stays pointed at the agent it was on — a shell pane that// stole the target would silently swallow the next instruction.- expect(screen.getByPlaceholderText(/instruction for Mika/i)).toBeTruthy();+ expect(screen.getByLabelText(/instruction for Mika/i)).toBeTruthy();});it("reports a refused split instead of pretending it worked", async () => {@@ -863,7 +863,7 @@ describe("selecting several terminals", () => {fireEvent.click(screen.getByTestId("confirm-close-selection-confirm"));await waitFor(() =>- expect(screen.getByPlaceholderText(/instruction for Nova/i)).toBeTruthy(),+ expect(screen.getByLabelText(/instruction for Nova/i)).toBeTruthy(),);expect(screen.getByTestId("select-terminal-Nova").getAttribute("aria-pressed"),@@ -931,7 +931,7 @@ describe("closing the workspace", () => {it("hides workspace controls from assistive technology while confirmation is open", () => {renderGrid();fireEvent.click(screen.getByTitle("Close the workspace and stop every agent in it"));- const prompt = screen.getByPlaceholderText(/instruction for Mika/i);+ const prompt = screen.getByLabelText(/instruction for Mika/i);expect(prompt.closest('[aria-hidden="true"]')).toBeTruthy();});@@ -992,7 +992,7 @@ describe("restarting a dead pane", () => {describe("the prompt bar composes before it sends", () => {const type = (text: string) => {- const box = screen.getByPlaceholderText(/instruction for Mika/i);+ const box = screen.getByLabelText(/instruction for Mika/i);fireEvent.change(box, { target: { value: text } });fireEvent.keyDown(box, { key: "Enter" });};@@ -1049,7 +1049,7 @@ describe("the prompt bar composes before it sends", () => {await waitFor(() => expect(screen.queryByTestId("prompt-preview")).toBeNull());expect(- (screen.getByPlaceholderText(/instruction for Mika/i) as HTMLTextAreaElement).value,+ (screen.getByLabelText(/instruction for Mika/i) as HTMLTextAreaElement).value,).toBe("run the tests");expect(api.promptTerminal).not.toHaveBeenCalled();});@@ -1125,7 +1125,7 @@ describe("dropping files on the prompt bar", () => {drop();await waitFor(() => expect(screen.getByTestId("agentic-attachments")).toBeTruthy());- const box = screen.getByPlaceholderText(/instruction for Mika/i);+ const box = screen.getByLabelText(/instruction for Mika/i);fireEvent.change(box, { target: { value: "fix this" } });fireEvent.keyDown(box, { key: "Enter" });@@ -1141,7 +1141,7 @@ describe("dropping files on the prompt bar", () => {drop();await waitFor(() => expect(screen.getByTestId("agentic-attachments")).toBeTruthy());- const box = screen.getByPlaceholderText(/instruction for Mika/i);+ const box = screen.getByLabelText(/instruction for Mika/i);fireEvent.change(box, { target: { value: "fix this" } });fireEvent.keyDown(box, { key: "Enter" });await waitFor(() => expect(screen.getByTestId("prompt-preview")).toBeTruthy());@@ -1166,7 +1166,7 @@ describe("dropping files on the prompt bar", () => {drop();await waitFor(() => expect(screen.getByTestId("agentic-attachments")).toBeTruthy());- const box = screen.getByPlaceholderText(/instruction for Mika/i);+ const box = screen.getByLabelText(/instruction for Mika/i);fireEvent.change(box, { target: { value: "fix this" } });fireEvent.keyDown(box, { key: "Enter" });await waitFor(() => expect(screen.getByTestId("prompt-preview")).toBeTruthy());@@ -1311,7 +1311,7 @@ describe("prompt bar seam", () => {const composer = screen.getByTestId("agentic-composer");expect(composer.style.height).toBe(`${OPEN}px`);- expect(screen.getByPlaceholderText(/instruction for Mika/i)).toBeTruthy();+ expect(screen.getByLabelText(/instruction for Mika/i)).toBeTruthy();});it("remembers an opened bar across a remount", () => {@@ -2263,13 +2263,13 @@ describe("renaming a pane", () => {vi.mocked(api.renameTerminal).mockResolvedValue(RENAMED);const { rerender } = renderGrid();- expect(screen.getByPlaceholderText(/instruction for Mika/i)).toBeTruthy();+ expect(screen.getByLabelText(/instruction for Mika/i)).toBeTruthy();fireEvent.click(screen.getByTestId("pane-rename-Mika"));await waitFor(() => expect(api.renameTerminal).toHaveBeenCalled());rerender({ session: RENAMED });- expect(screen.getByPlaceholderText(/instruction for Frontend/i)).toBeTruthy();+ expect(screen.getByLabelText(/instruction for Frontend/i)).toBeTruthy();});it("says what went wrong and leaves the workspace alone", async () => {diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsxindex a463600223..7dd04d5035 100644--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx@@ -192,8 +192,15 @@ const FONT_MAX = 20;* workspace: controls recede to quiet glyphs, colour is reserved for state* that is ON, and the terminals are the only thing on screen with weight.*/+/*+ * `rounded-control` (6 px), not the theme's `md` (10 px). At 28 px square a+ * 10 px radius is a third of the edge, which reads as a lozenge rather than a+ * button and put a row of soft blobs across the top of a view whose subject is+ * a wall of right-angled terminals. Six is the section's control radius — see+ * ./controls.tsx for the closed set and why the theme's own steps did not fit.+ */const TOOLBAR_BTN =- "flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-muted-foreground " ++ "flex h-7 w-7 shrink-0 items-center justify-center rounded-control text-muted-foreground " +"transition-colors hover:bg-secondary hover:text-foreground " +"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 " +"disabled:cursor-not-allowed disabled:opacity-40";@@ -253,8 +260,6 @@ const COMPOSER_DEFAULT_PX = 176;const COMPOSER_COLLAPSED_PX = 28;/** Below this dragged height the bar snaps shut rather than half-showing. */const COMPOSER_COLLAPSE_AT_PX = 96;-/** Below this it is too short for the "you can also say this out loud" note. */-const COMPOSER_HINT_AT_PX = 190;/*** Room the toolbar and a still-usable grid keep for themselves.*@@ -1972,13 +1977,21 @@ export function AgenticGrid({<asidedata-testid="agentic-chat-rail"className={cn(- "w-64 shrink-0 flex-col border-r border-border",+ /*+ * 224 px, and the header is the same 44 px rule-under-a-label as+ * the voice column opposite it. Chat view puts THREE vertical+ * bands in front of the one pane being read — the app's own+ * navigation, this list, and the voice column — so the two this+ * view owns at least agree with each other about how a column+ * begins.+ */+ "w-56 shrink-0 flex-col border-r border-border",chatView ? "flex" : "hidden",)}>{/* `relative` so the CLI picker hangs under the plus button. */}- <div className="relative flex items-center justify-between px-3 py-2">- <span className="text-[10px] font-semibold uppercase tracking-wider text-muted-foreground">+ <div className="relative flex h-11 shrink-0 items-center justify-between border-b border-border/60 px-3">+ <span className="truncate text-[11px] font-semibold uppercase tracking-[0.12em] text-muted-foreground">Agents</span><button@@ -2042,13 +2055,21 @@ export function AgenticGrid({? toggleTerminalSelection(term.name): selectChatPane(term.name, takesPrompts(term))}+ /*+ * A selected row is marked by a rule down its left edge and+ * a raised background — not by a yellow border wrapped+ * around a yellow fill. Eleven rows of tinted boxes is what+ * turns a list into a heat map, and it left the accent with+ * nothing distinct to say when a row actually wanted+ * attention.+ */className={cn(- "w-full rounded-lg border px-2.5 py-2 text-left transition-colors",+ "w-full rounded-control border-l-2 px-2.5 py-2 text-left transition-colors",selectionMode && marked- ? "border-primary bg-primary/10"+ ? "border-primary bg-secondary": active && !selectionMode- ? "border-primary/50 bg-primary/10"- : "border-transparent hover:bg-secondary",+ ? "border-primary bg-secondary"+ : "border-transparent hover:bg-secondary/60",)}>{/* The right padding is permanent, not applied on hover:@@ -2459,14 +2480,16 @@ export function AgenticGrid({style={{ height: COMPOSER_COLLAPSED_PX }}className="flex shrink-0 items-center justify-between gap-2 px-3">- <span className="truncate text-[11px] text-muted-foreground">- {target || "No terminal"} hears whatever you say out loud.+ <span className="truncate text-[11px] text-muted-foreground/70">+ {target+ ? `Say it out loud and ${target} gets it.`+ : "Say it out loud and the agents get it."}</span><buttontype="button"data-testid="agentic-composer-reopen"onClick={() => composer.resize(COMPOSER_DEFAULT_PX)}- className="flex shrink-0 items-center gap-1.5 rounded-md px-2 py-0.5 text-[11px] text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"+ className="flex shrink-0 items-center gap-1.5 rounded-control px-2 py-0.5 text-[11px] text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground"><ChevronUp className="h-3.5 w-3.5" />Write instead@@ -2490,43 +2513,73 @@ export function AgenticGrid({void attach({ paths: [], files: images });}}className={cn(- "relative shrink-0 flex-col overflow-hidden px-3 py-2 transition-colors",+ /*+ * The height the seam dragged belongs to THIS element; the padding+ * that insets the writing surface from the window edge belongs to+ * it too, so that the surface inside can be `h-full` and the bar+ * still occupies exactly the pixels the seam promised. Putting the+ * inset on the surface as a margin instead would have made the bar+ * 16 px taller than its own stated height — silently, and at the+ * expense of the panes above it.+ */+ "relative shrink-0 flex-col p-2",composerCollapsed ? "hidden" : "flex",- dragging && "bg-primary/5 ring-1 ring-inset ring-primary/50",)}>+ <div+ className={cn(+ /*+ * ONE surface, and the reason it is one is the reason this bar+ * used to look assembled: a target row, a bordered textarea and a+ * pill button, each with its own edge and its own radius, stacked+ * in a padded strip. Four frames, none of which was the edge of+ * the thing. The border, the radius and the focus treatment now+ * belong to this element alone; everything inside it is bare.+ */+ "relative flex h-full min-h-0 flex-col overflow-hidden rounded-surface border transition-colors",+ "border-border/70 bg-card/40 focus-within:border-primary/40",+ dragging && "border-primary/60 bg-primary/5",+ )}+ >{dragging && (<divdata-testid="agentic-composer-dropzone"- className="pointer-events-none absolute inset-2 z-10 flex items-center justify-center rounded-lg border-2 border-dashed border-primary/60 bg-background/80 text-xs font-medium text-primary"+ className="pointer-events-none absolute inset-0 z-10 flex items-center justify-center rounded-surface bg-background/85 text-xs font-medium text-primary">Drop a screenshot or document — {target || "the agent"} gets what is in it</div>)}- <div className="mb-1.5 flex max-h-16 shrink-0 flex-wrap items-center gap-1 overflow-y-auto scrollbar-jarvis">- <span className="text-[10px] uppercase tracking-wider text-muted-foreground">- Send to- </span>- {/* Agent panes only. A plain terminal is a shell prompt — it is- typed into by hand, so listing it here would offer a target that- refuses every instruction sent to it. */}+ {/*+ Which agent hears this — a row of tabs across the head of the+ surface rather than a "Send to" label followed by loose chips.+ The label was answering a question the chips already answer, and+ spending a line of the bar to do it; a selected tab is marked by a+ rule under it, which is the one place in this view where yellow+ still means "this is the choice you made" without shouting it.++ Agent panes only. A plain terminal is a shell prompt — it is typed+ into by hand, so listing it here would offer a target that refuses+ every instruction sent to it.+ */}+ <div className="flex max-h-16 shrink-0 items-stretch gap-0.5 overflow-x-auto overflow-y-hidden border-b border-border/60 px-1.5 scrollbar-jarvis">{session.terminals.filter(takesPrompts).map((term) => {const state = statuses[term.name];+ const picked = target === term.name;return (<button- key={term.key}- type="button"- data-testid={`prompt-target-${term.name}`}- onClick={() => (chatView ? selectChatPane(term.name, true) : setTarget(term.name))}- aria-pressed={target === term.name}- className={cn(- "flex items-center gap-1.5 rounded-lg border px-2 py-0.5 text-xs transition-colors",- target === term.name- ? "border-primary/60 bg-primary/10 text-primary"- : "border-transparent text-muted-foreground hover:bg-secondary hover:text-foreground",+ key={term.key}+ type="button"+ data-testid={`prompt-target-${term.name}`}+ onClick={() => (chatView ? selectChatPane(term.name, true) : setTarget(term.name))}+ aria-pressed={picked}+ className={cn(+ "flex shrink-0 items-center gap-1.5 border-b-2 px-2.5 py-1.5 text-xs transition-colors",+ picked+ ? "border-primary font-medium text-foreground"+ : "border-transparent text-muted-foreground hover:text-foreground",)}>- <span className="font-medium">{term.name}</span>+ <span>{term.name}</span><PaneActivityPillstatus={state?.status ?? "connecting"}detail={state?.detail}@@ -2537,14 +2590,16 @@ export function AgenticGrid({})}</div>{(attachments.length > 0 || analyzing > 0) && (- <AttachmentStrip- attachments={attachments}- analyzing={analyzing}- onRemove={dropAttachment}- />+ <div className="shrink-0 px-2 pt-2">+ <AttachmentStrip+ attachments={attachments}+ analyzing={analyzing}+ onRemove={dropAttachment}+ />+ </div>)}{preview && (- <div className="mb-2 shrink-0 overflow-y-auto scrollbar-jarvis">+ <div className="mb-2 shrink-0 overflow-y-auto px-2 pt-2 scrollbar-jarvis"><PromptPreviewterminal={target}composed={preview.composed}@@ -2572,14 +2627,21 @@ export function AgenticGrid({two-line box with empty space under it. Its own resize grip is gone —two ways to change one height fight each other.*/}- <PromptEditor target={target} sending={sending} seed={promptSeed} onSend={send} />- {composerHeight >= COMPOSER_HINT_AT_PX && (- <p className="mt-2 shrink-0 text-[11px] text-muted-foreground">- Anything you can type here, you can also say out loud — for example “what is{" "}- {session.terminals[0]?.name ?? "Mika"} doing?” or “tell{" "}- {session.terminals[0]?.name ?? "Mika"} to run the tests”.- </p>- )}+ {/*+ No standing "you can also say this out loud" note under the input.+ It was a tip printed permanently into the writing surface, and a tip+ that cannot be dismissed is read once and then occupies the bar+ forever — the collapsed strip already says the same thing in the one+ state where it is news (see `agentic-composer-collapsed`).+ */}+ <PromptEditor+ target={target}+ sending={sending}+ seed={promptSeed}+ onSend={send}+ onAttach={(files) => void attach({ paths: [], files })}+ />+ </div></div>{/* The pane in hand, following the cursor.diff --git a/jarvis/ui/web/frontend/src/components/agentic/PromptEditor.tsx b/jarvis/ui/web/frontend/src/components/agentic/PromptEditor.tsxindex 9f80771647..34dd928a2f 100644--- a/jarvis/ui/web/frontend/src/components/agentic/PromptEditor.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/PromptEditor.tsx@@ -1,5 +1,6 @@-import { useLayoutEffect, useState } from "react";-import { ArrowUp } from "lucide-react";+import { useLayoutEffect, useRef, useState } from "react";+import { ArrowUp, Loader2, Paperclip } from "lucide-react";+import { cn } from "@/lib/utils";export interface PromptSeed {value: string;@@ -13,27 +14,54 @@ export interface PromptSeed {* grid made every character reconcile all of them, so composer lag grew with* the number of sessions. Only intentional resets travel down from the grid;* ordinary keystrokes stay in this small component.+ *+ * ## Shape+ *+ * The editor is the BODY of the composer surface, not a boxed control sitting+ * inside one: the border, the radius and the focus treatment belong to the+ * surface (see the composer in AgenticGrid), so what is drawn here is a bare+ * writing area with one row of controls under it. A field with its own border+ * inside a bordered panel is the single most reliable way to make an interface+ * read as assembled rather than designed — two frames, 4 px apart, neither of+ * which is the edge of anything.+ *+ * The placeholder names the target and stops there. It used to carry the+ * keyboard contract as well ("Enter sends, Shift+Enter adds a line"), which put+ * a permanent instruction manual in the largest empty area on screen; that+ * contract now lives in the footer, at label size, where it is available+ * without being the loudest text in the view.*/export function PromptEditor({target,sending,seed,onSend,+ onAttach,}: {target: string;sending: boolean;seed: PromptSeed;onSend: (draft: string) => Promise<void>;+ /**+ * Pick files by hand, for the people who do not drag them.+ *+ * Optional: dropping and pasting are the primary paths and neither needs+ * this, so a caller that has no attachment pipeline simply gets no button+ * rather than a dead one.+ */+ onAttach?: (files: File[]) => void;}) {const [value, setValue] = useState(seed.value);+ const fileRef = useRef<HTMLInputElement>(null);useLayoutEffect(() => setValue(seed.value), [seed.revision, seed.value]);+ const ready = Boolean(target) && !sending && value.trim().length > 0;const submit = () => {- if (!target || sending || !value.trim()) return;+ if (!ready) return;void onSend(value);};return (- <div className="flex min-h-0 flex-1 items-end gap-2">+ <div className="flex min-h-0 flex-1 flex-col gap-1.5"><textareaname="agent-instruction"aria-label={target ? `Instruction for ${target}` : "Agent instruction"}@@ -45,22 +73,81 @@ export function PromptEditor({submit();}}}- placeholder={- target- ? `Type an instruction for ${target} — Enter sends, Shift+Enter adds a line`- : "Pick a terminal first"+ placeholder={target ? `Message ${target}` : "Pick a terminal first"}+ className={+ "min-h-0 w-full flex-1 resize-none bg-transparent px-3 pt-2.5 text-sm leading-relaxed " ++ "text-foreground outline-none placeholder:text-muted-foreground/60"}- className="h-full min-h-[44px] flex-1 resize-none rounded-lg border border-border bg-background/60 px-3 py-2 text-sm outline-none focus:border-primary/50 focus-visible:ring-2 focus-visible:ring-primary/30"/>- <button- type="button"- className="btn-primary h-[52px] shrink-0"- disabled={sending || !value.trim() || !target}- onClick={submit}- >- <ArrowUp className="h-4 w-4" />- {sending ? "Preparing…" : "Send"}- </button>+ <div className="flex shrink-0 items-center gap-2 px-2 pb-2">+ {onAttach && (+ <>+ <input+ ref={fileRef}+ type="file"+ multiple+ className="sr-only"+ tabIndex={-1}+ onChange={(event) => {+ const files = Array.from(event.currentTarget.files ?? []);+ event.currentTarget.value = "";+ if (files.length > 0) onAttach(files);+ }}+ />+ <button+ type="button"+ data-testid="agentic-composer-attach"+ aria-label="Attach files to this instruction"+ title="Attach files — you can also drop or paste them here"+ disabled={!target}+ onClick={() => fileRef.current?.click()}+ className={+ "flex h-7 w-7 shrink-0 items-center justify-center rounded-control " ++ "text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground " ++ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 " ++ "disabled:cursor-not-allowed disabled:opacity-40"+ }+ >+ <Paperclip className="h-3.5 w-3.5" />+ </button>+ </>+ )}+ {/* The keyboard contract, at the weight of a footnote. Hidden on a+ narrow window before anything that can be clicked is: it is the one+ thing in this row a reader can do without. */}+ <span className="ml-auto hidden shrink-0 items-center gap-2 text-[11px] text-muted-foreground/70 sm:flex">+ <kbd className="rounded border border-border/80 px-1 font-sans text-[10px]">+ ↵+ </kbd>+ send+ <kbd className="rounded border border-border/80 px-1 font-sans text-[10px]">+ ⇧↵+ </kbd>+ new line+ </span>+ <button+ type="button"+ aria-label={sending ? "Preparing the instruction" : "Send the instruction"}+ title={sending ? "Preparing the instruction…" : "Send"}+ className={cn(+ "ml-auto flex h-7 w-7 shrink-0 items-center justify-center rounded-control",+ "transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60",+ "sm:ml-0",+ ready+ ? "bg-primary text-primary-foreground hover:bg-primary/90"+ : "bg-secondary text-muted-foreground/60",+ !ready && "cursor-not-allowed",+ )}+ disabled={!ready}+ onClick={submit}+ >+ {sending ? (+ <Loader2 className="h-3.5 w-3.5 animate-spin" />+ ) : (+ <ArrowUp className="h-3.5 w-3.5" />+ )}+ </button>+ </div></div>);}diff --git a/jarvis/ui/web/frontend/src/components/agentic/VoicePanel.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/VoicePanel.test.tsxindex 84e05de11a..8179b3328d 100644--- a/jarvis/ui/web/frontend/src/components/agentic/VoicePanel.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/VoicePanel.test.tsx@@ -92,7 +92,9 @@ describe("voice panel", () => {expect(screen.getByTestId("voice-panel")).toBeTruthy();const orb = screen.getByTestId("voice-orb-canvas");expect(orb.getAttribute("data-state")).toBe("idle");- expect(orb.getAttribute("style")).toContain("width: 176px");+ // A status light, not a centrepiece — see the panel's own note on why this+ // came down from 176 px.+ expect(orb.getAttribute("style")).toContain("width: 96px");expect(screen.getByTestId("voice-panel-status").textContent).toBe("Ready");// The brand rule: the assistant's own name, never a hardcoded one.expect(screen.getByTestId("voice-orb-button").getAttribute("title")).toContain(diff --git a/jarvis/ui/web/frontend/src/components/agentic/VoicePanel.tsx b/jarvis/ui/web/frontend/src/components/agentic/VoicePanel.tsxindex d5d8b013f4..04c6fa7a83 100644--- a/jarvis/ui/web/frontend/src/components/agentic/VoicePanel.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/VoicePanel.tsx@@ -307,7 +307,7 @@ export function VoicePanel({assistantName,)}aria-label={t("agentic_grid.voice_panel.open")}- className="flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground"+ className="flex h-7 w-7 items-center justify-center rounded-control text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground"><PanelRightOpen className="h-4 w-4" /></button>@@ -329,10 +329,16 @@ export function VoicePanel({return (<asidedata-testid="voice-panel"- className="flex h-full w-72 shrink-0 flex-col border-l border-border"+ /*+ * 240 px rather than 288. This column is a presence indicator and a+ * transcript, not a reading surface — and it is the third vertical band+ * on a screen whose actual content is the terminals. Every pixel it does+ * not need belongs to them.+ */+ className="flex h-full w-60 shrink-0 flex-col border-l border-border">- <div className="flex items-center justify-between px-3 py-2">- <span className="text-[10px] font-semibold uppercase tracking-wider text-muted-foreground">+ <div className="flex h-11 shrink-0 items-center justify-between border-b border-border/60 px-3">+ <span className="truncate text-[11px] font-semibold uppercase tracking-[0.12em] text-muted-foreground">{t("agentic_grid.voice_panel.label")}</span><button@@ -341,13 +347,21 @@ export function VoicePanel({onClick={toggleOpen}title={t("agentic_grid.voice_panel.close")}aria-label={t("agentic_grid.voice_panel.close")}- className="flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground"+ className="flex h-7 w-7 items-center justify-center rounded-control text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground"><PanelRightClose className="h-4 w-4" /></button></div>- <div className="flex min-h-0 flex-1 flex-col items-center justify-center gap-4 px-5 pb-6">+ {/*+ Aligned to the TOP of the column, not centred in it.+ A 176 px orb parked in the middle of a full-height column reads as a+ splash screen — the largest, brightest, most animated object on a+ screen whose subject is a wall of terminals. Sat at the top at 96 px it+ is what it actually is: a status light you can click, with the+ transcript under it and the column's own controls at its foot.+ */}+ <div className="flex min-h-0 flex-1 flex-col items-center gap-3 px-4 pb-3 pt-6"><divdata-testid="voice-orb-stage"data-state={voiceState}@@ -358,7 +372,7 @@ export function VoicePanel({? "ready": dropPhase}- className="agentic-voice-orb-stage relative grid h-48 w-48 shrink-0 place-items-center"+ className="agentic-voice-orb-stage relative grid h-28 w-28 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" />@@ -398,67 +412,75 @@ export function VoicePanel({: format(t("agentic_grid.voice_panel.talk"), assistantName)}className={cn(- "relative z-10 rounded-full outline-none transition-[transform,box-shadow,opacity] duration-500 ease-out hover:scale-[1.015] active:scale-[0.98] focus-visible:ring-2 focus-visible:ring-[#e7c46e]/55 motion-reduce:transform-none",+ /*+ * The idle orb is DESATURATED and dimmed, and only a running+ * conversation brings its colour up. The renderer paints the same+ * ivory-to-amber weather either way; what changes is how loudly+ * it is allowed to say so. An indicator that looks identical+ * whether or not anything is happening is decoration, and a+ * decoration this bright is what made the column read as a+ * screensaver bolted to an IDE.+ */+ "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",active- ? "shadow-[0_20px_56px_-38px_rgba(231,196,110,0.48)]"- : "shadow-[0_18px_48px_-40px_rgba(231,196,110,0.3)]",- dropPhase === "over" && "scale-[1.045]",+ ? "[filter:saturate(1)_brightness(1)]"+ : "[filter:saturate(0.45)_brightness(0.72)] hover:[filter:saturate(0.7)_brightness(0.85)]",+ dropPhase === "over" && "scale-[1.04]",(busy || dropPhase === "reading") && "cursor-wait opacity-80",)}>- <VoiceOrb state={voiceState} size={176} />+ <VoiceOrb state={voiceState} size={96} /></button></div>- <div className="flex flex-col items-center gap-1.5 text-center">- <span className="flex items-center gap-2">- <span- aria-hidden="true"- data-state={voiceState}- className="agentic-voice-state-dot"- />- <span- data-testid="voice-panel-status"- aria-live="polite"- className={cn(- "font-display text-base font-semibold transition-colors",- active && "text-[#e7c46e]",- )}- >- {dropPhase === "over"- ? format(- t("agentic_grid.voice_drop.hover"),- promptTarget || t("agentic_grid.voice_drop.target_fallback"),- )- : dropPhase === "reading"- ? format(t("agentic_grid.voice_drop.reading"), dropTarget)- : t(STATUS_KEY[voiceState] ?? STATUS_KEY.idle)}- </span>- </span>- <span className="text-xs text-muted-foreground">- {active- ? t("agentic_grid.voice_panel.active_hint")- : format(- t("agentic_grid.voice_panel.idle_hint"),- assistantName,- )}+ {/*+ One line, at label weight. It used to be a 16 px display-font+ headline with a second explanatory sentence under it — "Ready" set+ larger than anything in the terminals beside it, followed by a+ standing instruction telling the reader how to click the thing they+ were looking at. The instruction is now the button's own tooltip,+ which is where an instruction about a control belongs.+ */}+ <span className="flex shrink-0 items-center gap-1.5">+ <span+ aria-hidden="true"+ data-state={voiceState}+ className="agentic-voice-state-dot"+ />+ <span+ data-testid="voice-panel-status"+ aria-live="polite"+ className={cn(+ "text-[11px] font-medium uppercase tracking-[0.1em] transition-colors",+ active ? "text-primary" : "text-muted-foreground",+ )}+ >+ {dropPhase === "over"+ ? format(+ t("agentic_grid.voice_drop.hover"),+ promptTarget || t("agentic_grid.voice_drop.target_fallback"),+ )+ : dropPhase === "reading"+ ? format(t("agentic_grid.voice_drop.reading"), dropTarget)+ : t(STATUS_KEY[voiceState] ?? STATUS_KEY.idle)}</span>- </div>+ </span>{receipts.map((receipt) => (<divkey={receipt.batchId}data-testid="voice-orb-drop-context"aria-live="polite"- className="flex max-w-full items-start gap-2 rounded-xl border border-[#e7c46e]/30 bg-[#e7c46e]/[0.07] px-3 py-2 text-left"+ 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">- <span className="mt-0.5 grid h-5 w-5 shrink-0 place-items-center rounded-full bg-[#e7c46e]/15 text-[#e7c46e]">- <Check className="h-3 w-3" aria-hidden="true" />+ <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" /></span><span className="min-w-0 flex-1 text-[11px] leading-relaxed text-muted-foreground"><span className="block truncate font-medium text-foreground"><FilePlus2- className="mr-1 inline h-3.5 w-3.5 text-[#e7c46e]"+ className="mr-1 inline h-3.5 w-3.5 text-primary"aria-hidden="true"/>{receipt.files.join(", ")}@@ -504,27 +526,32 @@ export function VoicePanel({void stageFiles({ paths: [], files }, promptTarget);}}/>- <button- type="button"- disabled={!promptTarget || dropPhase === "reading"}- onClick={() => fileInputRef.current?.click()}- className="flex items-center gap-1.5 rounded-md px-2 py-1 text-[11px] text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground disabled:cursor-not-allowed disabled:opacity-40"- >- <Paperclip className="h-3.5 w-3.5" aria-hidden="true" />- {t("agentic_grid.voice_drop.choose")}- </button>-{/* What the microphone is hearing, as it hears it. Shown only while aconversation runs — an idle panel repeating the last sentence of afinished one would read as a stuck microphone. */}{active && transcription && (<pdata-testid="voice-panel-transcript"- className="line-clamp-3 max-w-full text-center text-sm italic text-muted-foreground"+ className="line-clamp-4 max-w-full shrink-0 text-center text-[13px] leading-relaxed text-muted-foreground">- “{transcription}”+ {transcription}</p>)}++ {/* Last in the column, pushed to its foot: the fallback for people who+ do not drag files onto the orb. `mt-auto` is what keeps it there+ whether or not a transcript and a receipt are above it — a control+ that drifts up and down the column as state arrives is one nobody+ can learn the position of. */}+ <button+ type="button"+ disabled={!promptTarget || dropPhase === "reading"}+ onClick={() => fileInputRef.current?.click()}+ className="mt-auto flex shrink-0 items-center gap-1.5 rounded-control px-2 py-1 text-[11px] text-muted-foreground/80 transition-colors hover:bg-secondary hover:text-foreground disabled:cursor-not-allowed disabled:opacity-40"+ >+ <Paperclip className="h-3.5 w-3.5" aria-hidden="true" />+ {t("agentic_grid.voice_drop.choose")}+ </button></div></aside>);diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceBar.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceBar.tsxindex 51e62e08a6..d2478d1854 100644--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceBar.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceBar.tsx@@ -201,13 +201,22 @@ export function WorkspaceBar({? `${workspace.folder} — drop a screenshot or document here to send it to this workspace`: workspace.folder}+ /*+ * The selected tab is a RAISED tab, marked once.+ * It used to be marked three times over — a yellow border, a yellow+ * fill, a yellow folder glyph and yellow label text — which is four+ * ways of saying the same thing and left the accent unable to say+ * anything else in this row. One filled surface carries "you are+ * here"; the glyph keeps the colour because it is the smallest of+ * the four and reads at a glance across a wide bar.+ */className={cn(- "group/tab flex shrink-0 items-center gap-1.5 rounded-lg border px-2 py-1 transition-colors",+ "group/tab flex shrink-0 items-center gap-1.5 rounded-control border px-2 py-1 transition-colors",dropping- ? "border-primary border-dashed bg-primary/15"+ ? "border-dashed border-primary bg-primary/10": selected- ? "border-primary/50 bg-primary/10"- : "border-transparent hover:border-border hover:bg-muted/40",+ ? "border-border/60 bg-secondary"+ : "border-transparent hover:bg-secondary/50",)}>{renaming ? (@@ -274,8 +283,10 @@ export function WorkspaceBar({/><spanclassName={cn(- "max-w-[14rem] truncate text-sm font-medium",- selected ? "text-primary" : "text-foreground",+ "max-w-[14rem] truncate text-sm",+ selected+ ? "font-medium text-foreground"+ : "text-muted-foreground",)}>{workspace.name}@@ -396,10 +407,10 @@ function PaneCount({data-testid={`workspace-panes-${workspace.id}`}title={`${workspace.terminals} terminal${workspace.terminals === 1 ? "" : "s"} open`}className={cn(- "shrink-0 rounded px-1.5 py-0.5 font-mono text-[10px]",- selected- ? "bg-primary/20 text-primary"- : "bg-muted text-muted-foreground",+ // No fill of its own: the tab it sits in is already a filled surface+ // when selected, and a badge inside it was a second box inside a box.+ "shrink-0 font-mono text-[10px] tabular-nums",+ selected ? "text-primary" : "text-muted-foreground/60",)}>{workspace.terminals}diff --git a/jarvis/ui/web/frontend/src/index.css b/jarvis/ui/web/frontend/src/index.cssindex 4057017f05..47996d2136 100644--- a/jarvis/ui/web/frontend/src/index.css+++ b/jarvis/ui/web/frontend/src/index.css@@ -24,8 +24,13 @@* Every loop uses only transform and opacity, and none rotates, so the active* surface remains calm even when a long prompt is being written.*/+ /* The ring and the state dot follow the APP's accent, not the orb's own+ ivory-gold material. Two yellows a few degrees apart in one 240 px column+ is a mismatch the eye reads as sloppiness long before it can name it —+ the sphere keeps its warm palette because it is a rendered material, and+ everything drawn around it belongs to the interface. */.agentic-voice-orb-ring {- @apply pointer-events-none absolute inset-2 rounded-full border border-[#e7c46e]/45;+ @apply pointer-events-none absolute inset-2 rounded-full border border-primary/40;opacity: 0;transform: scale(0.94);will-change: transform, opacity;@@ -67,7 +72,7 @@.agentic-voice-state-dot[data-state="listening"],.agentic-voice-state-dot[data-state="thinking"],.agentic-voice-state-dot[data-state="speaking"] {- background: #e7c46e;+ background: hsl(var(--primary));animation: agentic-orb-dot 1.25s ease-in-out infinite;}diff --git a/jarvis/ui/web/frontend/src/views/AgenticIdeView.test.tsx b/jarvis/ui/web/frontend/src/views/AgenticIdeView.test.tsxindex 5a160dd87b..1bf4f09c07 100644--- a/jarvis/ui/web/frontend/src/views/AgenticIdeView.test.tsx+++ b/jarvis/ui/web/frontend/src/views/AgenticIdeView.test.tsx@@ -806,7 +806,7 @@ describe("Agentic IDE running workspace", () => {render(<AgenticIdeView />);await screen.findByTestId("pane-Mika");- const box = screen.getByPlaceholderText(/type an instruction for mika/i);+ const box = screen.getByLabelText(/instruction for mika/i);fireEvent.change(box, { target: { value: "run the tests" } });fireEvent.click(screen.getByRole("button", { name: /send/i }));@@ -829,7 +829,7 @@ describe("Agentic IDE running workspace", () => {render(<AgenticIdeView />);await screen.findByTestId("pane-Mika");- fireEvent.change(screen.getByPlaceholderText(/type an instruction/i), {+ fireEvent.change(screen.getByLabelText(/instruction for/i), {target: { value: "hello" },});fireEvent.click(screen.getByRole("button", { name: /send/i }));