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: remove Gigi mascot layer from wallpapers
rubenluetke10-beepb013508506ff
diff --git a/jarvis/ui/web/frontend/src/App.detached.test.tsx b/jarvis/ui/web/frontend/src/App.detached.test.tsxindex ff4e2c8f1f..5418df8663 100644--- a/jarvis/ui/web/frontend/src/App.detached.test.tsx+++ b/jarvis/ui/web/frontend/src/App.detached.test.tsx@@ -61,9 +61,6 @@ vi.mock("@/components/CliConnectPoller", () => ({ CliConnectPoller: () => null }vi.mock("@/components/onboarding/OnboardingGate", () => ({OnboardingGate: () => null,}));-vi.mock("@/components/MascotGigi", () => ({- MascotGigi: () => <div data-testid="mascot-gigi" />,-}));beforeEach(() => {vi.stubGlobal("fetch", vi.fn().mockResolvedValue({ ok: false }));@@ -75,7 +72,7 @@ beforeEach(() => {// The ground is a flat colour by default (2026-08-23); these tests are// about the wallpaper layer, so they switch it on. The solid default has// its own test below.- useWallpaperStore.setState({ mascotOn: true, background: "wallpaper" });+ useWallpaperStore.setState({ background: "wallpaper" });});afterEach(() => {@@ -88,14 +85,13 @@ describe("App shell around detached coding views", () => {render(<App />);expect(screen.getByTestId("jarvis-desktop-wallpaper")).toBeTruthy();- expect(screen.getByTestId("jarvis-desktop-wallpaper-mascot")).toBeTruthy();+ expect(screen.queryByTestId("jarvis-desktop-wallpaper-mascot")).toBeNull();expect(screen.getByTestId("main-view").parentElement?.classList.contains("jarvis-section-stage"),).toBe(true);});- it("hides the live mascot when the wallpaper layer is switched off", () => {- useWallpaperStore.setState({ mascotOn: false });+ it("paints no mascot layer on top of the wallpaper", () => {render(<App />);expect(screen.getByTestId("jarvis-desktop-wallpaper")).toBeTruthy();@@ -115,7 +111,7 @@ describe("App shell around detached coding views", () => {).toBe(true);});- it("hides the live mascot on every section except Chats", () => {+ it("shows the plain wallpaper with no mascot on every section", () => {useEventStore.setState({ activeSection: "tasks" });render(<App />);diff --git a/jarvis/ui/web/frontend/src/App.tsx b/jarvis/ui/web/frontend/src/App.tsxindex 0dc1d139ca..e04dffe00e 100644--- a/jarvis/ui/web/frontend/src/App.tsx+++ b/jarvis/ui/web/frontend/src/App.tsx@@ -42,7 +42,6 @@ import { CliConnectPoller } from "@/components/CliConnectPoller";import { OnboardingGate } from "@/components/onboarding/OnboardingGate";import { installDictationFocusTracker } from "@/lib/dictationTarget";import { SubscriptionRealtimeTransportBroker } from "@/components/voice/SubscriptionRealtimeTransportBroker";-import { MascotGigi } from "@/components/MascotGigi";import { useDesktopWallpaper } from "@/hooks/useDesktopWallpaper";import { installWallpaperSync, useWallpaperStore } from "@/store/wallpaper";import { cn } from "@/lib/utils";@@ -59,18 +58,15 @@ const NAV_COLLAPSED_KEY = "jarvis.sidebar.collapsed.v1";** Which artwork is shown belongs to the user — see the Wallpaper section. The* picture that ships with the app remains the default, and the one every- * failure path returns to. Gigi is a separate live layer on that ground, not- * painted into the picture — and he only sits on Chats (`hideMascot` everywhere- * else). Work sections were showing a second ghost in the empty corner, and- * the mission deck's ring already owns that same spot (maintainer, 2026-08-19).+ * failure path returns to. The artwork stays a pure scene with no mascot+ * composited on top.*/-function DesktopWallpaper({ hideMascot = false }: { hideMascot?: boolean }) {+function DesktopWallpaper() {const wallpaperUrl = useDesktopWallpaper();- const mascotOn = useWallpaperStore((state) => state.mascotOn);const background = useWallpaperStore((state) => state.background);// A flat theme colour is the default ground (lib/backgroundMode.ts): the- // picture, its veil and the mascot layer exist only once a wallpaper is- // switched on. index.css keys the readability floor on the same choice.+ // picture and its veil exist only once a wallpaper is switched on.+ // index.css keys the readability floor on the same choice.if (background !== "wallpaper") return null;return (<div@@ -82,14 +78,6 @@ function DesktopWallpaper({ hideMascot = false }: { hideMascot?: boolean }) {className="jarvis-desktop-wallpaper absolute inset-0"style={{ backgroundImage: `url(${wallpaperUrl})` }}/>- {mascotOn && !hideMascot ? (- <div- className="jarvis-desktop-wallpaper-mascot"- data-testid="jarvis-desktop-wallpaper-mascot"- >- <MascotGigi size={200} reactToVoice enableComments={false} />- </div>- ) : null}<div className="jarvis-desktop-wallpaper-veil absolute inset-0" /></div>);@@ -312,17 +300,10 @@ export default function App() {* report through them) and the right-click edit menu (the desktop WebView* has no native context menu, so this is the only mouse-driven paste).*/- /*- * Gigi belongs on the Chats ground only. Every other section was painting- * the same live ghost into empty corners (Tasks, Wiki, Profile, …). The- * wallpaper picture stays; only the mascot layer steps off.- */- const hideMascot = activeSection !== "chats";-if (solo) {return (<div className="relative isolate flex h-screen w-screen overflow-hidden bg-background text-foreground">- <DesktopWallpaper hideMascot={hideMascot} />+ <DesktopWallpaper />{brokerMounted && <SubscriptionRealtimeTransportBroker />}{/* No z-index on the stage column — see the shell below. */}<main className="relative flex min-w-0 flex-1 flex-col">@@ -345,7 +326,7 @@ export default function App() {return (<div className="relative isolate flex h-screen w-screen overflow-hidden bg-background text-foreground">{brokerMounted && <SubscriptionRealtimeTransportBroker />}- <DesktopWallpaper hideMascot={hideMascot} />+ <DesktopWallpaper /><Sidebarwidth={sidebar.size}diff --git a/jarvis/ui/web/frontend/src/index.css b/jarvis/ui/web/frontend/src/index.cssindex c606d60648..464fb25975 100644--- a/jarvis/ui/web/frontend/src/index.css+++ b/jarvis/ui/web/frontend/src/index.css@@ -903,22 +903,6 @@ body {transform: scale(1.002);}- /*- * Live Gigi on the wallpaper. He is a layer, not pixels in the picture:- * the artwork stays a scene, and the mascot stays the real Gigi. Sits in- * the lower-left of the ground, past a typical nav column, in both modes.- */- .jarvis-desktop-wallpaper-mascot {- position: absolute;- left: clamp(20px, 22vw, 340px);- bottom: clamp(28px, 11vh, 104px);- z-index: 1;- /* --scrim-rgb is what a shadow is made of in either theme — black on the- dark ground, warm charcoal on paper — so one rule replaces the pair of- hardcoded shadows that used to live here. */- filter: drop-shadow(0 16px 28px rgb(var(--scrim-rgb) / 0.32));- }-.jarvis-desktop-wallpaper-veil {background:linear-gradient(diff --git a/jarvis/ui/web/frontend/src/lib/bundledWallpapers.ts b/jarvis/ui/web/frontend/src/lib/bundledWallpapers.tsindex d906f154ee..770b013488 100644--- a/jarvis/ui/web/frontend/src/lib/bundledWallpapers.ts+++ b/jarvis/ui/web/frontend/src/lib/bundledWallpapers.ts@@ -124,8 +124,7 @@ export function bundledWallpaperUrl(id: string): string | null {* picture was chosen — and nothing on that screen could be read (maintainer* report 2026-08-18). The daylight courtyard is the same place in the light* mode's own register, so a mode without a pick of its own shows a picture- * authored for it, never the other mode's. Gigi is not in these pictures —- * he sits on top as a live layer (see store/wallpaper `mascotOn`).+ * authored for it, never the other mode's. Gigi is not in these pictures.*/export const DEFAULT_WALLPAPER_URLS: Readonly<Record<Theme, string>> = {dark: defaultOf("dark"),diff --git a/jarvis/ui/web/frontend/src/store/wallpaper.test.ts b/jarvis/ui/web/frontend/src/store/wallpaper.test.tsindex 08d8fa9bc6..e783303b55 100644--- a/jarvis/ui/web/frontend/src/store/wallpaper.test.ts+++ b/jarvis/ui/web/frontend/src/store/wallpaper.test.ts@@ -152,23 +152,3 @@ describe("reconcile", () => {expect(selections.dark).toBe("05-noir-03");});});--describe("live mascot on the wallpaper", () => {- beforeEach(() => {- window.localStorage.clear();- useWallpaperStore.setState({ mascotOn: true });- });-- it("defaults to on when nothing is stored", () => {- useWallpaperStore.getState().adopt();- expect(useWallpaperStore.getState().mascotOn).toBe(true);- });-- it("persists off and comes back in another adopt", () => {- useWallpaperStore.getState().setMascotOn(false);- expect(window.localStorage.getItem("jarvis.wallpaper.mascot.v1")).toBe("0");- useWallpaperStore.setState({ mascotOn: true });- useWallpaperStore.getState().adopt();- expect(useWallpaperStore.getState().mascotOn).toBe(false);- });-});diff --git a/jarvis/ui/web/frontend/src/store/wallpaper.ts b/jarvis/ui/web/frontend/src/store/wallpaper.tsindex 3b7c99c000..78c8bf88b5 100644--- a/jarvis/ui/web/frontend/src/store/wallpaper.ts+++ b/jarvis/ui/web/frontend/src/store/wallpaper.ts@@ -66,6 +66,9 @@ function migrateLegacySelection(): void {}}window.localStorage.removeItem(LEGACY_KEY);+ // The retired Gigi-on-wallpaper toggle (removed 2026-09-10): drop its+ // stored value so it does not linger in browser storage forever.+ window.localStorage.removeItem("jarvis.wallpaper.mascot.v1");} catch {/* storage blocked — then there is no stored pick to migrate either */}@@ -82,17 +85,6 @@ function migrateLegacySelection(): void {*/const FAVORITES_KEY = "jarvis.wallpaper.favorites.v1";-/**- * Whether the live Gigi mascot sits ON the wallpaper as its own layer.- *- * The pictures themselves stay empty of the mascot: painting Gigi into the- * pixels made him a sticker, and taking him out of the pixels made the- * desktop lose its hero. The mascot is the real Gigi component, composited- * on top of whatever picture is showing. Default on — a fresh profile- * should still have Gigi on the ground.- */-const MASCOT_KEY = "jarvis.wallpaper.mascot.v1";-/*** An id minted by the upload store (`u` + 16 hex), as opposed to one written by* the library's manifest builder (`03-anime-neon-07`) or one of the few ids@@ -159,17 +151,6 @@ function readSelections(): Record<Theme, string | null> {* favourites": the value is hand-editable browser storage, and a malformed* entry must cost the grid a shortlist, never a mount.*/-function readMascotOn(): boolean {- if (typeof window === "undefined") return true;- try {- const raw = window.localStorage.getItem(MASCOT_KEY);- if (raw === null) return true;- return raw !== "0" && raw !== "false";- } catch {- return true;- }-}-function readFavorites(): string[] {if (typeof window === "undefined") return [];try {@@ -197,12 +178,8 @@ interface WallpaperStore {selections: Record<Theme, string | null>;/** Favourited wallpaper ids, oldest first. Shared by both themes. */favorites: string[];- /** Live Gigi on the wallpaper layer. Independent of which picture is showing. */- mascotOn: boolean;/** Persist a choice for one theme. Pass null to go back to the default. */select: (id: string | null, theme: Theme) => void;- /** Show or hide the live mascot on the wallpaper. */- setMascotOn: (on: boolean) => void;/** Paint on the flat colour, or on the chosen wallpaper. */setBackground: (mode: BackgroundMode) => void;/**@@ -233,7 +210,6 @@ export const useWallpaperStore = create<WallpaperStore>((set, get) => ({background: readBackgroundMode(),selections: readSelections(),favorites: readFavorites(),- mascotOn: readMascotOn(),select: (id, theme) => {try {if (id) window.localStorage.setItem(THEME_KEYS[theme], id);@@ -281,14 +257,6 @@ export const useWallpaperStore = create<WallpaperStore>((set, get) => ({}set({ favorites: next });},- setMascotOn: (on) => {- try {- window.localStorage.setItem(MASCOT_KEY, on ? "1" : "0");- } catch {- /* the layer still applies to this window */- }- set({ mascotOn: on });- },setBackground: (mode) => {writeBackgroundMode(mode);applyBackgroundClass(mode);@@ -301,7 +269,6 @@ export const useWallpaperStore = create<WallpaperStore>((set, get) => ({background,selections: readSelections(),favorites: readFavorites(),- mascotOn: readMascotOn(),});},reconcile: (themeOf) => {@@ -341,7 +308,6 @@ export function installWallpaperSync(): () => void {THEME_KEYS.light,THEME_KEYS.dark,FAVORITES_KEY,- MASCOT_KEY,BACKGROUND_MODE_KEY,]);// The boot script already stamped the class for the first paint; thisdiff --git a/jarvis/ui/web/frontend/src/views/WallpaperView.test.tsx b/jarvis/ui/web/frontend/src/views/WallpaperView.test.tsxindex ecaf607f68..d11b27abdd 100644--- a/jarvis/ui/web/frontend/src/views/WallpaperView.test.tsx+++ b/jarvis/ui/web/frontend/src/views/WallpaperView.test.tsx@@ -151,7 +151,6 @@ beforeEach(() => {useWallpaperStore.setState({selections: { light: null, dark: null },favorites: [],- mascotOn: true,});document.documentElement.classList.add("dark");});@@ -784,23 +783,13 @@ describe("WallpaperView", () => {expect(await screen.findByAltText("The Original")).toBeTruthy();});- it("toggles the live Gigi layer without changing the picture", async () => {+ it("offers no Gigi toggle — the wallpaper stays a pure scene", async () => {renderView();await screen.findByAltText("The Original");- const toggle = screen.getByRole("button", {- name: "Show Gigi on the wallpaper",- });- expect(toggle.getAttribute("aria-pressed")).toBe("true");- expect(useWallpaperStore.getState().mascotOn).toBe(true);-- fireEvent.click(toggle);-- expect(useWallpaperStore.getState().mascotOn).toBe(false);- expect(toggle.getAttribute("aria-pressed")).toBe("false");- expect(useWallpaperStore.getState().selections).toEqual({- light: null,- dark: null,- });+ expect(+ screen.queryByRole("button", { name: "Show Gigi on the wallpaper" }),+ ).toBeNull();+ expect(screen.queryByRole("button", { name: "Gigi" })).toBeNull();});});diff --git a/jarvis/ui/web/frontend/src/views/WallpaperView.tsx b/jarvis/ui/web/frontend/src/views/WallpaperView.tsxindex 61a8e51dea..add99aa929 100644--- a/jarvis/ui/web/frontend/src/views/WallpaperView.tsx+++ b/jarvis/ui/web/frontend/src/views/WallpaperView.tsx@@ -537,11 +537,9 @@ export function WallpaperView() {const activeTheme = useThemeValue();const selectedId = useWallpaperStore((state) => state.selections[activeTheme]);const favorites = useWallpaperStore((state) => state.favorites);- const mascotOn = useWallpaperStore((state) => state.mascotOn);const background = useWallpaperStore((state) => state.background);const setBackground = useWallpaperStore((state) => state.setBackground);const toggleFavorite = useWallpaperStore((state) => state.toggleFavorite);- const setMascotOn = useWallpaperStore((state) => state.setMascotOn);const forget = useWallpaperStore((state) => state.forget);const reconcile = useWallpaperStore((state) => state.reconcile);const apply = useApplyWallpaper();@@ -874,16 +872,6 @@ export function WallpaperView() {</SegmentButton></div>- <div className="flex items-center gap-1 rounded-lg border border-border p-0.5">- <SegmentButton- active={mascotOn}- onClick={() => setMascotOn(!mascotOn)}- aria-label="Show Gigi on the wallpaper"- >- Gigi- </SegmentButton>- </div>-<span className="ml-auto text-xs text-muted-foreground">{visible.length} shown</span>