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(agentic-ide): dress the pane title bars in the brand's two voices
rubenluetke10-beep89d86abc5402
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsxindex 9b478e8e61..59fe1c5925 100644--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx@@ -70,6 +70,7 @@ import { SplitBelowIcon, SplitRightIcon } from "./splitIcons";import { cn } from "@/lib/utils";import {MINIMUM_CONTRAST_RATIO,+ PANE_BRAND,PANE_CHROME,themeFor,type TerminalAppearance,@@ -2344,6 +2345,9 @@ function PaneHeader({}) {const t = useT();const light = appearance === "light";+ // The title bar's brand voice, keyed to the PANE's ground rather than the+ // app theme — see PANE_BRAND in ./terminalThemes for why the two differ.+ const brand = PANE_BRAND[appearance];// What the split menu hangs off. The pane clips everything inside it, so the// menu is measured against this bar and drawn in front of the window — see// `anchorTo` in ./AgentPicker.@@ -2456,14 +2460,44 @@ function PaneHeader({"group/header relative flex min-h-7 items-center justify-between gap-1.5 overflow-hidden border-b px-2 py-0.5",onArrangeStart && (arranging ? "cursor-grabbing" : "cursor-grab"),)}- style={{- borderColor: PANE_CHROME[appearance].border,- // Claims the touch gesture for the drag. Without it a touch that starts- // on the header scrolls the workspace instead of lifting the pane, and- // the drag never begins at all.- touchAction: onArrangeStart ? "none" : undefined,- }}+ style={+ {+ borderColor: PANE_CHROME[appearance].border,+ // The focused pane's bar gets a whisper of the accent — one wash on+ // one pane, never twelve tinted bands (see the class note above).+ backgroundImage: focused+ ? `linear-gradient(180deg, ${brand.accentWash}, transparent)`+ : undefined,+ // Claims the touch gesture for the drag. Without it a touch that+ // starts on the header scrolls the workspace instead of lifting the+ // pane, and the drag never begins at all.+ touchAction: onArrangeStart ? "none" : undefined,+ // The bar's brand, published as variables so hover/focus states can+ // be CLASSES. An inline `color` beats every class (see PaneAction's+ // note), so anything that changes on interaction reads these instead+ // of receiving an inline style.+ "--pane-accent": brand.accent,+ "--pane-accent-soft": brand.accentSoft,+ "--pane-ink": brand.ink,+ "--pane-ink-muted": brand.inkMuted,+ } as React.CSSProperties+ }>+ {/* The brand hairline: a signal-yellow (gold, on paper) rule that sweeps+ from under the call-sign of THE focused pane. It is the workspace's+ "you are here" mark — drawn on one pane at a time, so it stays a mark+ rather than a uniform. Opacity, not mounting, so focus changes glide. */}+ <span+ aria-hidden="true"+ data-testid={`pane-header-accent-${name}`}+ className={cn(+ "pointer-events-none absolute inset-x-0 bottom-0 h-[2px] transition-opacity duration-200",+ focused ? "opacity-100" : "opacity-0",+ )}+ style={{+ background: `linear-gradient(90deg, ${brand.accent}, ${brand.accentSoft} 55%, transparent 92%)`,+ }}+ /><div className="flex min-w-0 flex-1 items-center gap-2">{draft !== null ? (/*@@ -2503,14 +2537,11 @@ function PaneHeader({}}className={cn("w-full min-w-0 max-w-[9rem] rounded-md px-2 py-0.5 font-display text-[13px] font-semibold tracking-tight outline-none",- "border border-primary/50 transition-colors focus:border-primary disabled:opacity-60",+ // The pane's own accent, not the app's: the vars are set on the+ // header, so a light pane in a dark app still edits in gold.+ "border border-[color:var(--pane-accent-soft)] transition-colors focus:border-[color:var(--pane-accent)] disabled:opacity-60",)}- style={{- color: light ? "#2b2b33" : "#e8e8ec",- background: light- ? "rgba(0,0,0,0.04)"- : "rgba(255,255,255,0.06)",- }}+ style={{ color: brand.ink, background: brand.chip }}/><buttontype="submit"@@ -2518,9 +2549,9 @@ function PaneHeader({aria-label={`Save name for ${name}`}data-testid={`pane-rename-save-${name}`}className={cn(- "flex h-5 w-5 shrink-0 items-center justify-center rounded text-primary",- "transition-colors duration-150 hover:bg-primary/15 disabled:opacity-40",- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary/70",+ "flex h-5 w-5 shrink-0 items-center justify-center rounded text-[color:var(--pane-accent)]",+ "transition-colors duration-150 hover:bg-[color:var(--pane-accent-soft)] disabled:opacity-40",+ "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[color:var(--pane-accent)]",)}>{saving ? (@@ -2535,9 +2566,14 @@ function PaneHeader({aria-label={`Cancel renaming ${name}`}onClick={() => setDraft(null)}className={cn(- "flex h-5 w-5 shrink-0 items-center justify-center rounded text-muted-foreground",- "transition-colors duration-150 hover:bg-muted hover:text-foreground",- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary/70",+ "flex h-5 w-5 shrink-0 items-center justify-center rounded",+ "transition-colors duration-150",+ "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[color:var(--pane-accent)]",+ // On the pane's ground, so the pane's ink — not the app's+ // muted-foreground, which disagrees exactly in mixed mode.+ light+ ? "text-[#6b6b73] hover:bg-scrim/10 hover:text-[#2b2b33]"+ : "text-[#9a9aa5] hover:bg-sheen/10 hover:text-[#e8e8ec]",)}><X className="h-3 w-3" />@@ -2563,16 +2599,22 @@ function PaneHeader({: undefined}title={onRename ? `${name} — double-click to rename` : undefined}- // The focused pane's call-sign is the workspace's one standing- // accent; every other name is plain text. A filled badge on all- // twelve panes marked nothing, because a marker everyone wears- // is a uniform.- className={cn(- "shrink-0 rounded-md px-1.5 py-0.5 font-display text-[13px] font-semibold tracking-tight",- focused ? "bg-primary/20 text-primary" : "",- )}+ // The focused pane's call-sign wears the brand plate — filled+ // signal-yellow with black type on dark panes, gold with white+ // type on light ones. Every other name sits on a quiet chip so+ // the plate stays the workspace's one standing accent: a filled+ // badge on all twelve panes marked nothing, because a marker+ // everyone wears is a uniform. The colours come from PANE_BRAND+ // (the pane's own ground), never the app theme.+ className="shrink-0 rounded-md px-1.5 py-0.5 font-display text-[13px] font-semibold leading-none tracking-tight transition-[background-color,color,box-shadow] duration-150"style={- focused ? undefined : { color: light ? "#2b2b33" : "#e8e8ec" }+ focused+ ? {+ background: brand.accent,+ color: brand.onAccent,+ boxShadow: `0 1px 8px ${brand.accentSoft}`,+ }+ : { background: brand.chip, color: brand.ink }}>{name}@@ -2647,10 +2689,11 @@ function PaneHeader({// Allowed to give way (`min-w-0`, no `shrink-0`): which seat a pane// bills is worth a badge, but never worth pushing the call-sign or// the pane's own state off a narrow header to say it.- className="min-w-0 max-w-[8rem] truncate rounded-full px-1.5 text-[10px] tracking-wide"+ className="min-w-0 max-w-[8rem] truncate rounded-full px-2 py-px font-display text-[10px] font-medium tracking-wide"style={{- color: light ? "#6b6b73" : "#9a9aa5",- backgroundColor: light ? "#00000010" : "#ffffff12",+ color: brand.inkFaint,+ backgroundColor: brand.chip,+ boxShadow: `inset 0 0 0 1px ${PANE_CHROME[appearance].border}`,}}title={`Running on ${accountLabel}`}data-testid={`pane-account-${name}`}@@ -2806,8 +2849,9 @@ function PaneAction({"transition-colors duration-150 disabled:cursor-not-allowed disabled:opacity-30",// Reachable by keyboard and visibly so. The cluster is revealed by// `focus-within`, which is worth nothing if the focused button then- // looks identical to its four neighbours.- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary/70",+ // looks identical to its four neighbours. The ring reads the header's+ // brand variable, so it is yellow on dark panes and gold on light ones.+ "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[color:var(--pane-accent)]",// The resting colour is a CLASS rather than an inline style, and that is// load-bearing rather than tidiness: an inline `color` beats every// class, so the hover colour below would simply never take effect.diff --git a/jarvis/ui/web/frontend/src/components/agentic/PaneRecap.tsx b/jarvis/ui/web/frontend/src/components/agentic/PaneRecap.tsxindex 67a30d151c..84be0a0ace 100644--- a/jarvis/ui/web/frontend/src/components/agentic/PaneRecap.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/PaneRecap.tsx@@ -37,6 +37,7 @@* as the sentence needs while still pointing at the pane it belongs to.*/import { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";+import type { CSSProperties } from "react";import { createPortal } from "react-dom";import {ChevronDown,@@ -50,6 +51,7 @@ import {} from "lucide-react";import { cn } from "@/lib/utils";import type { RecapReason, RecapSource } from "@/lib/agenticIdeApi";+import { PANE_BRAND } from "./terminalThemes";/** How wide the card gets before it starts wrapping, and its floor on a phone. */const CARD_WIDTH = 400;@@ -242,13 +244,17 @@ export function PaneRecap({};}, [close, open]);+ // The pane's brand ink, keyed to the PANE's own ground (a light pane in a+ // dark app is a supported combination — see PANE_BRAND in ./terminalThemes).+ const brand = PANE_BRAND[light ? "light" : "dark"];+// A pane with nothing to say yet keeps showing which CLI it runs, exactly as// it did before recaps existed. Inventing a sentence for it would be noise.if (!headline) {return (<span- className="truncate text-[11px] uppercase tracking-wider"- style={{ color: light ? "#77777f" : "#8a8a95" }}+ className="truncate font-display text-[11px] font-medium uppercase tracking-[0.14em]"+ style={{ color: brand.inkFaint }}data-testid={`pane-agent-${name}`}>{displayName}@@ -273,7 +279,20 @@ export function PaneRecap({const attribution = credit(source, writer);return (- <span className="flex min-w-0 flex-1 items-center">+ <span+ className="flex min-w-0 flex-1 items-center"+ // The brand ink as variables rather than inline colours, because an+ // inline `color` beats every class and would silence the hover below.+ // Set here as well as on the header, so the line styles itself even when+ // rendered outside a pane header (tests, future reuse).+ style={+ {+ "--pane-accent": brand.accent,+ "--pane-ink": brand.ink,+ "--pane-ink-muted": brand.inkMuted,+ } as CSSProperties+ }+ ><buttonref={lineRef}type="button"@@ -288,8 +307,13 @@ export function PaneRecap({if (open) close();else reveal();}}- className="flex min-w-0 flex-1 items-center gap-1 rounded-sm text-left text-[11px] leading-tight outline-none transition-colors hover:text-foreground focus-visible:ring-1 focus-visible:ring-primary/60"- style={{ color: light ? "#5f5f68" : "#9b9ba6" }}+ // The title is the bar's main text and dresses like it: the display+ // face at a readable size, quiet ink that sharpens under the pointer.+ className={cn(+ "flex min-w-0 flex-1 items-center gap-1 rounded-sm text-left font-display text-[12px] font-medium leading-tight tracking-tight outline-none",+ "text-[color:var(--pane-ink-muted)] transition-colors hover:text-[color:var(--pane-ink)]",+ "focus-visible:ring-1 focus-visible:ring-[color:var(--pane-accent)]",+ )}><span className="min-w-0 flex-1 truncate">{headline}</span><ChevronDowndiff --git a/jarvis/ui/web/frontend/src/components/agentic/terminalThemes.ts b/jarvis/ui/web/frontend/src/components/agentic/terminalThemes.tsindex 7a56160c0c..ab085ad38c 100644--- a/jarvis/ui/web/frontend/src/components/agentic/terminalThemes.ts+++ b/jarvis/ui/web/frontend/src/components/agentic/terminalThemes.ts@@ -152,6 +152,61 @@ export interface PaneChrome {* combination), so a token picked for the app lands on the wrong ground exactly* when the two disagree.*/+/**+ * Brand ink for a pane's title bar, resolved against the PANE's own ground.+ *+ * Not the app's `--primary` token, for the same reason `NOTICE_TONE` exists in+ * ./AgenticTerminal: terminal appearance is a separate setting from the app+ * theme (a light pane inside a dark app is a supported combination), and the+ * app's accent lands on the wrong ground exactly when the two disagree —+ * signal-yellow on paper is 1.4:1, a call-sign nobody can read. Each+ * appearance therefore carries its own accent, and it is the same hue that+ * appearance's terminal theme already uses for the cursor: the dark panes'+ * signal-yellow, the light panes' gold. The title bar reads as part of the+ * terminal it crowns, in the brand's two voices.+ */+export interface PaneBrand {+ /** The brand accent on this ground — the focused pane's call-sign plate. */+ accent: string;+ /** Ink ON the filled accent plate (black on yellow, white on gold). */+ onAccent: string;+ /** Translucent accent for hairlines, tints, and hover grounds. */+ accentSoft: string;+ /** A whisper of accent — the wash across the focused title bar. */+ accentWash: string;+ /** Primary ink — the resting call-sign, the headline under the pointer. */+ ink: string;+ /** Secondary ink — the recap headline at rest. */+ inkMuted: string;+ /** Tertiary ink — the CLI label and the seat chip. */+ inkFaint: string;+ /** Quiet chip ground behind the resting call-sign and the seat chip. */+ chip: string;+}++export const PANE_BRAND: Record<TerminalAppearance, PaneBrand> = {+ light: {+ accent: "#a86b00",+ onAccent: "#ffffff",+ accentSoft: "rgba(168,107,0,0.18)",+ accentWash: "rgba(168,107,0,0.05)",+ ink: "#2b2b33",+ inkMuted: "#54545d",+ inkFaint: "#77777f",+ chip: "rgba(0,0,0,0.055)",+ },+ dark: {+ accent: "#ffd60a",+ onAccent: "#0a0a0a",+ accentSoft: "rgba(255,214,10,0.18)",+ accentWash: "rgba(255,214,10,0.05)",+ ink: "#f2f2f5",+ inkMuted: "#a8a8b4",+ inkFaint: "#8a8a95",+ chip: "rgba(255,255,255,0.07)",+ },+};+export const PANE_CHROME: Record<TerminalAppearance, PaneChrome> = {light: {shell: "rgba(252, 251, 248, 0.68)",