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(office): name coding figures by what their terminal works on
rubenluetke10-beeped6a0cb448ae
diff --git a/jarvis/ui/web/frontend/src/components/society/office/OfficeAgents.tsx b/jarvis/ui/web/frontend/src/components/society/office/OfficeAgents.tsxindex 51917f6aed..1a71bda912 100644--- a/jarvis/ui/web/frontend/src/components/society/office/OfficeAgents.tsx+++ b/jarvis/ui/web/frontend/src/components/society/office/OfficeAgents.tsx@@ -34,6 +34,7 @@ import type { ChatLine } from "./deskChat";import type { DeskChat } from "./useDeskChats";import { officeTalkChat, useOfficeTalk } from "./officeTalk";import { deliverySpot, ERRAND_SPEED, useErrandFeed, useGigiErrands } from "./gigiErrands";+import { isPaneAgentId } from "./codingFloor";/** The agent's symbol walks behind it as a little pet, about a fifth of its height. */export const PET_SIZE_M = 0.26;@@ -96,9 +97,9 @@ function Nameplate({ agent, activity, selected, onSelect, height = OFFICE_FIGUREonClick={(event) => { event.stopPropagation(); onSelect(agent.agentId); }}aria-label={t("society.office.open_agent").replace("{0}", agent.name)}><span className="office-plate-badge" style={{ background: agent.palette.primary }} aria-hidden>- {agent.tier === "lead" ? "★" : agent.name.slice(0, 1).toUpperCase()}+ {agent.tier === "lead" ? "★" : (isPaneAgentId(agent.agentId) ? agent.provider : agent.name).slice(0, 1).toUpperCase()}</span>- <span className="office-plate-name">{agent.name}</span>+ <span className="office-plate-name" title={agent.name}>{agent.name}</span><span className="office-plate-state" title={t(`society.office.state_${agent.state}`)}><i aria-hidden />{detail ? <em>{detail}</em> : null}</span>diff --git a/jarvis/ui/web/frontend/src/components/society/office/codingFloor.test.ts b/jarvis/ui/web/frontend/src/components/society/office/codingFloor.test.tsindex e5ec656126..aa93057804 100644--- a/jarvis/ui/web/frontend/src/components/society/office/codingFloor.test.ts+++ b/jarvis/ui/web/frontend/src/components/society/office/codingFloor.test.ts@@ -10,7 +10,7 @@ import type { WorkspacePaneRow } from "@/lib/agenticIdeApi";import { resetWorkspacePanesPoll, useWorkspacePanesStore } from "@/store/workspacePanes";import {- isPaneAgentId, paneAgentId, paneFigure, paneLabel, paneOccupants, paneRunState, useCodingFloorOccupants,+ isPaneAgentId, paneAgentId, paneFigure, paneLabel, paneOccupants, panePlateName, paneRunState, useCodingFloorOccupants,} from "./codingFloor";import { allDesks, buildOfficeLayout } from "./officeLayout";import { toyLookFor } from "./toyFigureModel";@@ -68,11 +68,13 @@ describe("coding floor roster", () => {.toEqual(["Personal Jarvis/T3", "Personal Jarvis/T9", "Personal Jarvis/T10", "Website/T1"]);});- it("labels the plate with the CLI and call-sign, and keeps the recap as the title", () => {+ it("labels the plate with the pane's topic, and keeps the CLI and call-sign as the title", () => {const [occupant] = paneOccupants([pane("T2", "w1", { display_name: "Gemini CLI", agent: "gemini" })]);- expect(occupant.agent.name).toBe("Gemini · T2");- expect(occupant.agent.title).toBe("Refactor the router");+ expect(occupant.agent.name).toBe("Refactor the router");+ expect(occupant.agent.title).toBe("Gemini · T2");expect(paneLabel({ display_name: "", agent: "codex", name: "", key: "T4" })).toBe("Codex · T4");+ expect(panePlateName(pane("T3", "w1", { recap: "", last_prompt: "Fix the login test" }))).toBe("Fix the login test");+ expect(panePlateName(pane("T3", "w1", { recap: "", last_prompt: "" }))).toBe("Claude · T3");expect(occupant.agent.providerLabel).toBe("Personal Jarvis");expect(occupant.agent.tier).toBe("specialist");expect(occupant.agent.chatSessionId).toBeNull();diff --git a/jarvis/ui/web/frontend/src/components/society/office/codingFloor.ts b/jarvis/ui/web/frontend/src/components/society/office/codingFloor.tsindex 791ef3a563..43b0055e8b 100644--- a/jarvis/ui/web/frontend/src/components/society/office/codingFloor.ts+++ b/jarvis/ui/web/frontend/src/components/society/office/codingFloor.ts@@ -18,6 +18,7 @@ import { useMemo, useRef } from "react";import type { WorkspacePaneRow } from "@/lib/agenticIdeApi";import { useWorkspacePanes, useWorkspacePanesStore } from "@/store/workspacePanes";import { dotKindFor, stateKeyFor, type AgentDotKind, type AgentStateKey } from "@/components/agentic/sidePanel/agentStatus";+import { sessionTitle } from "@/components/agentic/sessionTitle";import type { AgentRunState, SocietyAgent } from "../data";import { resolvePalette, type FigureRecipe } from "../figures/figureRecipe";@@ -76,11 +77,23 @@ export function shortAgentName(pane: Pick<WorkspacePaneRow, "display_name" | "agreturn agent ? agent.charAt(0).toUpperCase() + agent.slice(1) : "Agent";}-/** The name plate: the CLI and the pane's call-sign, "Claude · T2". */+/** The CLI and the pane's call-sign, "Claude · T2". */export function paneLabel(pane: Pick<WorkspacePaneRow, "display_name" | "agent" | "name" | "key">): string {return `${shortAgentName(pane)} · ${pane.name || pane.key}`;}+/**+ * The name plate: what the pane is working ON — the same title the IDE draws+ * in the pane's header — so a floor of figures reads as a list of jobs, not+ * "T1, T2, T3". A pane asked nothing yet has no topic and keeps its call-sign.+ */+export function panePlateName(+ pane: Pick<WorkspacePaneRow, "recap" | "last_prompt" | "display_name" | "agent" | "name" | "key">,+): string {+ const title = sessionTitle(pane);+ return title && title !== pane.display_name && title !== pane.name ? title : paneLabel(pane);+}+function workspaceLabel(pane: WorkspacePaneRow): string {const name = pane.workspace_name.trim();if (name) return name;@@ -107,8 +120,8 @@ function toAgent(pane: WorkspacePaneRow, department: string, dot: AgentDotKind):const palette = resolvePalette(figure);return {agentId: paneAgentId(pane),- name: paneLabel(pane),- title: pane.recap || pane.last_prompt || pane.display_name || pane.agent,+ name: panePlateName(pane),+ title: paneLabel(pane),description: pane.last_prompt,tier: "specialist",provider: pane.agent,diff --git a/jarvis/ui/web/frontend/src/components/society/office/office.css b/jarvis/ui/web/frontend/src/components/society/office/office.cssindex 6a87e20ecd..5493aaceb4 100644--- a/jarvis/ui/web/frontend/src/components/society/office/office.css+++ b/jarvis/ui/web/frontend/src/components/society/office/office.css@@ -1,55 +1,55 @@-/* HUD over the office canvas: theme tokens, so it follows light and dark mode. */-.office-stage { position:relative; width:100%; min-width:0; height:100%; min-height:0; overflow:hidden; background:#0b1024; }-.office-viewport { position:absolute; inset:0; touch-action:none; }-.office-viewport:focus-visible { outline:2px solid hsl(var(--ring)); outline-offset:-2px; }-.office-fallback { display:flex; align-items:center; justify-content:center; height:100%; padding:24px; font-size:13px; color:hsl(var(--muted-foreground)); background:hsl(var(--background)); }-.office-hud { position:absolute; z-index:30; }-.office-hud-left { left:14px; top:14px; display:flex; flex-direction:column; align-items:flex-start; gap:8px; max-width:min(320px, calc(100% - 28px)); }-/* A column to the left of the minimap (top-right, 204 px wide + 8 px gap). */-.office-hud-right { right:226px; top:14px; display:flex; flex-direction:column; align-items:flex-end; gap:6px; }-/* Narrow: under the minimap, wrapping within its width. */-@media (max-width:760px) { .office-hud-right { right:14px; top:256px; flex-direction:row; flex-wrap:wrap; justify-content:flex-end; max-width:204px; } }-/* No minimap (short or very narrow window): back to a wrapping row in the corner. */-@media (max-height:520px), (max-width:600px) { .office-hud-right { right:14px; top:14px; flex-direction:row; flex-wrap:wrap; justify-content:flex-end; max-width:max(180px, calc(100% - 370px)); } }-.office-card { border:1px solid hsl(var(--border)); border-radius:12px; background:hsl(var(--popover) / .92); color:hsl(var(--popover-foreground)); box-shadow:0 4px 18px rgb(0 0 0 / .25); backdrop-filter:blur(6px); }-.office-title { display:flex; flex-direction:column; gap:2px; padding:8px 12px; font-size:14px; }-.office-title span { font-size:11px; color:hsl(var(--muted-foreground)); }-.office-counts { display:flex; gap:14px; padding:7px 12px; font-size:12px; font-weight:600; }-.office-counts span { display:inline-flex; align-items:center; gap:6px; }-.office-counts i { width:8px; height:8px; border-radius:50%; background:hsl(var(--muted-foreground)); }-.office-counts [data-tone="working"] i { background:hsl(var(--success)); }-.office-counts [data-tone="waiting"] i { background:hsl(var(--warning)); }-.office-note { margin:0; padding:6px 10px; font-size:11px; color:hsl(var(--muted-foreground)); }-.office-button { border:1px solid hsl(var(--border)); border-radius:10px; padding:6px 11px; background:hsl(var(--popover) / .92); color:hsl(var(--popover-foreground)); font-size:12px; white-space:nowrap; cursor:pointer; backdrop-filter:blur(6px); }-.office-button:hover { background:hsl(var(--secondary)); }-.office-button:focus-visible { outline:2px solid hsl(var(--ring)); outline-offset:2px; }-.office-help { left:50%; bottom:12px; transform:translateX(-50%); margin:0; padding:5px 12px; border-radius:999px; font-size:11px; white-space:nowrap; max-width:calc(100% - 28px); overflow:hidden; text-overflow:ellipsis; background:hsl(var(--popover) / .85); color:hsl(var(--muted-foreground)); border:1px solid hsl(var(--border)); pointer-events:none; }--/* In-world name pills: part of the diorama, so they keep one dark look in both modes. */-.office-plate { transform-origin:center bottom; display:inline-flex; align-items:center; gap:5px; padding:2px 8px 2px 2px; border:0; border-radius:999px; background:rgb(24 26 32 / .84); color:#f8fafc; cursor:pointer; font-family:inherit; white-space:nowrap; user-select:none; box-shadow:0 2px 8px rgb(0 0 0 / .35); }-.office-plate:hover { background:rgb(36 39 48 / .95); }-.office-plate-name { max-width:11em; overflow:hidden; text-overflow:ellipsis; font-size:12px; font-weight:700; }-.office-plate-badge { display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; font-size:10px; font-weight:800; color:#fff; clip-path:polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }-.office-plate-state { display:inline-flex; align-items:center; gap:4px; font-size:10px; font-weight:600; color:#cbd5e1; }-.office-plate-state em { font-style:normal; }-.office-plate-state i { width:7px; height:7px; border-radius:50%; background:#94a3b8; }-.office-plate[data-state="working"] .office-plate-state i { background:#4ade80; box-shadow:0 0 6px #4ade80; }-.office-plate[data-state="waiting"] .office-plate-state i { background:#fbbf24; }-.office-plate:focus-visible { outline:2px solid #93c5fd; outline-offset:2px; }-/* Checkpoint label pills: same dark in-world pill as .office-plate, with a gold hexagon badge. */-.office-checkpoint { transform-origin:center center; display:inline-flex; align-items:center; gap:6px; padding:3px 11px 3px 3px; border:1px solid rgb(245 184 61 / .55); border-radius:999px; background:rgb(24 26 32 / .86); color:#fff7ec; cursor:pointer; font-family:inherit; font-size:12px; font-weight:700; white-space:nowrap; user-select:none; box-shadow:0 2px 8px rgb(0 0 0 / .35); transition:background .15s, border-color .15s, box-shadow .15s; }-.office-checkpoint:hover { background:rgb(36 39 48 / .95); border-color:#f5b83d; }-.office-checkpoint-badge { display:inline-flex; align-items:center; justify-content:center; flex:none; width:20px; height:20px; background:#f5b83d; color:#2a1d0a; clip-path:polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }-.office-checkpoint-badge svg { width:12px; height:12px; }-.office-checkpoint-label { max-width:12em; overflow:hidden; text-overflow:ellipsis; }-.office-checkpoint-text { display:flex; flex-direction:column; align-items:flex-start; min-width:0; line-height:1.2; }-/* The action behind the place, shown while the character stands in (or the panel is open). */-.office-checkpoint-hint { max-width:14em; overflow:hidden; text-overflow:ellipsis; font-size:10px; font-weight:600; color:#f5d493; }-.office-checkpoint[data-active="true"] { background:rgb(58 42 12 / .94); border-color:#f5b83d; color:#fff; box-shadow:0 0 0 2px rgb(245 184 61 / .35), 0 2px 14px rgb(245 184 61 / .5); }-.office-checkpoint:focus-visible { outline:2px solid #93c5fd; outline-offset:2px; }-@media (prefers-reduced-motion:reduce) { .office-checkpoint { transition:none; } }-@media (max-width:900px) { .office-help { white-space:normal; text-align:center; border-radius:12px; } }-@media (max-width:600px) { .office-help { display:none; } .office-counts { gap:8px; } }-/* The executive chair's prompt: a wider pill with the E key and a short hint. */-.office-seat-prompt { padding:4px 12px 4px 4px; gap:7px; font-size:12px; font-weight:600; cursor:default; }-.office-seat-prompt kbd { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:6px; background:#f5b83d; color:#1f1300; font-family:inherit; font-size:11px; font-weight:800; }+/* HUD over the office canvas: theme tokens, so it follows light and dark mode. */+.office-stage { position:relative; width:100%; min-width:0; height:100%; min-height:0; overflow:hidden; background:#0b1024; }+.office-viewport { position:absolute; inset:0; touch-action:none; }+.office-viewport:focus-visible { outline:2px solid hsl(var(--ring)); outline-offset:-2px; }+.office-fallback { display:flex; align-items:center; justify-content:center; height:100%; padding:24px; font-size:13px; color:hsl(var(--muted-foreground)); background:hsl(var(--background)); }+.office-hud { position:absolute; z-index:30; }+.office-hud-left { left:14px; top:14px; display:flex; flex-direction:column; align-items:flex-start; gap:8px; max-width:min(320px, calc(100% - 28px)); }+/* A column to the left of the minimap (top-right, 204 px wide + 8 px gap). */+.office-hud-right { right:226px; top:14px; display:flex; flex-direction:column; align-items:flex-end; gap:6px; }+/* Narrow: under the minimap, wrapping within its width. */+@media (max-width:760px) { .office-hud-right { right:14px; top:256px; flex-direction:row; flex-wrap:wrap; justify-content:flex-end; max-width:204px; } }+/* No minimap (short or very narrow window): back to a wrapping row in the corner. */+@media (max-height:520px), (max-width:600px) { .office-hud-right { right:14px; top:14px; flex-direction:row; flex-wrap:wrap; justify-content:flex-end; max-width:max(180px, calc(100% - 370px)); } }+.office-card { border:1px solid hsl(var(--border)); border-radius:12px; background:hsl(var(--popover) / .92); color:hsl(var(--popover-foreground)); box-shadow:0 4px 18px rgb(0 0 0 / .25); backdrop-filter:blur(6px); }+.office-title { display:flex; flex-direction:column; gap:2px; padding:8px 12px; font-size:14px; }+.office-title span { font-size:11px; color:hsl(var(--muted-foreground)); }+.office-counts { display:flex; gap:14px; padding:7px 12px; font-size:12px; font-weight:600; }+.office-counts span { display:inline-flex; align-items:center; gap:6px; }+.office-counts i { width:8px; height:8px; border-radius:50%; background:hsl(var(--muted-foreground)); }+.office-counts [data-tone="working"] i { background:hsl(var(--success)); }+.office-counts [data-tone="waiting"] i { background:hsl(var(--warning)); }+.office-note { margin:0; padding:6px 10px; font-size:11px; color:hsl(var(--muted-foreground)); }+.office-button { border:1px solid hsl(var(--border)); border-radius:10px; padding:6px 11px; background:hsl(var(--popover) / .92); color:hsl(var(--popover-foreground)); font-size:12px; white-space:nowrap; cursor:pointer; backdrop-filter:blur(6px); }+.office-button:hover { background:hsl(var(--secondary)); }+.office-button:focus-visible { outline:2px solid hsl(var(--ring)); outline-offset:2px; }+.office-help { left:50%; bottom:12px; transform:translateX(-50%); margin:0; padding:5px 12px; border-radius:999px; font-size:11px; white-space:nowrap; max-width:calc(100% - 28px); overflow:hidden; text-overflow:ellipsis; background:hsl(var(--popover) / .85); color:hsl(var(--muted-foreground)); border:1px solid hsl(var(--border)); pointer-events:none; }++/* In-world name pills: part of the diorama, so they keep one dark look in both modes. */+.office-plate { transform-origin:center bottom; display:inline-flex; align-items:center; gap:5px; padding:2px 8px 2px 2px; border:0; border-radius:999px; background:rgb(24 26 32 / .84); color:#f8fafc; cursor:pointer; font-family:inherit; white-space:nowrap; user-select:none; box-shadow:0 2px 8px rgb(0 0 0 / .35); }+.office-plate:hover { background:rgb(36 39 48 / .95); }+.office-plate-name { max-width:16em; overflow:hidden; text-overflow:ellipsis; font-size:12px; font-weight:700; }+.office-plate-badge { display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; font-size:10px; font-weight:800; color:#fff; clip-path:polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }+.office-plate-state { display:inline-flex; align-items:center; gap:4px; font-size:10px; font-weight:600; color:#cbd5e1; }+.office-plate-state em { font-style:normal; }+.office-plate-state i { width:7px; height:7px; border-radius:50%; background:#94a3b8; }+.office-plate[data-state="working"] .office-plate-state i { background:#4ade80; box-shadow:0 0 6px #4ade80; }+.office-plate[data-state="waiting"] .office-plate-state i { background:#fbbf24; }+.office-plate:focus-visible { outline:2px solid #93c5fd; outline-offset:2px; }+/* Checkpoint label pills: same dark in-world pill as .office-plate, with a gold hexagon badge. */+.office-checkpoint { transform-origin:center center; display:inline-flex; align-items:center; gap:6px; padding:3px 11px 3px 3px; border:1px solid rgb(245 184 61 / .55); border-radius:999px; background:rgb(24 26 32 / .86); color:#fff7ec; cursor:pointer; font-family:inherit; font-size:12px; font-weight:700; white-space:nowrap; user-select:none; box-shadow:0 2px 8px rgb(0 0 0 / .35); transition:background .15s, border-color .15s, box-shadow .15s; }+.office-checkpoint:hover { background:rgb(36 39 48 / .95); border-color:#f5b83d; }+.office-checkpoint-badge { display:inline-flex; align-items:center; justify-content:center; flex:none; width:20px; height:20px; background:#f5b83d; color:#2a1d0a; clip-path:polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }+.office-checkpoint-badge svg { width:12px; height:12px; }+.office-checkpoint-label { max-width:12em; overflow:hidden; text-overflow:ellipsis; }+.office-checkpoint-text { display:flex; flex-direction:column; align-items:flex-start; min-width:0; line-height:1.2; }+/* The action behind the place, shown while the character stands in (or the panel is open). */+.office-checkpoint-hint { max-width:14em; overflow:hidden; text-overflow:ellipsis; font-size:10px; font-weight:600; color:#f5d493; }+.office-checkpoint[data-active="true"] { background:rgb(58 42 12 / .94); border-color:#f5b83d; color:#fff; box-shadow:0 0 0 2px rgb(245 184 61 / .35), 0 2px 14px rgb(245 184 61 / .5); }+.office-checkpoint:focus-visible { outline:2px solid #93c5fd; outline-offset:2px; }+@media (prefers-reduced-motion:reduce) { .office-checkpoint { transition:none; } }+@media (max-width:900px) { .office-help { white-space:normal; text-align:center; border-radius:12px; } }+@media (max-width:600px) { .office-help { display:none; } .office-counts { gap:8px; } }+/* The executive chair's prompt: a wider pill with the E key and a short hint. */+.office-seat-prompt { padding:4px 12px 4px 4px; gap:7px; font-size:12px; font-weight:600; cursor:default; }+.office-seat-prompt kbd { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:6px; background:#f5b83d; color:#1f1300; font-family:inherit; font-size:11px; font-weight:800; }