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(chat): agents in the Jarvis chat's @ list wear their own faces
rubenluetke10-beepbbebdeb4a1f2
diff --git a/jarvis/ui/web/frontend/src/components/agentchat/ComposerTypeahead.tsx b/jarvis/ui/web/frontend/src/components/agentchat/ComposerTypeahead.tsxindex 38196d3c8c..da4c51288e 100644--- a/jarvis/ui/web/frontend/src/components/agentchat/ComposerTypeahead.tsx+++ b/jarvis/ui/web/frontend/src/components/agentchat/ComposerTypeahead.tsx@@ -5,6 +5,8 @@ import { Bot, FileText, Folder, Sparkles, TerminalSquare } from "lucide-react";import { groupRuns, type TypeaheadItem } from "@/components/agentchat/typeahead";import { ToolChoiceIcon } from "@/components/agentchat/ToolChoiceChips";import { toolIdentityStyle } from "@/components/agentchat/toolIdentity";+import { AgentSwatch } from "@/components/society/AgentSwatch";+import { useSocietyRoster } from "@/components/society/data";import { useT } from "@/i18n";import { cn } from "@/lib/utils";@@ -121,7 +123,8 @@ export function ComposerTypeahead({// A named thing (an agent, a plugin) reads by its name first,// the way the agents' own picker shows it; a file or a command// keeps the terse `@value` row.- const named = Boolean(item.choice) || (item.kind === "agent" && item.label !== item.value);+ const teammate = item.group === "teammates";+ const named = Boolean(item.choice) || teammate || (item.kind === "agent" && item.label !== item.value);return (<divkey={`${item.group}:${item.value}`}@@ -136,7 +139,9 @@ export function ComposerTypeahead({active ? "bg-primary/15 text-foreground" : "text-foreground",)}>- {item.choice ? (+ {teammate ? (+ <TeammateAvatar name={item.label} />+ ) : item.choice ? (<span className="tool-identity inline-flex shrink-0" style={toolIdentityStyle(item.choice)} aria-hidden><ToolChoiceIcon row={item.choice} size={16} /></span>@@ -174,6 +179,24 @@ export function ComposerTypeahead({);}+/**+ * One of the user's agents, wearing the face it has everywhere else (roster,+ * agent chat, the agents' own "@" list). Mounted only while such a row is on+ * screen, so the roster is read only when the list names an agent; a name the+ * roster does not know still gets its deterministic symbol.+ */+function TeammateAvatar({ name }: { name: string }) {+ const roster = useSocietyRoster();+ const agent = roster.data?.agents.find((a) => a.name === name);+ return (+ <AgentSwatch+ agent={agent ?? ({ name } as Parameters<typeof AgentSwatch>[0]["agent"])}+ size={22}+ className="rounded-md"+ />+ );+}+function groupLabel(group: string, t: (key: string) => string): string {// Catalog rows head their runs with the Add menu's own category names.if (group.startsWith("tool:")) return t(`chat_tools.${group.slice(5)}`);diff --git a/jarvis/ui/web/frontend/src/components/agentchat/composerTypeahead.test.tsx b/jarvis/ui/web/frontend/src/components/agentchat/composerTypeahead.test.tsxindex 1beca8c46b..c96de0adc9 100644--- a/jarvis/ui/web/frontend/src/components/agentchat/composerTypeahead.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentchat/composerTypeahead.test.tsx@@ -1,4 +1,5 @@import { act, cleanup, fireEvent, render, screen, waitFor } from "@testing-library/react";+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";import { AgentComposer } from "@/components/agentchat/AgentComposer";@@ -244,9 +245,11 @@ describe("composer typeahead", () => {});seedJarvis(catalog(["@"]));render(- <AgentChatStoreProvider store={useJarvisChatStore}>- <AgentComposer />- </AgentChatStoreProvider>,+ <QueryClientProvider client={new QueryClient({ defaultOptions: { queries: { retry: false } } })}>+ <AgentChatStoreProvider store={useJarvisChatStore}>+ <AgentComposer />+ </AgentChatStoreProvider>+ </QueryClientProvider>,);type("ask @");@@ -254,6 +257,8 @@ describe("composer typeahead", () => {const rows = screen.getAllByTestId("composer-typeahead-item").map((r) => r.textContent);// The agent first, then the connected plugin; the disconnected one waits for a search.expect(rows[0]).toContain("@Mailbox");+ // An agent wears its face, not a generic robot glyph.+ expect(screen.getAllByTestId("composer-typeahead-item")[0].querySelector("svg.lucide-bot")).toBeNull();expect(rows[1]).toContain("Gmail");expect(screen.getByTestId("composer-typeahead").textContent).toContain("Agents");const asked = fetchMock.mock.calls.map((c) => String(c[0]));