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): minimal square terminal tiles with a slim title row (#264)
Ruben Lütkee4a1b2f5ce6c
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsxindex e5ffc96f66..e7d52e51f4 100644--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx@@ -322,6 +322,57 @@ describe("AgenticTerminal layout", () => {expect(terminalHarness.focus.mock.calls.length).toBe(focuses);});+ 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");+ 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();+ const resting = pane.style.borderColor;+ expect(resting).toBeTruthy();+ expect(screen.queryByTestId("pane-focus-ring-Dana")).toBeNull();+ rerender(<AgenticTerminal {...props} focused />);+ expect(pane.style.borderColor).not.toBe(resting);+ // The inner line is a layer of its own on top of the title row, so the+ // row's translucent ground cannot dim it (it read darker along the top).+ const ring = screen.getByTestId("pane-focus-ring-Dana");+ expect(ring.style.boxShadow).toContain("inset");+ expect(ring.className).toContain("pointer-events-none");+ expect(ring.className).toContain("z-[45]");+ expect(pane.lastElementChild).toBe(ring);+ expect(pane.style.boxShadow).toBe("");+ // While the reader works in the side panel, the panel wears the frame.+ rerender(<AgenticTerminal {...props} focused markFocus={false} />);+ expect(pane.style.borderColor).toBe(resting);+ expect(screen.queryByTestId("pane-focus-ring-Dana")).toBeNull();+ // 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);+ });++ it("selects the pane on a press into the terminal even when xterm swallows it", () => {+ const onFocus = vi.fn();+ render(<AgenticTerminal name="Dana" displayName="Codex" appearance="dark" fontSize={13} headerMode="minimal" onFocus={onFocus} />);+ const host = screen.getByTestId("agentic-terminal-host-Dana");+ // xterm's selection service stops a press it turns into a selection.+ const swallow = (event: Event) => event.stopPropagation();+ host.addEventListener("mousedown", swallow);+ fireEvent.mouseDown(host, { button: 0 });+ expect(onFocus).toHaveBeenCalledTimes(1);+ host.removeEventListener("mousedown", swallow);+ // A press that bubbles normally reaches both handlers but counts once.+ fireEvent.mouseDown(host, { button: 0 });+ expect(onFocus).toHaveBeenCalledTimes(2);+ // Only the primary button selects; a right-click is the pane menu's.+ fireEvent.mouseDown(host, { button: 2 });+ expect(onFocus).toHaveBeenCalledTimes(2);+ });+it("keeps the wheel on terminal history even while the CLI tracks the mouse", () => {render(<AgenticTerminaldiff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsxindex ea28ad3849..7b2dc21ce2 100644--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx@@ -84,6 +84,7 @@ import {MINIMUM_CONTRAST_RATIO,PANE_BRAND,PANE_CHROME,+ PANE_TILE,themeFor,type TerminalAppearance,} from "./terminalThemes";@@ -505,8 +506,17 @@ 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, 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" | "none";+ headerMode?: "legacy" | "compact" | "minimal" | "none";+ /**+ * Minimal tiles only: may the focused pane wear the blue "you are here"+ * edge right now? Off while the reader works in the IDE's side panel, which+ * then wears it instead. The pane stays the prompt target either way.+ */+ markFocus?: 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. */@@ -650,6 +660,7 @@ export function AgenticTerminal({workspaceId,displayName,headerMode = "legacy",+ markFocus = true,onFork,branch,computerName,@@ -2581,14 +2592,58 @@ export function AgenticTerminal({return () => container.removeEventListener("paste", onPaste, true);}, [attach, name]);+ /*+ * A primary press anywhere on the pane makes it the pane in use.+ *+ * The frame's own bubbling handler never saw presses INTO a coding agent's+ * output: while the CLI tracks the mouse, ./terminalMouseSelection turns a+ * plain press into a selection press, and xterm's selection service then+ * stops it from propagating (so the CLI does not get it). The pane stayed+ * unselected — no highlight, prompts aimed at the previous pane. The+ * terminal region therefore also listens in the capture phase, which runs+ * before any of xterm's listeners; the event identity keeps the two+ * handlers from doing the work twice for one press.+ */+ const handledPress = useRef<Event | null>(null);+ const pressPane = (event: React.MouseEvent) => {+ if (event.button !== 0 || handledPress.current === event.nativeEvent) return;+ handledPress.current = event.nativeEvent;+ onFocus?.();+ takeOwnershipRef.current?.();+ };const chrome = PANE_CHROME[appearance];+ const minimal = headerMode === "minimal";+ const tile = PANE_TILE[appearance];+ const headerProps = {+ name,+ workspaceId,+ promptCount,+ agent: agent ?? "",+ agentLogoUrl,+ displayName,+ status: visibleStatus,+ appearance,+ arranging,+ maximized,+ addDisabled: splitDisabled,+ onArrangeStart,+ onActivate: () => { onFocus?.(); takeOwnershipRef.current?.(); },+ onToggleMaximize: toggleMaximizeAndFocus,+ onAdd: onSplit ? (direction: SplitDirection) => onSplit(direction) : undefined,+ onClose,+ onRename,+ onOpenConversation: () => setHistoryOpen(true),+ onOpenChat,+ onRestart,+ onFork,+ branch,+ computerName,+ placementItems,+ };return (<div- onMouseDown={() => {- onFocus?.();- takeOwnershipRef.current?.();- }}+ onMouseDown={pressPane}{...dragHandlers}className={cn(// One quiet border per pane; the focused one carries the workspace's@@ -2604,7 +2659,7 @@ export function AgenticTerminal({// read as a flicker rather than as a pane taking focus."relative flex h-full w-full flex-col overflow-hidden backdrop-blur-[4px]",headerMode === "none" ? "border-0" : "border",- headerMode === "compact" ? "rounded-2xl" : headerMode === "none" ? "rounded-none" : "rounded-lg",+ 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",// Focus steps the RIM one notch, from the structural hairline to// `--border-strong`, and stops there. It used to add a translucent@@ -2613,7 +2668,7 @@ export function AgenticTerminal({// call-sign plate, the accent hairline under it, the visible action// cluster). A rim is the second separation device, never the first,// and a shadow belongs only to something that floats.- focused && "border-border-strong",+ focused && !minimal && "border-border-strong",// Being carried, and "a prompt just landed here", are the two states// that must be findable across a wall of twelve. They get the fill —// a solid `--primary` edge plus the sanctioned focus ring — because@@ -2644,39 +2699,28 @@ export function AgenticTerminal({* red when it failed, unchanged while it is connecting or live. See* `PANE_CHROME.edge` for why only those two states are marked.*/+ //+ // 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. The pane the reader clicked into must be+ // findable at a glance across a full grid, so its edge is doubled by an+ // inner line of the same hue — see the focus ring at the end of the+ // frame for why that line is its own layer.borderColor:- focused || dragging || justDelivered+ dragging || justDelivered? undefined- : chrome.edge[visibleStatus],+ : minimal+ ? focused && markFocus ? tile.focus : tile.edge[visibleStatus]+ : focused+ ? undefined+ : chrome.edge[visibleStatus],}}+ data-pane-style={minimal ? "minimal" : undefined}data-testid={`agentic-pane-${name}`}>- {headerMode === "compact" ? <WorkspaceTerminalHeader- name={name}- workspaceId={workspaceId}- promptCount={promptCount}- agent={agent ?? ""}- agentLogoUrl={agentLogoUrl}- displayName={displayName}- status={visibleStatus}- appearance={appearance}- arranging={arranging}- maximized={maximized}- addDisabled={splitDisabled}- onArrangeStart={onArrangeStart}- onActivate={() => { onFocus?.(); takeOwnershipRef.current?.(); }}- onToggleMaximize={toggleMaximizeAndFocus}- onAdd={onSplit ? (direction) => onSplit(direction) : undefined}- onClose={onClose}- onRename={onRename}- onOpenConversation={() => setHistoryOpen(true)}- onOpenChat={onOpenChat}- onRestart={onRestart}- onFork={onFork}- branch={branch}- computerName={computerName}- placementItems={placementItems}- /> : headerMode === "none" ? null : <PaneHeader+ {headerMode === "compact" ? <WorkspaceTerminalHeader {...headerProps} />+ : minimal ? <WorkspaceTerminalHeader {...headerProps} variant="tile" focused={focused && markFocus} />+ : headerMode === "none" ? null : <PaneHeaderworkspaceId={workspaceId}status={visibleStatus}statusDetail={statusDetail}@@ -2728,6 +2772,7 @@ export function AgenticTerminal({*/}<divref={terminalRegionRef}+ onMouseDownCapture={pressPane}id={terminalRegionId}className={cn("relative min-h-0 flex-1 overflow-hidden px-1.5 pb-0.5 pt-0.5",@@ -2830,6 +2875,21 @@ export function AgenticTerminal({</div></div>)}+ {/*+ The focused tile's inner edge line, drawn ABOVE everything in the pane.+ As an inset shadow on the frame it sat underneath the title row, whose+ own translucent ground dimmed it: the blue read darker along the top+ than down the terminal (maintainer, 2026-09-30). One layer on top keeps+ the line the same brightness all the way round.+ */}+ {minimal && focused && markFocus && !dragging && !justDelivered && (+ <div+ aria-hidden="true"+ data-testid={`pane-focus-ring-${name}`}+ className="pointer-events-none absolute inset-0 z-[45]"+ style={{ boxShadow: `inset 0 0 0 1px ${tile.focus}` }}+ />+ )}</div>);}diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceOptionsDialog.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceOptionsDialog.test.tsxindex b4c15fee2b..54ff0fddfd 100644--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceOptionsDialog.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceOptionsDialog.test.tsx@@ -28,3 +28,16 @@ it("disables adding past the workspace limit and closes with Escape", () => {fireEvent.keyDown(document, { key: "Escape" });expect(props.onOpenChange).toHaveBeenCalledWith(false);});++it("switches between the minimal and the classic terminal style", () => {+ const props = { ...setup(), paneStyle: "minimal" as const, onPaneStyle: vi.fn() };+ render(<WorkspaceOptionsDialog {...props} />);+ const minimal = screen.getByRole("button", { name: /Minimal/ });+ const classic = screen.getByRole("button", { name: /Classic/ });+ expect(minimal.getAttribute("aria-pressed")).toBe("true");+ expect(classic.getAttribute("aria-pressed")).toBe("false");+ fireEvent.click(classic);+ expect(props.onPaneStyle).toHaveBeenCalledWith("classic");+ // A style change keeps the dialog open so the reader sees the result.+ expect(props.onOpenChange).not.toHaveBeenCalled();+});diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceOptionsDialog.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceOptionsDialog.tsxindex f6ef4404df..805593919f 100644--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceOptionsDialog.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceOptionsDialog.tsx@@ -1,6 +1,7 @@import * as Dialog from "@radix-ui/react-dialog";import { Columns2, GitBranch, X } from "lucide-react";import { cn } from "@/lib/utils";+import type { PaneStyle } from "./terminalThemes";interface Props {open: boolean;@@ -19,8 +20,16 @@ interface Props {onGit: () => void;appearance: "light" | "dark" | null;onAppearance: (appearance: "light" | "dark" | null) => void;+ /** 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, 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. */export function WorkspaceOptionsDialog(props: Props) {const icon = "flex h-8 w-8 items-center justify-center rounded-lg text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-35";@@ -39,6 +48,16 @@ export function WorkspaceOptionsDialog(props: Props) {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">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>+ <div className="flex gap-2">+ {PANE_STYLES.map((style) => <button type="button" key={style.id} aria-pressed={props.paneStyle === style.id}+ onClick={() => props.onPaneStyle?.(style.id)} className={cn("flex flex-1 flex-col items-start gap-0.5 rounded-lg border px-3 py-2 text-left text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", props.paneStyle === style.id ? "border-foreground/35 bg-muted" : "border-border text-muted-foreground hover:bg-muted")}>+ <span className="font-medium">{style.label}</span>+ <span className="text-xs text-muted-foreground">{style.hint}</span>+ </button>)}+ </div>+ </section>}<section aria-label="Terminal appearance"><p className="mb-2 text-sm font-medium">Terminal appearance</p><div className="flex gap-2">diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalGrid.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalGrid.test.tsxindex 84bc05bd43..bdcf78404e 100644--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalGrid.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalGrid.test.tsx@@ -9,7 +9,8 @@ vi.mock("./AgenticTerminal", () => ({ AgenticTerminal: (props: {name: string; onToggleMaximize: () => void; onRestart: () => void; restartToken: number;onFocus: () => void;onArrangeStart?: (event: React.PointerEvent) => void;-}) => <div onMouseDown={props.onFocus}>+ headerMode?: string; markFocus?: boolean;+}) => <div onMouseDown={props.onFocus} data-testid={`pane-${props.name}`} data-header-mode={props.headerMode} data-mark-focus={String(props.markFocus)}><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>@@ -244,3 +245,23 @@ it("hides the seams while a pane is maximized", () => {fireEvent.click(screen.getByRole("button", { name: "Maximize T1" }));expect(screen.queryAllByRole("separator")).toHaveLength(0);});++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");+ 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("hands the blue frame back from the side panel to a pressed pane", () => {+ useIdeSidePanelStore.setState({ open: true, inUse: true });+ render(<WorkspaceTerminalGrid {...props} session={makeSession()} paneStyle="minimal" />);+ expect(screen.getByTestId("pane-T1").dataset.markFocus).toBe("false");+ fireEvent.mouseDown(screen.getByTestId("pane-T2"));+ expect(useIdeSidePanelStore.getState().inUse).toBe(false);+ expect(screen.getByTestId("pane-T1").dataset.markFocus).toBe("true");+ useIdeSidePanelStore.setState({ open: false, inUse: false });+});diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalGrid.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalGrid.tsxindex e537277d20..a2a3bf2a01 100644--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalGrid.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalGrid.tsx@@ -10,6 +10,7 @@ import { useThemeValue } from "@/hooks/useTheme";import { useEventStore } from "@/store/events";import { useIdeChatStore } from "@/store/ideChat";import { useIdeSidePanelStore } from "@/store/ideSidePanel";+import type { PaneStyle } from "./terminalThemes";import { cn } from "@/lib/utils";import { PaneResizer } from "@/components/layout/PaneResizer";import { treeLayout, treeLeaves, type LayoutNode, type PaneSeam } from "./treeLayout";@@ -51,17 +52,26 @@ interface Props {disabled?: boolean;onMutationStart?: () => void;onMutationEnd?: () => void;+ /**+ * 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;}interface DropTarget { id: string; position: PaneMovePosition; allowed: boolean }interface DragFeedback { id: string; target: DropTarget | null; x: number; y: number }-export function WorkspaceTerminalGrid({ session, onChanged, onAdd, onClose, onSelect, selected, maxPanes = MAX_WORKSPACE_PANES, fontSize, appearance, disabled = false, onMutationStart, onMutationEnd }: Props) {+export function WorkspaceTerminalGrid({ session, onChanged, onAdd, onClose, onSelect, selected, maxPanes = MAX_WORKSPACE_PANES, fontSize, appearance, disabled = false, onMutationStart, onMutationEnd, paneStyle: look = "classic" }: Props) {const theme = useThemeValue();const pushToast = useEventStore((state) => state.pushToast);// The pane an agent card in the side panel pointed at, framed in blue.const spotlight = useIdeSidePanelStore((state) => state.spotlight);const setSpotlight = useIdeSidePanelStore((state) => state.setSpotlight);+ // While the reader works in the side panel, the panel wears the blue frame+ // and the selected pane lets go of its own; a press on a pane takes it back.+ const panelInUse = useIdeSidePanelStore((state) => state.inUse);+ const setPanelInUse = useIdeSidePanelStore((state) => state.setInUse);const spotlitPane = spotlight?.workspaceId === session.id ? spotlight.pane : null;const frame = useRef<HTMLDivElement>(null);const [drag, setDrag] = useState<DragFeedback | null>(null);@@ -114,6 +124,7 @@ export function WorkspaceTerminalGrid({ session, onChanged, onAdd, onClose, onSeconst resizing = sizes.dragging !== null;const columns = Math.max(1, layoutSpan(tree, "row"));const visibleMaximized = maximized && members.includes(maximized) ? maximized : null;+ const minimal = look === "minimal";useEffect(() => {mounted.current = true;@@ -366,14 +377,16 @@ export function WorkspaceTerminalGrid({ session, onChanged, onAdd, onClose, onSeif (candidates[0]) void move(id, idOf(candidates[0].entry));}}style={paneStyle(visibleMaximized === id ? { x: 0, y: 0, w: 1, h: 1 } : layout.boxes[index]!)}- className={cn("min-h-0 min-w-0 rounded-2xl focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",+ className={cn("min-h-0 min-w-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",+ minimal ? "rounded-none" : "rounded-2xl",drag?.id === id && "opacity-50",spotlitPane === terminal.name && "ring-2 ring-accent ring-offset-2 ring-offset-background",visibleMaximized && visibleMaximized !== id && "hidden")}>- <AgenticTerminal headerMode="compact" 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); }}+ focused={selected === terminal.name} markFocus={!panelInUse}+ onFocus={() => { if (spotlitPane && spotlitPane !== terminal.name) setSpotlight(null); setPanelInUse(false); onSelect(terminal.name); }}layoutBusy={resizing}maximized={visibleMaximized === id} onToggleMaximize={() => setMaximized((current) => current === id ? null : id)}onArrangeStart={visibleMaximized || saving || disabled ? undefined : (event) => startDrag(id, event)} arranging={drag?.id === id}@@ -385,7 +398,7 @@ export function WorkspaceTerminalGrid({ session, onChanged, onAdd, onClose, onSecomputerName={computerName(terminal)} placementItems={placementItems(terminal)}onFork={terminal.accepts_prompts === false ? undefined : () => setForking({ name: terminal.name, agent: terminal.agent, displayName: terminal.display_name, workspaceId: session.id })} />{drag?.target?.id === id && <div aria-hidden="true" data-testid="dock-preview" data-position={drag.target.position}- className={cn("pointer-events-none absolute z-20 flex items-center justify-center rounded-xl border-2 p-2", drag.target.allowed ? "border-ring/70 bg-accent/[0.15]" : "border-destructive bg-background/80",+ className={cn("pointer-events-none absolute z-20 flex items-center justify-center border-2 p-2", minimal ? "rounded-none" : "rounded-xl", drag.target.allowed ? "border-ring/70 bg-accent/[0.15]" : "border-destructive bg-background/80",drag.target.position === "left" ? "inset-y-1 left-1 w-1/2" : drag.target.position === "right" ? "inset-y-1 right-1 w-1/2" : drag.target.position === "above" ? "inset-x-1 top-1 h-1/2" : drag.target.position === "below" ? "inset-x-1 bottom-1 h-1/2" : "inset-1")}><span className="rounded-md bg-popover px-3 py-2 text-center text-xs font-medium text-popover-foreground shadow-lg">{drag.target.allowed ? DOCK_LABELS[drag.target.position] : `Maximum ${MAX_GRID_COLUMNS} columns × ${MAX_GRID_ROWS} rows`}</span></div>}diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalHeader.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalHeader.test.tsxindex b102bc85af..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 };@@ -160,3 +160,38 @@ describe("compact workspace terminal header", () => {expect(screen.queryByRole("menu")).toBeNull();});});++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("starts a move from the title and opens a square menu", () => {+ const arrange = vi.fn();+ render(<WorkspaceTerminalHeader {...BASE} variant="tile" onArrangeStart={arrange} onOpenConversation={() => {}} />);+ pressPointer(screen.getByText("Dana"));+ expect(arrange).toHaveBeenCalledTimes(1);+ pressPointer(screen.getByRole("button", { name: "More actions for Dana" }));+ expect(arrange).toHaveBeenCalledTimes(1);+ fireEvent.click(screen.getByRole("button", { name: "More actions for Dana" }));+ expect(screen.getByRole("menu").className).toContain("rounded-none");+ });+});diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalHeader.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalHeader.tsxindex 5a27c3b948..0966bec12e 100644--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalHeader.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceTerminalHeader.tsx@@ -6,7 +6,7 @@ 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";@@ -39,6 +39,14 @@ interface Props {computerName?: string;/** "Run on …" / "Bring back" entries for the pane's menu. */placementItems?: { label: string; run: () => void }[];+ /**+ * `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" | "tile";+ /** Tile only: the pane the reader is working in; its title takes the signal hue. */+ focused?: boolean;}type MenuIcon = ComponentType<SVGProps<SVGSVGElement>>;@@ -58,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,+ 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@@ -134,68 +142,30 @@ export function WorkspaceTerminalHeader({finally { setSaving(false); }};- 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"- style={{ ...variables, borderColor: chrome.border, background: chrome.shell, touchAction: onArrangeStart ? "none" : undefined }}- onContextMenu={openMenuAt}- onPointerDown={(event) => {- if (event.button !== 0 || (event.target as HTMLElement).closest("[data-header-control]")) return;- setMenuPosition(null);- onArrangeStart?.(event);- }}>- {draft === null ? <button type="button" data-ide-drag-handle="true" data-testid={`pane-move-${name}`}- // Pointer selection is handled by the pane's mousedown. Keyboard- // activation selects too, while retaining focus for Alt+Arrow moves.- onClick={(event) => { if (event.detail === 0) onActivate?.(); }}- 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"}`}>- <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>- {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)]">- <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)]">- <GitBranch className="h-3 w-3 shrink-0" aria-hidden="true" /><span className="truncate">{branch}</span>- </span>}- </button> : <form data-header-control="true" 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 rounded border px-1.5 py-0.5 text-sm outline-none"- style={{ borderColor: chrome.border, background: chrome.float, color: brand.ink }} />- <button type="submit" aria-label="Save name" disabled={saving} className={ACTION_CLASS}><Check className="h-3.5 w-3.5" /></button>- <button type="button" aria-label="Cancel rename" disabled={saving} onClick={() => { setDraft(null); setRenameError(""); }} className={ACTION_CLASS}><X className="h-3.5 w-3.5" /></button>- </form>}- <span id={dragHintId} className="sr-only">Drag to reorder, or focus this title and press Alt with an arrow key.</span>- <div data-header-control="true" className="flex shrink-0 items-center gap-0.5">- <button ref={moreRef} type="button" aria-label={`More actions for ${name}`} aria-haspopup="menu" aria-expanded={menuOpen}- aria-controls={menuOpen ? menuId : undefined} onClick={toggleMenu}- onKeyDown={(event) => { if (event.key === "ArrowDown") { event.preventDefault(); toggleMenu(); } }}- className={ACTION_CLASS}><MoreHorizontal className="h-4 w-4" /></button>- <button type="button" aria-label={`${maximized ? "Restore" : "Maximize"} ${name}`} disabled={!onToggleMaximize}- onClick={onToggleMaximize} className={ACTION_CLASS}>{maximized ? <Minimize2 className="h-3.5 w-3.5" /> : <Maximize2 className="h-3.5 w-3.5" />}</button>- {onFork && <button type="button" data-testid={`pane-fork-${name}`} aria-label={`Fork ${name}`} title={`Fork ${name}`}- disabled={addDisabled} onClick={onFork} className={`group ${ACTION_CLASS}`}>- <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>- <button type="button" aria-label={`Close ${name}`} disabled={!onClose} onClick={onClose} className={ACTION_CLASS}><X className="h-4 w-4" /></button>- </div>- </header>- {renameError && <p role="alert" className="px-2 py-1 text-xs" style={{ color: theme.red }}>{renameError}</p>}- {createPortal(<div ref={menuRef} id={menuId} role="menu" hidden={!menuOpen} aria-label={`Actions for ${name}`}- className="fixed z-[90] w-[200px] rounded-lg border p-1 shadow-lg"+ // 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 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 ${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 ${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()}onBlur={(event) => {if (event.relatedTarget instanceof Node && !event.currentTarget.contains(event.relatedTarget) && event.relatedTarget !== moreRef.current) setMenuPosition(null);}}@@ -232,6 +202,67 @@ export function WorkspaceTerminalHeader({{onClose && <button type="button" role="menuitem" onClick={() => choose(onClose)}className="mt-1 flex w-full items-center gap-2 rounded border-t border-[color:var(--pane-chip)] px-2.5 py-2 pt-2 text-left text-xs hover:bg-[color:var(--pane-chip)] focus:bg-[color:var(--pane-chip)] focus:outline-none"><X className="h-3.5 w-3.5 shrink-0" aria-hidden="true" />Close pane</button>}- </div>, document.body)}+ </div>, document.body);++ const moreButton = <button ref={moreRef} type="button" aria-label={`More actions for ${name}`} aria-haspopup="menu" aria-expanded={menuOpen}+ aria-controls={menuOpen ? menuId : undefined} onClick={toggleMenu}+ onKeyDown={(event) => { if (event.key === "ArrowDown") { event.preventDefault(); toggleMenu(); } }}+ className={action}><MoreHorizontal className="h-4 w-4" /></button>;+ const maximizeButton = <button type="button" aria-label={`${maximized ? "Restore" : "Maximize"} ${name}`} disabled={!onToggleMaximize}+ 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>;++ return <>+ <header data-testid={`workspace-terminal-header-${name}`}+ 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) => {+ if (event.button !== 0 || (event.target as HTMLElement).closest("[data-header-control]")) return;+ setMenuPosition(null);+ onArrangeStart?.(event);+ }}>+ {draft === null ? <button type="button" data-ide-drag-handle="true" data-testid={`pane-move-${name}`}+ // Pointer selection is handled by the pane's mousedown. Keyboard+ // activation selects too, while retaining focus for Alt+Arrow moves.+ onClick={(event) => { if (event.detail === 0) onActivate?.(); }}+ 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 ${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}+ // 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 ${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 ${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}+ <span id={dragHintId} className="sr-only">Drag to reorder, or focus this title and press Alt with an arrow key.</span>+ <div data-header-control="true" className="flex shrink-0 items-center gap-0.5">+ {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}`}>+ <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}><Plus className="h-4 w-4" /></button>+ {closeButton}+ </div>+ </header>+ {renameError && <p role="alert" className="px-2 py-1 text-xs" style={{ color: theme.red }}>{renameError}</p>}+ {menu}</>;}diff --git a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.test.tsxindex 08286bac7b..553aa182c2 100644--- a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.test.tsx@@ -33,7 +33,7 @@ beforeEach(() => {useWorkspacePanesStore.setState({ panes: [], activeId: null, loaded: true, load: async () => {} });useIdeProjectsStore.setState({ activeWorkspaceId: null });useEventStore.setState({ activeSection: "agentic-ide" });- useIdeSidePanelStore.setState({ open: false, tabs: ["agents"], active: "agents", maximized: false });+ useIdeSidePanelStore.setState({ open: false, tabs: ["agents"], active: "agents", maximized: false, inUse: false });});afterEach(cleanup);@@ -165,7 +165,7 @@ describe("IdeSidePanel", () => {expect(screen.getByTestId("office-stage")).toBe(stage);fireEvent.click(screen.getByTestId("ide-side-panel-maximize"));- expect(screen.getByTestId("ide-side-panel-body").className).toBe("h-full");+ expect(screen.getByTestId("ide-side-panel-body").className).toBe("relative h-full");expect(screen.getByTestId("ide-side-panel-grid").className).not.toContain("invisible");expect(screen.getByTestId("office-stage")).toBe(stage);});@@ -183,4 +183,27 @@ describe("IdeSidePanel", () => {fireEvent.click(screen.getByTestId("ide-side-panel-rail-office"));expect(useIdeSidePanelStore.getState()).toMatchObject({ open: true, active: "office" });});++ it("frames the panel in blue while the reader works in it", () => {+ useIdeSidePanelStore.setState({ open: true });+ const { rerender } = render(<IdeSidePanelFrame markInUse><div data-testid="grid">grid</div></IdeSidePanelFrame>);+ expect(screen.queryByTestId("ide-side-panel-in-use")).toBeNull();+ fireEvent.pointerDown(screen.getByTestId("ide-side-panel-tab-agents"));+ expect(useIdeSidePanelStore.getState().inUse).toBe(true);+ const ring = screen.getByTestId("ide-side-panel-in-use");+ expect(ring.className).toContain("ring-accent");+ expect(ring.className).toContain("pointer-events-none");+ // A press on the grid is the grid's business (the pane hands the frame back).+ fireEvent.pointerDown(screen.getByTestId("grid"));+ expect(useIdeSidePanelStore.getState().inUse).toBe(true);+ act(() => useIdeSidePanelStore.getState().setInUse(false));+ expect(screen.queryByTestId("ide-side-panel-in-use")).toBeNull();+ // The classic pane style draws no blue frames at all.+ act(() => useIdeSidePanelStore.getState().setInUse(true));+ rerender(<IdeSidePanelFrame><div data-testid="grid">grid</div></IdeSidePanelFrame>);+ expect(screen.queryByTestId("ide-side-panel-in-use")).toBeNull();+ // Closing the panel ends its turn as the area in use.+ act(() => useIdeSidePanelStore.getState().setOpen(false));+ expect(useIdeSidePanelStore.getState().inUse).toBe(false);+ });});diff --git a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.tsx b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.tsxindex 192ddf10fd..7602070890 100644--- a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.tsx@@ -34,9 +34,15 @@ const HEADER_BTN =* size, so opening or closing it never changes the sibling identity of a live* terminal or its PTY socket — the same trick the legacy explorer used.*/-export function IdeSidePanelFrame({ children }: { children: ReactNode }) {+/**+ * `markInUse`: frame the panel in the signal blue while the reader works in it,+ * the way a focused terminal tile is framed (the minimal pane style).+ */+export function IdeSidePanelFrame({ children, markInUse = false }: { children: ReactNode; markInUse?: boolean }) {const t = useT();const open = useIdeSidePanelStore((state) => state.open);+ const inUse = useIdeSidePanelStore((state) => state.inUse);+ const setInUse = useIdeSidePanelStore((state) => state.setInUse);const active = useIdeSidePanelStore((state) => state.active);const maximized = useIdeSidePanelStore((state) => state.maximized);// Ctrl+click on a path in any terminal opens it in the Explorer tab.@@ -123,9 +129,18 @@ export function IdeSidePanelFrame({ children }: { children: ReactNode }) {/></div>)}- {/* Same element either way, so the live office scene is never remounted. */}- <div data-testid="ide-side-panel-body" className={maximized ? "absolute inset-0 z-30" : "h-full"}>+ {/* Same element either way, so the live office scene is never remounted.+ A press anywhere in it (capture phase: the office canvas and the+ terminals in it stop their own events) makes it the area in use. */}+ <div data-testid="ide-side-panel-body" className={maximized ? "absolute inset-0 z-30" : "relative h-full"}+ onPointerDownCapture={() => setInUse(true)}><IdeSidePanel />+ {/* The "you are here" frame, drawn over everything in the panel so+ no tab header or scene can cover part of it. */}+ {markInUse && inUse && (+ <div aria-hidden="true" data-testid="ide-side-panel-in-use"+ className="pointer-events-none absolute inset-0 z-40 ring-2 ring-inset ring-accent" />+ )}</div></>)}diff --git a/jarvis/ui/web/frontend/src/components/agentic/terminalThemes.ts b/jarvis/ui/web/frontend/src/components/agentic/terminalThemes.tsindex 16803bdeaf..14fe9474e4 100644--- a/jarvis/ui/web/frontend/src/components/agentic/terminalThemes.ts+++ b/jarvis/ui/web/frontend/src/components/agentic/terminalThemes.ts@@ -145,6 +145,45 @@ export function storedTerminalAppearance(): TerminalAppearance | null {}}+/**+ * How a workspace draws its panes.+ *+ * * `minimal` — the tiling-multiplexer look (herdr, tmux): square 1px frames,+ * 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+ * the titles back.+ */+export type PaneStyle = "minimal" | "classic";++/** Where the reader's pane style is kept; no entry means the default. */+export const PANE_STYLE_KEY = "jarvis.agenticIde.paneStyle";++export const DEFAULT_PANE_STYLE: PaneStyle = "minimal";++/** The stored pane style, or the default when there is none (or storage is blocked). */+export function storedPaneStyle(): PaneStyle {+ try {+ const raw = window.localStorage.getItem(PANE_STYLE_KEY);+ return raw === "minimal" || raw === "classic" ? raw : DEFAULT_PANE_STYLE;+ } catch {+ // Private mode or disabled storage reads as "no preference", never as a failure.+ return DEFAULT_PANE_STYLE;+ }+}++/** Remember the reader's pane style; losing it only costs a click next time. */+export function storePaneStyle(style: PaneStyle): void {+ try {+ window.localStorage.setItem(PANE_STYLE_KEY, style);+ } catch {+ // Blocked storage keeps the choice for this session only, which is fine.+ }+}+/*** The lifecycle a pane's frame reports, mirroring `PaneStatus` in* ./AgenticTerminal.@@ -295,3 +334,47 @@ export const PANE_CHROME: Record<TerminalAppearance, PaneChrome> = {},},};++/** The frame of a pane drawn in the `minimal` style. */+export interface PaneTileChrome {+ /** The resting edge per lifecycle, as in `PaneChrome.edge`. */+ edge: Record<PaneEdgeState, string>;+ /** The focused pane's edge. */+ focus: string;+}++/**+ * Frame colours for the `minimal` pane style.+ *+ * 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.+ *+ * The focused pane wears the app's signal hue (`--accent`: #3D8BFF dark,+ * #096CDC light), the one colour the product spends on "this is where you+ * are". It is the only standing accent in the workspace; a failed pane keeps+ * the fault hue from `PANE_CHROME`, a little stronger to match the brighter+ * resting line.+ */+export const PANE_TILE: Record<TerminalAppearance, PaneTileChrome> = {+ light: {+ edge: {+ connecting: "rgba(38,37,30,0.30)",+ live: "rgba(38,37,30,0.30)",+ exited: "rgba(38,37,30,0.14)",+ error: "rgba(190,23,68,0.65)",+ },+ focus: "#096cdc",+ },+ dark: {+ edge: {+ connecting: "rgba(255,255,255,0.26)",+ live: "rgba(255,255,255,0.26)",+ exited: "rgba(255,255,255,0.11)",+ error: "rgba(227,70,113,0.75)",+ },+ focus: "#3d8bff",+ },+};diff --git a/jarvis/ui/web/frontend/src/components/society/office/PaneCommandPanel.tsx b/jarvis/ui/web/frontend/src/components/society/office/PaneCommandPanel.tsxindex e8933200ea..5bf110587b 100644--- a/jarvis/ui/web/frontend/src/components/society/office/PaneCommandPanel.tsx+++ b/jarvis/ui/web/frontend/src/components/society/office/PaneCommandPanel.tsx@@ -32,7 +32,7 @@ import { AgentMark } from "@/components/agentic/AgentMark";import { AgenticTerminal } from "@/components/agentic/AgenticTerminal";import { FONT_DEFAULT } from "@/components/agentic/paneFont";import { BranchIcon } from "@/components/agentic/branchIcon";-import { PANE_BRAND, PANE_CHROME, PANE_SOLID, storedTerminalAppearance, themeFor } from "@/components/agentic/terminalThemes";+import { PANE_BRAND, PANE_CHROME, PANE_SOLID, PANE_TILE, storedPaneStyle, storedTerminalAppearance, themeFor } from "@/components/agentic/terminalThemes";import type { PaneOccupant } from "./codingFloor";import { player, useOfficeStore } from "./officeStore";import { agentPositions } from "./walkerRegistry";@@ -103,6 +103,9 @@ export function PaneCommandPanel({ occupant, compact = false, onOpen, onClose }:const appTheme = useThemeValue();// The IDE's pane appearance: the reader's stored choice, else the app's theme.const appearance = storedTerminalAppearance() ?? appTheme;+ // The IDE's pane style (Workspace options): the window wears the same tile+ // as the panes in the grid — square, slim title row, blue while in use.+ const paneStyle = storedPaneStyle();const brand = PANE_BRAND[appearance];const chrome = PANE_CHROME[appearance];const ansi = themeFor(appearance);@@ -271,6 +274,7 @@ export function PaneCommandPanel({ occupant, compact = false, onOpen, onClose }:"--pane-float": chrome.float,"--pane-ok": ansi.green,"--pane-fault": ansi.red,+ "--pane-focus": PANE_TILE[appearance].focus,} as CSSProperties;const style: CSSProperties = rect? { ...vars, left: rect.x, top: rect.y, width: rect.w, height: rect.h }@@ -278,7 +282,7 @@ export function PaneCommandPanel({ occupant, compact = false, onOpen, onClose }:: { ...vars, visibility: "hidden" };return (- <aside ref={panel} className="office-pane" data-office-ui data-appearance={appearance}+ <aside ref={panel} className="office-pane" data-office-ui data-appearance={appearance} data-style={paneStyle}data-gesture={dragRect ? (resizing ? "resize" : "move") : undefined}style={style} aria-labelledby={headingId} tabIndex={-1}><header className="office-pane-head" title={t("society.office.pane_window_hint")}@@ -287,7 +291,7 @@ export function PaneCommandPanel({ occupant, compact = false, onOpen, onClose }:aria-label={t(`society.office.pane_state_${occupant.stateKey}`)} /><AgentMark agent={pane.agent} label={pane.display_name || pane.agent} variant="plain" size="sm"className="!text-[color:var(--pane-ink)] [&>.bg-foreground]:!bg-[color:var(--pane-ink)]" />- <h2 id={headingId} title={`${title} (${pane.name})`}>{title}</h2>+ <h2 id={headingId} title={`${title} (${pane.name})`} className={paneStyle === "minimal" ? "font-mono" : undefined}>{title}</h2><span className="office-pane-meta">{t(`society.office.pane_state_${occupant.stateKey}`)}{since ? ` · ${since}` : ""}</span>diff --git a/jarvis/ui/web/frontend/src/components/society/office/paneCommand.css b/jarvis/ui/web/frontend/src/components/society/office/paneCommand.cssindex 19326a526d..3d58548920 100644--- a/jarvis/ui/web/frontend/src/components/society/office/paneCommand.css+++ b/jarvis/ui/web/frontend/src/components/society/office/paneCommand.css@@ -54,6 +54,23 @@.office-pane-grip[data-edge="se"]::after { content:""; position:absolute; right:4px; bottom:4px; width:8px; height:8px; opacity:.55; background:linear-gradient(135deg, transparent 0 45%, var(--pane-ink-faint) 45% 55%, transparent 55% 70%, var(--pane-ink-faint) 70% 80%, transparent 80%); }.office-pane:hover .office-pane-grip[data-edge="se"]::after { opacity:.9; }+/* The minimal pane style (the IDE's Workspace options): the window is a tile+ like the panes in the grid — square, a slim title row in the terminal font,+ square controls — and while the reader works in it (keyboard focus anywhere+ inside, the terminal included) its edge and title take the signal hue. The+ inner half of that two-pixel edge is its own layer over everything, so the+ title row's ground cannot dim it along the top. */+.office-pane[data-style="minimal"] { border-radius:0; }+.office-pane[data-style="minimal"] .office-pane-head { height:28px; min-height:28px; padding:0 2px 0 10px; gap:7px; }+.office-pane[data-style="minimal"] .office-pane-head h2 { font-size:12px; }+.office-pane[data-style="minimal"] .office-pane-actions button { width:24px; height:24px; border-radius:0; }+.office-pane[data-style="minimal"] .office-pane-actions button svg { width:14px; height:14px; }+.office-pane[data-style="minimal"] .office-pane-status { border-radius:0; }+.office-pane[data-style="minimal"]:focus-within { border-color:var(--pane-focus); }+.office-pane[data-style="minimal"]:focus-within::after { content:""; position:absolute; inset:0; z-index:4; pointer-events:none; box-shadow:inset 0 0 0 1px var(--pane-focus); }+.office-pane[data-style="minimal"]:focus-within .office-pane-head h2 { color:var(--pane-focus); font-weight:600; }+.office-pane[data-style="minimal"]:focus-visible { outline:none; }+/* Mission Control's still screens of the sessions (./PaneLiveScreen). Fixedheight, rows absolutely placed: the grid is fitted to this box, so the textcan never feed back into its size. */diff --git a/jarvis/ui/web/frontend/src/store/ideSidePanel.ts b/jarvis/ui/web/frontend/src/store/ideSidePanel.tsindex 37a4b3c356..ad9890415c 100644--- a/jarvis/ui/web/frontend/src/store/ideSidePanel.ts+++ b/jarvis/ui/web/frontend/src/store/ideSidePanel.ts@@ -93,6 +93,14 @@ interface IdeSidePanelState {*/maximized: boolean;setMaximized: (maximized: boolean) => void;+ /**+ * The reader is working in the panel: their last press landed in it rather+ * than in a terminal. The panel then wears the blue "you are here" frame a+ * focused terminal wears, and the terminal lets go of its own. A press on+ * a pane hands it back. Not persisted.+ */+ inUse: boolean;+ setInUse: (inUse: boolean) => void;}const initialTabs = storedTabs();@@ -111,8 +119,10 @@ export const useIdeSidePanelStore = create<IdeSidePanelState>((set, get) => {setSpotlight: (spotlight) => set({ spotlight }),maximized: false,setMaximized: (maximized) => set({ maximized: maximized && get().open }),+ inUse: false,+ setInUse: (inUse) => { if (get().inUse !== inUse) set({ inUse: inUse && get().open }); },setOpen: (open) => {- if (!open) set({ spotlight: null, maximized: false });+ if (!open) set({ spotlight: null, maximized: false, inUse: false });commit({ open });},toggle: () => get().setOpen(!get().open),@@ -129,7 +139,7 @@ export const useIdeSidePanelStore = create<IdeSidePanelState>((set, get) => {if (index < 0) return;const rest = tabs.filter((tab) => tab !== id);if (rest.length === 0) {- set({ spotlight: null, maximized: false });+ set({ spotlight: null, maximized: false, inUse: false });commit({ open: false, tabs: DEFAULT_TABS, active: DEFAULT_TABS[0] });return;}diff --git a/jarvis/ui/web/frontend/src/views/AgenticIdeView.tsx b/jarvis/ui/web/frontend/src/views/AgenticIdeView.tsxindex 7adef3b81e..80e54e20c7 100644--- a/jarvis/ui/web/frontend/src/views/AgenticIdeView.tsx+++ b/jarvis/ui/web/frontend/src/views/AgenticIdeView.tsx@@ -7,6 +7,7 @@ import { WorkspaceAgentSetup } from "@/components/agentic/WorkspaceAgentSetup";import { RunOnPicker, storeRunOn, storedRunOn } from "@/components/agentic/RunOnPicker";import { WorkspaceOptionsDialog } from "@/components/agentic/WorkspaceOptionsDialog";import { FONT_DEFAULT } from "@/components/agentic/paneFont";+import { storePaneStyle, storedPaneStyle, type PaneStyle } from "@/components/agentic/terminalThemes";import { IdeSidePanelFrame } from "@/components/agentic/sidePanel/IdeSidePanel";import { GRID_LIMIT_HINT, MAX_WORKSPACE_PANES, canSplitFit, fitsWorkspace, isBalancedWorkspace } from "@/components/agentic/workspaceDocking";import { AgentMark } from "@/components/agentic/AgentMark";@@ -110,6 +111,7 @@ export function AgenticIdeView({ onScreen = true }: AgenticIdeViewProps) {const stored = localStorage.getItem(APPEARANCE_KEY);return stored === "light" || stored === "dark" ? stored : null;});+ const [paneStyle, setPaneStyle] = useState<PaneStyle>(storedPaneStyle);const handledAction = useRef(0);const handledPaneRequest = useRef(0);const refreshEpoch = useRef(0);@@ -410,6 +412,7 @@ export function AgenticIdeView({ onScreen = true }: AgenticIdeViewProps) {});const saveAppearance = (next: "light" | "dark" | null) => { setAppearance(next); if (next) localStorage.setItem(APPEARANCE_KEY, next); else localStorage.removeItem(APPEARANCE_KEY); };+ const savePaneStyle = (next: PaneStyle) => { setPaneStyle(next); storePaneStyle(next); };const balanceLayout = () => void run(async () => {if (!session) return;const next = await reorderIdeTerminals(session.id, session.terminals.map((terminal) => terminal.history_id ?? terminal.key));@@ -475,16 +478,17 @@ export function AgenticIdeView({ onScreen = true }: AgenticIdeViewProps) {count={session?.terminals.length ?? 0} maxPanes={maxPanes} busy={busy} canAdd={installed.length > 0}onAdd={openAgentPicker} onBalance={balanceLayout} onRename={() => { setRenameValue(session?.name ?? session?.project.name ?? ""); setRenameOpen(true); }}onClose={stopWorkspace} onGit={() => setGitOpen(true)} appearance={appearance} onAppearance={saveAppearance}+ paneStyle={paneStyle} onPaneStyle={savePaneStyle}/>{session && <GitPanelDialog open={gitOpen} onOpenChange={setGitOpen} folder={session.folder} workspace={session.name ?? session.project.name}onOpenWorktree={(tree) => openWorktreeWorkspace(tree.path, tree.branch)} onNewWorktree={newWorktreeWorkspace} />}<CloseAgentDialog target={closeTarget} busy={busy} onCancel={() => setCloseRequest(null)} onConfirm={confirmClose} /><main className="min-h-0 flex-1">- <IdeSidePanelFrame>- {session ?<WorkspaceTerminalGrid key={session.id} session={session} onChanged={(next) => setState((current) => current?.session?.id === next.id ? { ...current, session: next } : current)}+ <IdeSidePanelFrame markInUse={paneStyle === "minimal"}>+ {session ? <WorkspaceTerminalGrid key={session.id} session={session} onChanged={(next) => setState((current) => current?.session?.id === next.id ? { ...current, session: next } : current)}onAdd={openAgentPicker} onClose={closeAgent} onSelect={setSelected} selected={selected} maxPanes={maxPanes} fontSize={fontSize} appearance={appearance} disabled={busy}- onMutationStart={beginGridMutation} onMutationEnd={endGridMutation} />+ onMutationStart={beginGridMutation} onMutationEnd={endGridMutation} paneStyle={paneStyle} />: <div className="flex h-full flex-col items-center justify-center gap-3 px-6 text-center"><FolderPlus className="h-8 w-8 text-muted-foreground/70" /><h1 className="text-lg font-medium">{projects.some((project) => !project.scratch && !project.archived) ? "Choose a workspace" : "Connect a project"}</h1>