Skip to content

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.

feat(office): show the coding CLI's logo on pane nameplates

rubenluetke10-beep11197e1b01bf
diff --git a/jarvis/ui/web/frontend/src/components/society/office/OfficeAgents.tsx b/jarvis/ui/web/frontend/src/components/society/office/OfficeAgents.tsx
index 10c5def959..a731a7b9d8 100644
--- a/jarvis/ui/web/frontend/src/components/society/office/OfficeAgents.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/office/OfficeAgents.tsx
@@ -36,6 +36,7 @@ import { officeTalkChat, useOfficeTalk } from "./officeTalk";
import { deliverySpot, ERRAND_SPEED, useErrandFeed, useGigiErrands } from "./gigiErrands";
import { isPaneAgentId, plateTitle } from "./codingFloor";
import { promptOpening } from "@/components/agentic/sessionTitle";
+import { agentLogoAsset } from "@/components/agentic/AgentMark";
/** The agent's symbol walks behind it as a little pet, about a fifth of its height. */
export const PET_SIZE_M = 0.26;
@@ -93,6 +94,7 @@ function Nameplate({ agent, activity, selected, onSelect, height = OFFICE_FIGURE
const [open, setOpen] = useState(false);
const detail = agent.state !== "idle" ? t(`society.office.state_${agent.state}`) : activity ? t(`society.office.activity_${activity}`) : "";
const pane = isPaneAgentId(agent.agentId);
+ const logo = pane ? agentLogoAsset(agent.provider) : null;
const state = (
<span className="office-plate-state" title={t(`society.office.state_${agent.state}`)}>
<i aria-hidden />{detail ? <em>{detail}</em> : null}
@@ -108,9 +110,11 @@ function Nameplate({ agent, activity, selected, onSelect, height = OFFICE_FIGURE
onPointerEnter={() => setOpen(true)} onPointerLeave={() => setOpen(false)}
onFocus={() => setOpen(true)} onBlur={() => setOpen(false)}
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" ? "★" : (pane ? agent.provider : agent.name).slice(0, 1).toUpperCase()}
- </span>
+ {pane && logo ? <PaneLogo url={logo.url} ground={logo.ground} /> : (
+ <span className="office-plate-badge" style={{ background: agent.palette.primary }} aria-hidden>
+ {agent.tier === "lead" ? "★" : (pane ? agent.provider : agent.name).slice(0, 1).toUpperCase()}
+ </span>
+ )}
{pane ? <PanePlateText agent={agent} open={open} state={state} /> : (
<>
<span className="office-plate-name" title={agent.name}>{agent.name}</span>
@@ -123,6 +127,22 @@ function Nameplate({ agent, activity, selected, onSelect, height = OFFICE_FIGURE
);
}
+/**
+ * The coding CLI's own mark in front of a pane's plate, instead of a lettered
+ * hexagon: a floor of Claude panes read "C", "C", "C", which named nothing.
+ * Drawn here rather than with `AgentMark`, whose `ink` marks follow the app
+ * theme's text colour — the plate is dark in both themes, so a light-mode ink
+ * mark would vanish on it. An `ink` mark is masked in the plate's own white;
+ * a full-colour lockup keeps its colours on a dark tile it can sit on.
+ */
+function PaneLogo({ url, ground }: { url: string; ground: "ink" | "dark" | "any" }) {
+ if (ground === "ink") {
+ const mask = { WebkitMaskImage: `url("${url}")`, maskImage: `url("${url}")` };
+ return <span className="office-plate-logo" data-ground="ink" aria-hidden><i style={mask} /></span>;
+ }
+ return <span className="office-plate-logo" data-ground={ground} aria-hidden><img src={url} alt="" draggable={false} /></span>;
+}
+
/**
* A coding pane's plate: its title on two lines (subject, then result and run
* state), so the words that tell four "Office …" panes apart are never the ones
diff --git a/jarvis/ui/web/frontend/src/components/society/office/office.css b/jarvis/ui/web/frontend/src/components/society/office/office.css
index 9930bc8950..5ce0e0ce7f 100644
--- a/jarvis/ui/web/frontend/src/components/society/office/office.css
+++ b/jarvis/ui/web/frontend/src/components/society/office/office.css
@@ -39,6 +39,11 @@
/* A coding pane's plate: subject on top, result + run state below; hovered, the whole title and its last ask. */
.office-plate[data-pane] { align-items:flex-start; gap:6px; padding:4px 10px 4px 4px; border-radius:12px; text-align:left; }
.office-plate[data-pane] .office-plate-badge { flex:none; margin-top:1px; }
+/* The coding CLI's mark: ink marks masked in the plate's white, colour lockups on a dark tile. */
+.office-plate-logo { display:inline-flex; flex:none; align-items:center; justify-content:center; width:20px; height:20px; margin-top:1px; border-radius:6px; background:rgb(255 255 255 / .08); }
+.office-plate-logo[data-ground="dark"] { background:#111318; }
+.office-plate-logo i { display:block; width:14px; height:14px; background:#f8fafc; -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat; -webkit-mask-position:center; mask-position:center; -webkit-mask-size:contain; mask-size:contain; }
+.office-plate-logo img { display:block; width:14px; height:14px; object-fit:contain; }
.office-plate-text { display:flex; flex-direction:column; align-items:flex-start; gap:1px; min-width:0; line-height:1.25; }
.office-plate[data-pane] .office-plate-name { max-width:13em; }
.office-plate-line { display:inline-flex; align-items:center; gap:6px; max-width:17em; }