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(ide): slim square title row and an always-marked working pane on minimal tiles
rubenluetke10-beep57ee86625020
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsxindex 69524776ab..6a9730eaac 100644--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx@@ -322,23 +322,25 @@ describe("AgenticTerminal layout", () => {expect(terminalHarness.focus.mock.calls.length).toBe(focuses);});- it("draws a minimal tile: square frame, no title bar, signal edge only when focus means something", () => {+ it("draws a minimal tile: square frame, slim title row, and a signal edge on the pane in use", () => {const props = { name: "Dana", displayName: "Codex", agent: "codex", appearance: "dark" as const, fontSize: 13, headerMode: "minimal" as const };const { rerender } = render(<AgenticTerminal {...props} />);const pane = screen.getByTestId("agentic-pane-Dana");expect(pane.className).toContain("rounded-none");expect(pane.className).not.toContain("rounded-2xl");expect(pane.dataset.paneStyle).toBe("minimal");- expect(screen.queryByTestId("workspace-terminal-header-Dana")).toBeNull();+ const header = screen.getByTestId("workspace-terminal-header-Dana");+ expect(header.dataset.variant).toBe("tile");+ expect(screen.getByTestId("pane-title-Dana")).toBeTruthy();expect(screen.queryByTestId("pane-header-Dana")).toBeNull();- expect(screen.queryByTestId("pane-title-Dana")).toBeNull();- expect(screen.getByTestId("workspace-terminal-controls-Dana")).toBeTruthy();const resting = pane.style.borderColor;expect(resting).toBeTruthy();+ expect(pane.style.boxShadow).toBe("");rerender(<AgenticTerminal {...props} focused />);expect(pane.style.borderColor).not.toBe(resting);- // A lone pane is always the focused one; marking it says nothing.- rerender(<AgenticTerminal {...props} focused accentFocus={false} />);+ expect(pane.style.boxShadow).toContain("inset");+ // One pane in the grid is still the pane in use: it is marked too.+ rerender(<AgenticTerminal {...props} focused={false} />);expect(pane.style.borderColor).toBe(resting);});diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsxindex 51cc39596a..3c20353c93 100644--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx@@ -506,17 +506,11 @@ interface AgenticTerminalProps {* Compact workspace chrome is opt-in; legacy grids retain their existing* header. "none" draws the bare terminal for a host that brings its own* title bar (the office's pane panel) — no header, no border of its own.- * "minimal" is the multiplexer tile: a square 1px frame, no title bar, and- * the compact header's controls floating in the top corner while the- * pointer is over the pane (see `WorkspaceTerminalHeader`'s overlay).+ * "minimal" is the multiplexer tile: a square 1px frame, a slim square+ * title row with the compact header's controls, and the pane the reader+ * works in outlined in the signal hue.*/headerMode?: "legacy" | "compact" | "minimal" | "none";- /**- * Minimal tiles only: may the focused pane wear the signal edge? A lone pane- * is always "the focused one", so marking it says nothing; the grid turns- * this off when it holds a single pane, as tiling multiplexers do.- */- accentFocus?: boolean;/** Compact header only: opens the fork dialog for this pane. */onFork?: () => void;/** Compact header only: the worktree branch this pane runs on, if any. */@@ -660,7 +654,6 @@ export function AgenticTerminal({workspaceId,displayName,headerMode = "legacy",- accentFocus = true,onFork,branch,computerName,@@ -2643,9 +2636,6 @@ export function AgenticTerminal({// On a grid where the focused pane is the one standing accent, that// read as a flicker rather than as a pane taking focus."relative flex h-full w-full flex-col overflow-hidden backdrop-blur-[4px]",- // Minimal tiles name their hover group so the floating controls can- // appear for THIS pane only.- minimal && "group/tile",headerMode === "none" ? "border-0" : "border",headerMode === "compact" ? "rounded-2xl" : headerMode === "none" || minimal ? "rounded-none" : "rounded-lg","transition-[box-shadow,border-color,opacity] duration-150 ease-out motion-reduce:transition-none",@@ -2690,21 +2680,24 @@ export function AgenticTerminal({//// A minimal tile paints its focused edge here too: the signal hue is a// per-appearance literal (`PANE_TILE`), not a class, for the same- // reason the resting edge is.+ // reason the resting edge is. The pane the reader clicked into must be+ // findable at a glance across a full grid, so its edge is doubled by an+ // inset line of the same hue (two pixels, no layout shift).borderColor:dragging || justDelivered? undefined: minimal- ? focused && accentFocus ? tile.focus : tile.edge[visibleStatus]+ ? focused ? tile.focus : tile.edge[visibleStatus]: focused? undefined: chrome.edge[visibleStatus],+ boxShadow: minimal && focused && !dragging && !justDelivered ? `inset 0 0 0 1px ${tile.focus}` : undefined,}}data-pane-style={minimal ? "minimal" : undefined}data-testid={`agentic-pane-${name}`}>{headerMode === "compact" ? <WorkspaceTerminalHeader {...headerProps} />- : minimal ? <WorkspaceTerminalHeader {...headerProps} variant="overlay" />+ : minimal ? <WorkspaceTerminalHeader {...headerProps} variant="tile" focused={focused} />: headerMode === "none" ? null : <PaneHeaderworkspaceId={workspaceId}status={visibleStatus}@@ -2759,9 +2752,7 @@ export function AgenticTerminal({ref={terminalRegionRef}id={terminalRegionId}className={cn(- "relative min-h-0 flex-1 overflow-hidden px-1.5 pb-0.5",- // With no title bar the first row would sit on the top edge itself.- minimal ? "pt-1" : "pt-0.5",+ "relative min-h-0 flex-1 overflow-hidden px-1.5 pb-0.5 pt-0.5",active && !tailReady && "invisible",)}>diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceOptionsDialog.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceOptionsDialog.tsxindex fdc581ed2e..805593919f 100644--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceOptionsDialog.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceOptionsDialog.tsx@@ -20,14 +20,14 @@ interface Props {onGit: () => void;appearance: "light" | "dark" | null;onAppearance: (appearance: "light" | "dark" | null) => void;- /** Square tiles without titles, or rounded cards with a title bar. */+ /** Square tiles with a slim title row, or rounded cards. */paneStyle?: PaneStyle;onPaneStyle?: (style: PaneStyle) => void;}const PANE_STYLES: { id: PaneStyle; label: string; hint: string }[] = [- { id: "minimal", label: "Minimal", hint: "Square frames, no titles" },- { id: "classic", label: "Classic", hint: "Rounded, with a title bar" },+ { id: "minimal", label: "Minimal", hint: "Square frames, slim title row" },+ { id: "classic", label: "Classic", hint: "Rounded cards, taller title bar" },];/** Workspace controls live off-canvas so the terminal area needs no toolbar. */@@ -46,9 +46,7 @@ export function WorkspaceOptionsDialog(props: Props) {<section aria-label="Terminal arrangement" className="space-y-2"><button type="button" disabled={props.busy || props.count < 2} onClick={() => choose(props.onBalance)}className="flex w-full items-center gap-2 rounded-lg border border-border px-3 py-2.5 text-sm hover:bg-muted disabled:opacity-40"><Columns2 className="h-4 w-4" />Balance layout</button>- <p className="text-xs leading-relaxed text-muted-foreground">{props.paneStyle === "minimal"- ? "Point at a terminal and drag its handle (top right) to an edge to place it beside, above or below another terminal. Drop in the center to swap positions."- : "Drag a terminal title to an edge to place it beside, above or below another terminal. Drop in the center to swap positions."}</p>+ <p className="text-xs leading-relaxed text-muted-foreground">Drag a terminal title to an edge to place it beside, above or below another terminal. Drop in the center to swap positions.</p></section>{props.onPaneStyle && <section aria-label="Terminal style"><p className="mb-2 text-sm font-medium">Terminal style</p>diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalGrid.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalGrid.test.tsxindex bbf3e6b06a..88aa85d405 100644--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalGrid.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalGrid.test.tsx@@ -9,8 +9,8 @@ vi.mock("./AgenticTerminal", () => ({ AgenticTerminal: (props: {name: string; onToggleMaximize: () => void; onRestart: () => void; restartToken: number;onFocus: () => void;onArrangeStart?: (event: React.PointerEvent) => void;- headerMode?: string; accentFocus?: boolean;-}) => <div onMouseDown={props.onFocus} data-testid={`pane-${props.name}`} data-header-mode={props.headerMode} data-accent-focus={String(props.accentFocus)}>+ headerMode?: string;+}) => <div onMouseDown={props.onFocus} data-testid={`pane-${props.name}`} data-header-mode={props.headerMode}><button onClick={props.onToggleMaximize}>Maximize {props.name}</button><button type="button" data-ide-drag-handle="true" onPointerDown={props.onArrangeStart}>Move {props.name}</button><button onClick={props.onRestart}>Restart {props.name}</button>@@ -246,18 +246,12 @@ it("hides the seams while a pane is maximized", () => {expect(screen.queryAllByRole("separator")).toHaveLength(0);});-it("draws square, title-less tiles in the minimal style and cards in the classic one", () => {+it("draws square tiles in the minimal style and cards in the classic one", () => {const { rerender } = render(<WorkspaceTerminalGrid {...props} session={makeSession()} paneStyle="minimal" />);const tile = document.querySelector<HTMLElement>('[data-session-id="T1"]')!;expect(tile.className).toContain("rounded-none");expect(screen.getByTestId("pane-T1").dataset.headerMode).toBe("minimal");- expect(screen.getByTestId("pane-T1").dataset.accentFocus).toBe("true");rerender(<WorkspaceTerminalGrid {...props} session={makeSession()} paneStyle="classic" />);expect(document.querySelector<HTMLElement>('[data-session-id="T1"]')!.className).toContain("rounded-2xl");expect(screen.getByTestId("pane-T1").dataset.headerMode).toBe("compact");});--it("does not mark focus on a lone pane", () => {- render(<WorkspaceTerminalGrid {...props} session={makeSession(["T1"])} paneStyle="minimal" />);- expect(screen.getByTestId("pane-T1").dataset.accentFocus).toBe("false");-});diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalGrid.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalGrid.tsxindex 3acdecf1c8..8d7bf06002 100644--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalGrid.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalGrid.tsx@@ -53,8 +53,8 @@ interface Props {onMutationStart?: () => void;onMutationEnd?: () => void;/**- * How the panes are drawn: square multiplexer tiles without title bars, or- * rounded cards with one. The reader picks it in Workspace options.+ * How the panes are drawn: square multiplexer tiles with a slim title row,+ * or rounded cards. The reader picks it in Workspace options.*/paneStyle?: PaneStyle;}@@ -378,7 +378,7 @@ export function WorkspaceTerminalGrid({ session, onChanged, onAdd, onClose, onSedrag?.id === id && "opacity-50",spotlitPane === terminal.name && "ring-2 ring-accent ring-offset-2 ring-offset-background",visibleMaximized && visibleMaximized !== id && "hidden")}>- <AgenticTerminal headerMode={minimal ? "minimal" : "compact"} accentFocus={tiles.length > 1} agent={terminal.agent}+ <AgenticTerminal headerMode={minimal ? "minimal" : "compact"} agent={terminal.agent}name={terminal.name} workspaceId={session.id} displayName={terminal.display_name}recap={terminal.recap} promptCount={terminal.prompts_sent} appearance={appearance ?? theme} fontSize={fontSize}focused={selected === terminal.name} onFocus={() => { if (spotlitPane && spotlitPane !== terminal.name) setSpotlight(null); onSelect(terminal.name); }}diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalHeader.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalHeader.test.tsxindex 0d03d3ef4e..64692d471c 100644--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalHeader.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalHeader.test.tsx@@ -1,7 +1,7 @@import { act, fireEvent, render, screen, within } from "@testing-library/react";import { describe, expect, it, vi } from "vitest";import { WorkspaceTerminalHeader } from "./WorkspaceTerminalHeader";-import { PANE_BRAND, PANE_CHROME, themeFor } from "./terminalThemes";+import { PANE_BRAND, PANE_CHROME, PANE_TILE, themeFor } from "./terminalThemes";const BASE = { name: "Dana", agent: "codex", displayName: "Codex", appearance: "dark" as const, status: "live" as const };@@ -161,48 +161,37 @@ describe("compact workspace terminal header", () => {});});-describe("minimal tile controls (overlay variant)", () => {- it("floats four square controls and no title, shown only under the pointer", () => {- render(<WorkspaceTerminalHeader {...BASE} variant="overlay" onToggleMaximize={() => {}} onClose={() => {}} onOpenConversation={() => {}} />);- expect(screen.queryByTestId("workspace-terminal-header-Dana")).toBeNull();- expect(screen.queryByTestId("pane-title-Dana")).toBeNull();- const controls = screen.getByTestId("workspace-terminal-controls-Dana");- expect(controls.className).toContain("absolute");- expect(controls.className).toContain("opacity-0");- expect(controls.className).toContain("group-hover/tile:opacity-100");- expect(controls.className).toContain("focus-within:opacity-100");- const buttons = within(controls).getAllByRole("button");- expect(buttons.map((button) => button.getAttribute("aria-label"))).toEqual(["Dana", "More actions for Dana", "Maximize Dana", "Close Dana"]);- for (const button of buttons) expect(button.className).toContain("rounded-none");+describe("minimal tile title row", () => {+ it("keeps every control of the card header in a slimmer, square row", () => {+ render(<WorkspaceTerminalHeader {...BASE} variant="tile" onFork={() => {}} onAdd={() => {}} onToggleMaximize={() => {}} onClose={() => {}} />);+ const header = screen.getByTestId("workspace-terminal-header-Dana");+ expect(header.className).toContain("h-7");+ expect(header.className).not.toContain("h-9");+ expect(within(header).getByTestId("pane-title-Dana").textContent).toBe("Dana");+ for (const label of ["More actions for Dana", "Maximize Dana", "Fork Dana", "Add agent beside Dana", "Close Dana"]) {+ expect(within(header).getByRole("button", { name: label }).className).toContain("rounded-none");+ }+ });++ it("lights the title of the pane in use in the signal hue", () => {+ const { rerender } = render(<WorkspaceTerminalHeader {...BASE} variant="tile" />);+ const expected = document.createElement("span");+ expected.style.color = PANE_BRAND.dark.inkMuted;+ expect(screen.getByTestId("pane-title-Dana").style.color).toBe(expected.style.color);+ rerender(<WorkspaceTerminalHeader {...BASE} variant="tile" focused />);+ expected.style.color = PANE_TILE.dark.focus;+ expect(screen.getByTestId("pane-title-Dana").style.color).toBe(expected.style.color);+ expect(screen.getByTestId("pane-title-Dana").className).toContain("font-semibold");});- it("moves the pane from its handle only, and stays visible while its menu is open", () => {+ it("starts a move from the title and opens a square menu", () => {const arrange = vi.fn();- render(<WorkspaceTerminalHeader {...BASE} variant="overlay" onArrangeStart={arrange} onOpenConversation={() => {}} />);- const handle = screen.getByRole("button", { name: "Move Dana" });- expect(handle.dataset.ideDragHandle).toBe("true");- expect(handle.getAttribute("aria-keyshortcuts")).toContain("Alt+ArrowLeft");- pressPointer(handle);+ render(<WorkspaceTerminalHeader {...BASE} variant="tile" onArrangeStart={arrange} onOpenConversation={() => {}} />);+ pressPointer(screen.getByText("Dana"));expect(arrange).toHaveBeenCalledTimes(1);- pressPointer(handle, 2);pressPointer(screen.getByRole("button", { name: "More actions for Dana" }));expect(arrange).toHaveBeenCalledTimes(1);fireEvent.click(screen.getByRole("button", { name: "More actions for Dana" }));- const controls = screen.getByTestId("workspace-terminal-controls-Dana");- expect(controls.className).toContain("opacity-100");- expect(controls.className).not.toContain("opacity-0");expect(screen.getByRole("menu").className).toContain("rounded-none");});-- it("renames in place of the handle", async () => {- const rename = vi.fn().mockResolvedValue(true);- render(<WorkspaceTerminalHeader {...BASE} variant="overlay" onRename={rename} />);- fireEvent.click(screen.getByRole("button", { name: "More actions for Dana" }));- fireEvent.click(screen.getByRole("menuitem", { name: "Rename" }));- expect(screen.queryByRole("button", { name: "Dana" })).toBeNull();- fireEvent.change(screen.getByRole("textbox", { name: "Name for Dana" }), { target: { value: "Installer" } });- await act(async () => { fireEvent.click(screen.getByRole("button", { name: "Save name" })); });- expect(rename).toHaveBeenCalledWith("Installer");- expect(screen.queryByRole("textbox")).toBeNull();- });});diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalHeader.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalHeader.tsxindex 64f3a7786e..0966bec12e 100644--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalHeader.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalHeader.tsx@@ -1,12 +1,12 @@import { useEffect, useId, useLayoutEffect, useRef, useState, type ComponentType, type CSSProperties, type MouseEvent, type PointerEvent, type SVGProps } from "react";import { createPortal } from "react-dom";-import { Check, GitBranch, GripVertical, Maximize2, Minimize2, MoreHorizontal, Plus, Server, X } from "lucide-react";+import { Check, GitBranch, Maximize2, Minimize2, MoreHorizontal, Plus, Server, X } from "lucide-react";import { AgentMark } from "./AgentMark";import { BranchIcon } from "./branchIcon";import { usePaneTitle } from "@/store/paneRecaps";import { PromptHistoryButton } from "./PromptHistoryButton";import { SplitAboveIcon, SplitBelowIcon, SplitLeftIcon, SplitRightIcon } from "./splitIcons";-import { PANE_BRAND, PANE_CHROME, themeFor, type PaneEdgeState, type TerminalAppearance } from "./terminalThemes";+import { PANE_BRAND, PANE_CHROME, PANE_TILE, themeFor, type PaneEdgeState, type TerminalAppearance } from "./terminalThemes";export type PaneSplitDirection = "right" | "down" | "left" | "above";@@ -40,13 +40,13 @@ interface Props {/** "Run on …" / "Bring back" entries for the pane's menu. */placementItems?: { label: string; run: () => void }[];/**- * `bar` is the title bar across the top of the pane. `overlay` is the- * minimal tile's chrome: no title, only a small square cluster in the top- * corner — move handle, menu, maximize, close — shown while the pointer is- * over the pane (or a control in it has keyboard focus). It floats over the- * terminal instead of taking a row from it.+ * `bar` is the card's title bar. `tile` is the minimal tile's: the same+ * title and controls in a slimmer, square row, closer to a multiplexer's+ * label in the top border than to a card header.*/- variant?: "bar" | "overlay";+ variant?: "bar" | "tile";+ /** Tile only: the pane the reader is working in; its title takes the signal hue. */+ focused?: boolean;}type MenuIcon = ComponentType<SVGProps<SVGSVGElement>>;@@ -66,7 +66,7 @@ export function WorkspaceTerminalHeader({name, workspaceId, promptCount = 0, agent, agentLogoUrl, displayName, status, appearance, arranging = false,maximized = false, addDisabled = false, onArrangeStart, onActivate, onToggleMaximize,onAdd, onClose, onRename, onOpenConversation, onOpenChat, onRestart, onFork, branch,- computerName, placementItems, variant = "bar",+ computerName, placementItems, variant = "bar", focused = false,}: Props) {const brand = PANE_BRAND[appearance];// The pane's goal in a few words, in place of its call-sign; the call-sign@@ -142,25 +142,27 @@ export function WorkspaceTerminalHeader({finally { setSaving(false); }};- // The overlay's buttons are square and a step smaller: they float over the- // terminal's own text, so they take as little of it as they can.- const action = variant === "overlay" ? ACTION_CLASS.replace("h-7 w-7", "h-6 w-6").replace(" rounded ", " rounded-none ") : ACTION_CLASS;+ // A tile's row is slimmer and square: its buttons are a step smaller and+ // lose their radius, as does everything else drawn in the row.+ const tile = variant === "tile";+ const action = tile ? ACTION_CLASS.replace("h-7 w-7", "h-6 w-6").replace(" rounded ", " rounded-none ") : ACTION_CLASS;+ const radius = tile ? "rounded-none" : "rounded";const renameForm = draft === null ? null : <form data-header-control="true"- className={`flex min-w-0 items-center gap-1 ${variant === "overlay" ? "w-56" : "flex-1"}`}+ className="flex min-w-0 flex-1 items-center gap-1"onSubmit={(event) => { event.preventDefault(); void commitRename(); }}><input autoFocus aria-label={`Name for ${name}`} value={draft} maxLength={40} disabled={saving}aria-invalid={Boolean(renameError)}onChange={(event) => setDraft(event.target.value)}onKeyDown={(event) => { if (event.key === "Escape") { event.stopPropagation(); setDraft(null); setRenameError(""); } }}- className={`min-w-0 flex-1 border px-1.5 py-0.5 text-sm outline-none ${variant === "overlay" ? "rounded-none" : "rounded"}`}+ className={`min-w-0 flex-1 border px-1.5 py-0.5 text-sm outline-none ${radius}`}style={{ borderColor: chrome.border, background: chrome.float, color: brand.ink }} /><button type="submit" aria-label="Save name" disabled={saving} className={action}><Check className="h-3.5 w-3.5" /></button><button type="button" aria-label="Cancel rename" disabled={saving} onClick={() => { setDraft(null); setRenameError(""); }} className={action}><X className="h-3.5 w-3.5" /></button></form>;const menu = createPortal(<div ref={menuRef} id={menuId} role="menu" hidden={!menuOpen} aria-label={`Actions for ${name}`}- className={`fixed z-[90] w-[200px] border p-1 shadow-lg ${variant === "overlay" ? "rounded-none" : "rounded-lg"}`}+ className={`fixed z-[90] w-[200px] border p-1 shadow-lg ${tile ? "rounded-none" : "rounded-lg"}`}style={{ ...variables, ...(menuPosition ?? { left: 0, top: 0 }), borderColor: chrome.border, background: chrome.float }}onPointerDown={(event) => event.stopPropagation()}onMouseDown={(event) => event.stopPropagation()}@@ -210,45 +212,12 @@ export function WorkspaceTerminalHeader({onClick={onToggleMaximize} className={action}>{maximized ? <Minimize2 className="h-3.5 w-3.5" /> : <Maximize2 className="h-3.5 w-3.5" />}</button>;const closeButton = <button type="button" aria-label={`Close ${name}`} disabled={!onClose} onClick={onClose} className={action}><X className="h-4 w-4" /></button>;- if (variant === "overlay") {- // Held visible while the reader is using it: a menu or rename open, or- // the pane being carried. Otherwise it shows only under the pointer.- const pinned = menuOpen || draft !== null || arranging;- const label = title ? `${title} (${name})` : name;- return <>- <div data-testid={`workspace-terminal-controls-${name}`} data-header-control="true"- className={`absolute right-1 top-1 z-30 flex select-none items-center gap-px border p-px transition-opacity duration-150 motion-reduce:transition-none ${pinned ? "opacity-100" : "opacity-0 focus-within:opacity-100 group-hover/tile:opacity-100"}`}- style={{ ...variables, borderColor: chrome.border, background: chrome.float }}- onContextMenu={openMenuAt}>- {draft === null ? <button type="button" data-ide-drag-handle="true" data-testid={`pane-move-${name}`}- onClick={(event) => { if (event.detail === 0) onActivate?.(); }}- onPointerDown={(event) => {- if (event.button !== 0) return;- setMenuPosition(null);- onArrangeStart?.(event);- }}- title={onArrangeStart ? `${label} · drag to move` : label}- aria-label={onArrangeStart ? `Move ${name}` : name}- aria-describedby={onArrangeStart ? dragHintId : undefined}- aria-keyshortcuts={onArrangeStart ? "Alt+ArrowLeft Alt+ArrowRight Alt+ArrowUp Alt+ArrowDown" : undefined}- style={{ touchAction: onArrangeStart ? "none" : undefined }}- className={`${action} ${onArrangeStart ? arranging ? "cursor-grabbing" : "cursor-grab" : "cursor-default"}`}>- <GripVertical className="h-3.5 w-3.5" aria-hidden="true" />- </button> : renameForm}- <span id={dragHintId} className="sr-only">Drag to reorder, or focus this handle and press Alt with an arrow key.</span>- {moreButton}- {maximizeButton}- {closeButton}- </div>- {renameError && <p role="alert" className="absolute right-1 top-10 z-30 border px-2 py-1 text-xs"- style={{ borderColor: chrome.border, background: chrome.float, color: theme.red }}>{renameError}</p>}- {menu}- </>;- }-return <><header data-testid={`workspace-terminal-header-${name}`}- className="relative flex h-9 min-h-9 shrink-0 select-none items-center gap-1 border-b pl-2.5 pr-1"+ data-variant={variant}+ className={tile+ ? "relative flex h-7 min-h-7 shrink-0 select-none items-center gap-1 border-b pl-2 pr-0.5"+ : "relative flex h-9 min-h-9 shrink-0 select-none items-center gap-1 border-b pl-2.5 pr-1"}style={{ ...variables, borderColor: chrome.border, background: chrome.shell, touchAction: onArrangeStart ? "none" : undefined }}onContextMenu={openMenuAt}onPointerDown={(event) => {@@ -263,17 +232,21 @@ export function WorkspaceTerminalHeader({aria-label={onArrangeStart ? `Move ${name}` : name}aria-describedby={onArrangeStart ? dragHintId : undefined}aria-keyshortcuts={onArrangeStart ? "Alt+ArrowLeft Alt+ArrowRight Alt+ArrowUp Alt+ArrowDown" : undefined}- className={`flex h-full min-w-0 flex-1 items-center gap-2 rounded text-left text-sm font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[color:var(--pane-ink)] ${onArrangeStart ? arranging ? "cursor-grabbing" : "cursor-grab" : "cursor-default"}`}>+ className={`flex h-full min-w-0 flex-1 items-center gap-2 ${radius} text-left ${tile ? "font-mono text-xs" : "text-sm font-medium"} focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[color:var(--pane-ink)] ${onArrangeStart ? arranging ? "cursor-grabbing" : "cursor-grab" : "cursor-default"}`}><span role="img" aria-label={`${name}: ${status}`} className="h-1.5 w-1.5 shrink-0 rounded-full"style={{ background: status === "live" ? theme.green : status === "error" ? theme.red : status === "connecting" ? theme.yellow : brand.inkFaint }} /><AgentMark agent={agent} label={displayName} logoUrl={agentLogoUrl} variant="plain" size="sm"className="!text-[color:var(--pane-ink)] [&>.bg-foreground]:!bg-[color:var(--pane-ink)]" />- <span data-testid={`pane-title-${name}`} title={title ? `${title} (${name})` : name} className="truncate">{title || name}</span>+ <span data-testid={`pane-title-${name}`} title={title ? `${title} (${name})` : name}+ // On a tile the working pane's title takes the same signal hue as+ // its edge, the way a multiplexer lights the label in its border.+ className={tile ? `truncate ${focused ? "font-semibold" : ""}` : "truncate"}+ style={tile ? { color: focused ? PANE_TILE[appearance].focus : brand.inkMuted } : undefined}>{title || name}</span>{computerName && <span data-testid={`pane-computer-${name}`} title={`Runs on ${computerName}. It keeps working while this app is closed.`}- className="flex min-w-0 max-w-[35%] shrink items-center gap-1 rounded bg-[color:var(--pane-chip)] px-1.5 py-0.5 text-[11px] font-normal text-[color:var(--pane-ink-muted)]">+ className={`flex min-w-0 max-w-[35%] shrink items-center gap-1 ${radius} bg-[color:var(--pane-chip)] px-1.5 py-0.5 text-[11px] font-normal text-[color:var(--pane-ink-muted)]`}><Server className="h-3 w-3 shrink-0" aria-hidden="true" /><span className="truncate">{computerName}</span></span>}{branch && <span data-testid={`pane-branch-${name}`} title={`Runs in its own git worktree on branch ${branch}`}- className="flex min-w-0 max-w-[45%] shrink items-center gap-1 rounded bg-[color:var(--pane-chip)] px-1.5 py-0.5 font-mono text-[11px] font-normal text-[color:var(--pane-ink-muted)]">+ className={`flex min-w-0 max-w-[45%] shrink items-center gap-1 ${radius} bg-[color:var(--pane-chip)] px-1.5 py-0.5 font-mono text-[11px] font-normal text-[color:var(--pane-ink-muted)]`}><GitBranch className="h-3 w-3 shrink-0" aria-hidden="true" /><span className="truncate">{branch}</span></span>}</button> : renameForm}@@ -282,10 +255,10 @@ export function WorkspaceTerminalHeader({{moreButton}{maximizeButton}{onFork && <button type="button" data-testid={`pane-fork-${name}`} aria-label={`Fork ${name}`} title={`Fork ${name}`}- disabled={addDisabled} onClick={onFork} className={`group ${ACTION_CLASS}`}>+ disabled={addDisabled} onClick={onFork} className={`group ${action}`}><BranchIcon className="h-[15px] w-[15px] opacity-75 transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100" /></button>}<button type="button" aria-label={`Add agent beside ${name}`} disabled={addDisabled || !onAdd}- onClick={() => onAdd?.("right")} className={ACTION_CLASS}><Plus className="h-4 w-4" /></button>+ onClick={() => onAdd?.("right")} className={action}><Plus className="h-4 w-4" /></button>{closeButton}</div></header>diff --git a/jarvis/ui/web/frontend/src/components/agentic/terminalThemes.ts b/jarvis/ui/web/frontend/src/components/agentic/terminalThemes.tsindex bb0ff9a1f1..14fe9474e4 100644--- a/jarvis/ui/web/frontend/src/components/agentic/terminalThemes.ts+++ b/jarvis/ui/web/frontend/src/components/agentic/terminalThemes.ts@@ -149,10 +149,9 @@ export function storedTerminalAppearance(): TerminalAppearance | null {* How a workspace draws its panes.** * `minimal` — the tiling-multiplexer look (herdr, tmux): square 1px frames,- * no title bar, the focused pane marked by the signal hue alone, and the- * pane's controls shown only while the pointer is over it.- * * `classic` — rounded cards, each with a title bar naming its goal and- * carrying its controls.+ * a slim square title row carrying the pane's controls, and the pane the+ * reader works in outlined in the signal hue.+ * * `classic` — rounded cards, each with a taller title bar.** A reader's preference, kept in this window's storage like the appearance;* `classic` stays one click away in Workspace options for anyone who wants@@ -347,8 +346,8 @@ export interface PaneTileChrome {/*** Frame colours for the `minimal` pane style.*- * A multiplexer grid is separated by its lines alone — no title bars, no- * radius, no elevation — so the resting edge is a full step brighter than+ * A multiplexer grid is separated by its lines alone — no radius, no+ * elevation — so the resting edge is a full step brighter than* the card style's hairline (herdr draws it in a mid grey). Otherwise every* edge would dissolve into the wallpaper and the grid would read as one* block of text.