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
fix(ui): sit original Gigi on a white rounded tile
rubenluetke10-beep9bb59424aa28
diff --git a/assets/icons/jarvis-1024.png b/assets/icons/jarvis-1024.pngnew file mode 100644index 0000000000..f566aafbe5Binary files /dev/null and b/assets/icons/jarvis-1024.png differdiff --git a/assets/icons/jarvis-dev.ico b/assets/icons/jarvis-dev.icoindex b48877b53e..e8325eccb3 100644Binary files a/assets/icons/jarvis-dev.ico and b/assets/icons/jarvis-dev.ico differdiff --git a/assets/icons/jarvis-dev.png b/assets/icons/jarvis-dev.pngindex 56ab23dd03..19320fcfae 100644Binary files a/assets/icons/jarvis-dev.png and b/assets/icons/jarvis-dev.png differdiff --git a/assets/icons/jarvis-gigi-256.png b/assets/icons/jarvis-gigi-256.pngindex e315a19075..be363506f1 100644Binary files a/assets/icons/jarvis-gigi-256.png and b/assets/icons/jarvis-gigi-256.png differdiff --git a/assets/icons/jarvis.icns b/assets/icons/jarvis.icnsindex 21b67559af..b280060520 100644Binary files a/assets/icons/jarvis.icns and b/assets/icons/jarvis.icns differdiff --git a/assets/icons/jarvis.ico b/assets/icons/jarvis.icoindex 83e1a9c47b..ee8cff5396 100644Binary files a/assets/icons/jarvis.ico and b/assets/icons/jarvis.ico differdiff --git a/jarvis/assets/icons/jarvis-dev.ico b/jarvis/assets/icons/jarvis-dev.icoindex b48877b53e..e8325eccb3 100644Binary files a/jarvis/assets/icons/jarvis-dev.ico and b/jarvis/assets/icons/jarvis-dev.ico differdiff --git a/jarvis/assets/icons/jarvis-dev.png b/jarvis/assets/icons/jarvis-dev.pngindex 56ab23dd03..19320fcfae 100644Binary files a/jarvis/assets/icons/jarvis-dev.png and b/jarvis/assets/icons/jarvis-dev.png differdiff --git a/jarvis/assets/icons/jarvis.ico b/jarvis/assets/icons/jarvis.icoindex 83e1a9c47b..ee8cff5396 100644Binary files a/jarvis/assets/icons/jarvis.ico and b/jarvis/assets/icons/jarvis.ico differdiff --git a/jarvis/assets/icons/jarvis.png b/jarvis/assets/icons/jarvis.pngindex e315a19075..be363506f1 100644Binary files a/jarvis/assets/icons/jarvis.png and b/jarvis/assets/icons/jarvis.png differdiff --git a/jarvis/ui/web/frontend/public/jarvis-gigi-256.png b/jarvis/ui/web/frontend/public/jarvis-gigi-256.pngindex e315a19075..be363506f1 100644Binary files a/jarvis/ui/web/frontend/public/jarvis-gigi-256.png and b/jarvis/ui/web/frontend/public/jarvis-gigi-256.png differdiff --git a/jarvis/ui/web/frontend/public/jarvis-gigi.ico b/jarvis/ui/web/frontend/public/jarvis-gigi.icoindex 83e1a9c47b..ee8cff5396 100644Binary files a/jarvis/ui/web/frontend/public/jarvis-gigi.ico and b/jarvis/ui/web/frontend/public/jarvis-gigi.ico differdiff --git a/jarvis/ui/web/frontend/public/jarvis-mark-256.png b/jarvis/ui/web/frontend/public/jarvis-mark-256.pngindex d20d088947..be363506f1 100644Binary files a/jarvis/ui/web/frontend/public/jarvis-mark-256.png and b/jarvis/ui/web/frontend/public/jarvis-mark-256.png differdiff --git a/jarvis/ui/web/frontend/public/jarvis.ico b/jarvis/ui/web/frontend/public/jarvis.icoindex a185e4e3ef..ee8cff5396 100644Binary files a/jarvis/ui/web/frontend/public/jarvis.ico and b/jarvis/ui/web/frontend/public/jarvis.ico differdiff --git a/jarvis/ui/web/frontend/src/components/GigiMark.tsx b/jarvis/ui/web/frontend/src/components/GigiMark.tsxnew file mode 100644index 0000000000..80d42c8ec5--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/GigiMark.tsx@@ -0,0 +1,48 @@+import { useState } from "react";++import { cn } from "@/lib/utils";++const LOGO_RETRY_MAX = 5;+const LOGO_RETRY_BASE_MS = 1500;++/**+ * The Gigi app mark: original black-and-white ghost on a white rounded tile.+ *+ * Same treatment as the desktop app icon — original PNG, uninverted, sitting+ * on a white squircle. Do not swap this for the live SVG mascot in chrome.+ */+export function GigiMark({+ size,+ className,+ alt = "",+}: {+ size: number;+ className?: string;+ alt?: string;+}) {+ const [retry, setRetry] = useState(0);+ return (+ <span+ className={cn(+ "inline-flex shrink-0 items-center justify-center overflow-hidden bg-white",+ "shadow-[0_1px_2px_rgba(0,0,0,0.22)]",+ className,+ )}+ style={{ width: size, height: size, borderRadius: "22%" }}+ >+ <img+ src={retry === 0 ? "/jarvis-logo.png" : `/jarvis-logo.png?retry=${retry}`}+ width={Math.round(size * 0.78)}+ height={Math.round(size * 0.78)}+ alt={alt}+ className="h-[78%] w-[78%] select-none"+ draggable={false}+ onError={() => {+ if (retry < LOGO_RETRY_MAX) {+ window.setTimeout(() => setRetry((n) => n + 1), (retry + 1) * LOGO_RETRY_BASE_MS);+ }+ }}+ />+ </span>+ );+}diff --git a/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsx b/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsxindex d9c88bdb70..72ca0f1122 100644--- a/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsx+++ b/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsx@@ -30,6 +30,7 @@ import { usePasteRescue } from "@/components/agentchat/usePasteRescue";import { useComposerTypeahead } from "@/components/agentchat/useComposerTypeahead";import { ComposerTypeahead } from "@/components/agentchat/ComposerTypeahead";import { ChatAttachmentStrip } from "@/components/agentchat/ChatAttachmentStrip";+import { GigiMark } from "@/components/GigiMark";import { useAutoGrowTextarea } from "@/hooks/useAutoGrowTextarea";import { fill, useT } from "@/i18n";import { cn } from "@/lib/utils";@@ -506,14 +507,7 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {className="inline-flex h-7 max-w-[180px] shrink-0 items-center gap-1.5 rounded-lg bg-secondary/60 px-2 text-xs font-medium text-foreground">{surface === "jarvis" ? (- <img- src="/jarvis-logo.png"- width={14}- height={14}- alt=""- aria-hidden- className="jarvis-logo-mark h-3.5 w-3.5 shrink-0"- />+ <GigiMark size={18} />) : (<FolderCode className="h-3.5 w-3.5 shrink-0 text-muted-foreground" aria-hidden />)}diff --git a/jarvis/ui/web/frontend/src/components/home/Greeting.tsx b/jarvis/ui/web/frontend/src/components/home/Greeting.tsxindex eab26bf487..01361fe999 100644--- a/jarvis/ui/web/frontend/src/components/home/Greeting.tsx+++ b/jarvis/ui/web/frontend/src/components/home/Greeting.tsx@@ -1,7 +1,7 @@import { useUserName } from "@/hooks/useUserName";import { fill, useT } from "@/i18n";import { cn } from "@/lib/utils";-import { MascotGigi } from "@/components/MascotGigi";+import { GigiMark } from "@/components/GigiMark";/*** "Good morning, Ruben" — the front page's opening line, on both stages.@@ -33,7 +33,7 @@ export function Greeting({data-testid="home-greeting"><h1 className="flex items-center gap-3 font-display text-3xl tracking-tight text-foreground [text-wrap:balance]">- <MascotGigi size={32} enableComments={false} reactToVoice={false} className="pointer-events-none shrink-0" />+ <GigiMark size={36} /><span>{text}</span></h1>{subtitle && !muted && (diff --git a/jarvis/ui/web/frontend/src/components/home/HomeHeader.tsx b/jarvis/ui/web/frontend/src/components/home/HomeHeader.tsxindex 88b48e10b7..aad5592a07 100644--- a/jarvis/ui/web/frontend/src/components/home/HomeHeader.tsx+++ b/jarvis/ui/web/frontend/src/components/home/HomeHeader.tsx@@ -4,12 +4,12 @@ import { useVoiceReadiness } from "@/hooks/useVoiceReadiness";import { useVoiceMode } from "@/hooks/useVoiceMode";import { TopBarActions } from "@/components/layout/TopBar";import { CodingModeBadge } from "@/components/layout/CodingModeBadge";-import { MascotGigi } from "@/components/MascotGigi";+import { GigiMark } from "@/components/GigiMark";import { useT } from "@/i18n";import { cn } from "@/lib/utils";/**- * The front page's header row: who is talking (mascot, name, voice state),+ * The front page's header row: who is talking (Gigi mark, name, voice state),* what will answer (engine + model — click to change), and the app chrome* actions (coding mode, theme, own window, update, restart).*@@ -44,7 +44,7 @@ export function HomeHeader() {className="flex h-12 shrink-0 items-center gap-3 border-b border-border px-4"><span className="flex h-7 w-7 shrink-0 items-center justify-center" aria-hidden>- <MascotGigi size={28} reactToVoice enableComments={false} />+ <GigiMark size={28} /></span><div className="flex min-w-0 items-baseline gap-2"><span className="font-display text-sm font-semibold tracking-tight">{assistantName}</span>diff --git a/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx b/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsxindex 66626d9a0f..8a1e63f9a8 100644--- a/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx@@ -233,12 +233,33 @@ describe("Sidebar header avatar", () => {overlayMock.style = "jarvis_bar";});- test("renders live Gigi in the header as a black-and-white mark", () => {+ test("renders the original Gigi logo on a white tile", () => {const { container } = renderSidebar();const avatar = container.querySelector('[data-testid="sidebar-style-avatar"]');expect(avatar).not.toBeNull();- expect(avatar?.getAttribute("data-variant")).toBe("mascot");- expect(avatar?.querySelector("svg")).not.toBeNull();+ expect(avatar?.getAttribute("data-variant")).toBe("logo");+ const logo = avatar?.querySelector("img") as HTMLImageElement;+ expect(logo.getAttribute("src")).toBe("/jarvis-logo.png");+ });++ test("retries a failed logo load with a cache-busted URL (self-healing)", () => {+ vi.useFakeTimers();+ try {+ const { container } = renderSidebar();+ const logo = container.querySelector(+ '[data-testid="sidebar-style-avatar"] img',+ ) as HTMLImageElement;+ expect(logo.getAttribute("src")).toBe("/jarvis-logo.png");++ act(() => {+ logo.dispatchEvent(new Event("error"));+ vi.advanceTimersByTime(2_000);+ });++ expect(logo.getAttribute("src")).toBe("/jarvis-logo.png?retry=1");+ } finally {+ vi.useRealTimers();+ }});});diff --git a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsxindex 5a6b67f472..e77a250ee6 100644--- a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx@@ -33,7 +33,7 @@ import { useAgentChatStore } from "@/store/agentChat";import { useIdeChatStore } from "@/store/ideChat";import { WorkspaceChats } from "@/components/agentic/WorkspaceChats";import { useAppInstance } from "@/hooks/useAppInstance";-import { MascotGigi } from "@/components/MascotGigi";+import { GigiMark } from "@/components/GigiMark";/** Where the Chat row remembers whether its history is folded out. */const CHATS_OPEN_KEY = "jarvis.sidebar.recent-chats-open";@@ -376,15 +376,11 @@ export function Sidebar({railed && "flex-col justify-center gap-1.5",)}>- {/* Gigi as a black-and-white mark — no disc behind it. */}<spandata-testid="sidebar-style-avatar"- data-variant="mascot"+ data-variant="logo"title={railed ? `${assistantName} — ${voiceLabel}` : undefined}- className={cn(- "relative flex shrink-0 items-center justify-center",- railed ? "h-9 w-9" : "h-11 w-11",- )}+ className={cn("relative shrink-0", railed ? "h-9 w-9" : "h-11 w-11")}>{railed && devTag && (<span@@ -395,12 +391,7 @@ export function Sidebar({{devTag}</span>)}- <MascotGigi- size={railed ? 34 : 42}- enableComments={false}- reactToVoice- className="pointer-events-none"- />+ <GigiMark size={railed ? 36 : 44} /></span>{!railed && (<div className="flex min-w-0 flex-1 flex-col">diff --git a/jarvis/ui/web/frontend/src/index.css b/jarvis/ui/web/frontend/src/index.cssindex 92f0f2a337..fe8bd1ef2f 100644--- a/jarvis/ui/web/frontend/src/index.css+++ b/jarvis/ui/web/frontend/src/index.css@@ -869,15 +869,6 @@ label,color: hsl(var(--user-bubble-foreground));}- /* The PNG ghost has a black plate. Multiply drops the white on paper;- screen drops the black on charcoal — no disc behind it. */- .jarvis-logo-mark {- mix-blend-mode: multiply;- }- .dark .jarvis-logo-mark {- mix-blend-mode: screen;- }-/* Selected nav row — a fill, one step toward the light, like a messengerchip. Not a hairline and not an inset accent bar. */.jarvis-nav-active {diff --git a/jarvis/ui/web/frontend/src/views/MissionDeckView.tsx b/jarvis/ui/web/frontend/src/views/MissionDeckView.tsxindex 1f5d04ae04..74c2aad527 100644--- a/jarvis/ui/web/frontend/src/views/MissionDeckView.tsx+++ b/jarvis/ui/web/frontend/src/views/MissionDeckView.tsx@@ -15,7 +15,7 @@ import { voiceInputLevelRef } from "@/lib/voiceInputLevel";import { DockRail } from "@/components/layout/DockRail";import { TopBarActions } from "@/components/layout/TopBar";import { CodingModeBadge } from "@/components/layout/CodingModeBadge";-import { MascotGigi } from "@/components/MascotGigi";+import { GigiMark } from "@/components/GigiMark";import { DeckOrb, type OrbReadouts } from "@/components/deck/DeckOrb";import type { ThinkingStep } from "@/lib/thinkingSteps";import { DeckStandby, ORB_TRAVEL } from "@/components/deck/DeckStandby";@@ -250,7 +250,7 @@ export function MissionDeckView({className="flex h-8 w-8 shrink-0 items-center justify-center"data-testid="deck-header-gigi">- <MascotGigi size={32} reactToVoice enableComments={false} />+ <GigiMark size={32} /></span><div className="flex items-center gap-3"><VoiceWaveformdiff --git a/scripts/make_gigi_app_icon.py b/scripts/make_gigi_app_icon.pynew file mode 100644index 0000000000..867f89b1d6--- /dev/null+++ b/scripts/make_gigi_app_icon.py@@ -0,0 +1,82 @@+"""Render the desktop app icon: original Gigi on a white rounded tile.++ python scripts/make_gigi_app_icon.py++Reads ``jarvis/ui/web/frontend/public/jarvis-logo.png`` (the original+black-and-white ghost, transparent around the body), composites it onto a+white squircle without recoloring, and writes PNG + ICO copies that every+surface shares: in-package icons, repo-root icons, and the web favicon.+"""++from __future__ import annotations++from pathlib import Path++from PIL import Image, ImageDraw++ROOT = Path(__file__).resolve().parent.parent+SOURCE = ROOT / "jarvis" / "ui" / "web" / "frontend" / "public" / "jarvis-logo.png"+MASTER = 1024+GHOST_RATIO = 0.78+CORNER = 0.22+WHITE = (255, 255, 255, 255)+ICO_SIZES = [(16, 16), (24, 24), (32, 32), (48, 48), (64, 64), (128, 128), (256, 256)]+++def render_tile(size: int) -> Image.Image:+ ghost = Image.open(SOURCE).convert("RGBA")+ ghost = ghost.resize(+ (max(1, int(size * GHOST_RATIO)), max(1, int(size * GHOST_RATIO))),+ Image.Resampling.LANCZOS,+ )+ tile = Image.new("RGBA", (size, size), (0, 0, 0, 0))+ draw = ImageDraw.Draw(tile)+ inset = 0+ draw.rounded_rectangle(+ (inset, inset, size - 1 - inset, size - 1 - inset),+ radius=int(size * CORNER),+ fill=WHITE,+ )+ x = (size - ghost.width) // 2+ y = (size - ghost.height) // 2+ tile.alpha_composite(ghost, (x, y))+ return tile+++def write_png(path: Path, image: Image.Image) -> None:+ path.parent.mkdir(parents=True, exist_ok=True)+ image.save(path, format="PNG")+++def write_ico(path: Path, master: Image.Image) -> None:+ path.parent.mkdir(parents=True, exist_ok=True)+ master.save(path, format="ICO", sizes=ICO_SIZES)+++def main() -> None:+ if not SOURCE.is_file():+ raise SystemExit(f"missing source logo: {SOURCE}")+ master = render_tile(MASTER)+ png256 = master.resize((256, 256), Image.Resampling.LANCZOS)+ write_png(ROOT / "assets" / "icons" / "jarvis-1024.png", master)+ targets_png = [+ ROOT / "jarvis" / "assets" / "icons" / "jarvis.png",+ ROOT / "assets" / "icons" / "jarvis-gigi-256.png",+ ROOT / "jarvis" / "ui" / "web" / "frontend" / "public" / "jarvis-gigi-256.png",+ ROOT / "jarvis" / "ui" / "web" / "frontend" / "public" / "jarvis-mark-256.png",+ ]+ targets_ico = [+ ROOT / "jarvis" / "assets" / "icons" / "jarvis.ico",+ ROOT / "assets" / "icons" / "jarvis.ico",+ ROOT / "jarvis" / "ui" / "web" / "frontend" / "public" / "jarvis.ico",+ ROOT / "jarvis" / "ui" / "web" / "frontend" / "public" / "jarvis-gigi.ico",+ ]+ for path in targets_png:+ write_png(path, png256)+ for path in targets_ico:+ write_ico(path, master)+ print(f"wrote {len(targets_png)} png and {len(targets_ico)} ico from {SOURCE.name}")+++if __name__ == "__main__":+ main()diff --git a/tests/unit/ui/test_icon_identity.py b/tests/unit/ui/test_icon_identity.pyindex 26a9bc61d4..2cac2e9aee 100644--- a/tests/unit/ui/test_icon_identity.py+++ b/tests/unit/ui/test_icon_identity.py@@ -118,6 +118,36 @@ def test_bundled_icon_is_byte_identical_to_repo_root_copy() -> None:)+def test_bundled_ico_carries_taskbar_sizes() -> None:+ """A 16-px-only ICO looks like a blur in the taskbar and Start menu."""+ from PIL import Image++ from jarvis.assets import bundled_app_icon++ ico = bundled_app_icon()+ assert ico is not None and ico.is_file()+ with Image.open(ico) as image:+ sizes = {tuple(size) for size in image.info.get("sizes", [])}+ assert (16, 16) in sizes+ assert (256, 256) in sizes+++def test_bundled_app_icon_png_is_white_rounded_tile() -> None:+ """Desktop PNG is original Gigi on a white squircle, corners transparent."""+ from PIL import Image++ from jarvis.assets import bundled_app_icon_png++ png = bundled_app_icon_png()+ assert png is not None and png.is_file()+ image = Image.open(png).convert("RGBA")+ width, height = image.size+ assert width == height+ assert image.getpixel((0, 0))[3] < 10+ tile = image.getpixel((width // 2, 2))+ assert tile[0] > 240 and tile[1] > 240 and tile[2] > 240 and tile[3] > 240++def test_bundled_app_icon_png_exists_for_linux() -> None:"""Linux's .desktop Icon= needs a PNG (most desktops can't render .ico).