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(society): the agent card leads with the chat, the profile is its second face
rubenluetke10-beep422a4adc33ce
diff --git a/jarvis/ui/web/frontend/src/components/society/card/AgentCardOverlay.tsx b/jarvis/ui/web/frontend/src/components/society/card/AgentCardOverlay.tsxindex 50192d7a14..175cb0d7d5 100644--- a/jarvis/ui/web/frontend/src/components/society/card/AgentCardOverlay.tsx+++ b/jarvis/ui/web/frontend/src/components/society/card/AgentCardOverlay.tsx@@ -1,7 +1,24 @@/*** The agent model card: a near-full-screen window above the world, the* world still visible through a dimmed, blurred scrim (MASTERPLAN §4.2).- * Three columns, in this order: Specs | 3D figure | Chat. Esc and ✕ close.+ * Esc and ✕ close it.+ *+ * The card has TWO faces, and the chat is the one you land on (maintainer,+ * 2026-09-02). Read across a viewport cut into eight:+ *+ * chat face roster (1/8) | chat (6/8) | options (1/8)+ * profile face roster (1/8) | specs | 3D figure+ *+ * The chat used to be a narrow third column beside the specs and the figure,+ * which made the thing you actually talk to the smallest pane on screen. Now+ * the chat owns the middle six eighths, the roster rail from the island moves+ * in on the left so you can switch agents without closing the card, and the+ * right eighth is held empty on purpose — delimited, named, with nothing+ * invented in it until it gets its controls.+ *+ * Clicking the agent's identity in the header (or "Profile") turns the card+ * over: specs and the 3D figure, no chat, exactly the two panes the old card+ * had beside it. "Chat" turns it back.** Radix Dialog gives the focus trap and Escape for free; the content is an* inset window rather than a centred box so the stage shows around it.@@ -12,48 +29,111 @@* session (M2). A sample row carries none, and the column says so instead* of inventing a transcript.*/+import { useEffect, useState } from "react";import * as Dialog from "@radix-ui/react-dialog";-import { X } from "lucide-react";+import { MessageSquare, User, X } from "lucide-react";import { Badge } from "@/components/ui/badge";+import { Button } from "@/components/ui/button";import { useT } from "@/i18n";+import { cn } from "@/lib/utils";import { AgentSwatch } from "../AgentSwatch";import type { SocietyAgent } from "../data";import { AgentChatPanel } from "../chat/AgentChatPanel";import { AgentFigureViewer } from "../figures/AgentFigureViewer";+import { RosterRail } from "../roster/RosterRail";import { AgentSpecSheet } from "./AgentSpecSheet";+/** Which face of the card is showing. */+type CardFace = "chat" | "profile";+export interface AgentCardOverlayProps {agent: SocietyAgent | null;- /** Every agent, for @mentions in the chat. */+ /** Every agent — the rail lists them, the chat @mentions them. */roster: SocietyAgent[];+ /** True while the roster is still loading; the rail says so. */+ rosterLoading?: boolean;+ /** True while rows come from the sample roster rather than society.db. */+ sample?: boolean;+ /** A row in the rail was clicked: the card swaps to that agent. */+ onSelectAgent?: (agentId: string) => void;+ /** "+" in the rail. The creator wants the island, so the card closes first. */+ onCreate?: () => void;onClose: () => void;}-export function AgentCardOverlay({ agent, roster, onClose }: AgentCardOverlayProps) {+export function AgentCardOverlay({+ agent,+ roster,+ rosterLoading = false,+ sample = false,+ onSelectAgent,+ onCreate,+ onClose,+}: AgentCardOverlayProps) {const t = useT();const open = agent !== null;+ const [face, setFace] = useState<CardFace>("chat");++ // Every opening starts on the chat. The face survives a switch between+ // agents inside the card — comparing two profiles is a real thing to do —+ // but never leaks from one opening of the card to the next.+ useEffect(() => {+ if (!open) setFace("chat");+ }, [open]);+return (<Dialog.Root open={open} onOpenChange={(next) => (next ? undefined : onClose())}><Dialog.Portal><Dialog.Overlay className="fixed inset-0 z-40 bg-scrim/60 backdrop-blur-sm data-[state=open]:animate-in data-[state=open]:fade-in-0 motion-reduce:animate-none" /><Dialog.Contentdata-testid="agent-card"+ data-face={face}className="fixed inset-4 z-50 flex flex-col overflow-hidden rounded-lg border border-border bg-card shadow-float focus:outline-none data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 motion-reduce:animate-none lg:inset-10">{agent ? (<><header className="flex shrink-0 items-center gap-3 border-b border-border px-5 py-3">- <AgentSwatch agent={agent} size={40} />- <div className="min-w-0 flex-1">- <Dialog.Title className="truncate font-display text-base font-semibold tracking-tight text-foreground">- {agent.name}- </Dialog.Title>- <Dialog.Description className="truncate text-xs text-muted-foreground">- {agent.title}- </Dialog.Description>- </div>+ <button+ type="button"+ onClick={() => setFace("profile")}+ aria-label={t("society.card.open_profile")}+ data-testid="agent-card-identity"+ className={cn(+ "-mx-2 flex min-w-0 flex-1 items-center gap-3 rounded-md px-2 py-1 text-left transition-colors",+ "hover:bg-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",+ )}+ >+ <AgentSwatch agent={agent} size={40} />+ {/* Title and description render as spans: a heading and a+ paragraph are not valid inside a button, and Radix still+ wires the dialog's labelling through `asChild`. */}+ <span className="min-w-0 flex-1">+ <Dialog.Title asChild>+ <span className="block truncate font-display text-base font-semibold tracking-tight text-foreground">+ {agent.name}+ </span>+ </Dialog.Title>+ <Dialog.Description asChild>+ <span className="block truncate text-xs text-muted-foreground">{agent.title}</span>+ </Dialog.Description>+ </span>+ </button>+ <Button+ size="sm"+ variant={face === "profile" ? "secondary" : "outline"}+ className="gap-1.5"+ onClick={() => setFace(face === "chat" ? "profile" : "chat")}+ data-testid="agent-card-face-toggle"+ >+ {face === "chat" ? (+ <User className="h-3.5 w-3.5" aria-hidden />+ ) : (+ <MessageSquare className="h-3.5 w-3.5" aria-hidden />+ )}+ {face === "chat" ? t("society.card.profile") : t("society.card.chat")}+ </Button><Badge variant="outline">{t(`society.state.${agent.state}`)}</Badge><Dialog.Closearia-label={t("society.card.close")}@@ -62,16 +142,53 @@ export function AgentCardOverlay({ agent, roster, onClose }: AgentCardOverlayPro<X className="h-4 w-4" aria-hidden /></Dialog.Close></header>- <div className="grid min-h-0 flex-1 grid-cols-[minmax(260px,1fr)_minmax(320px,1.2fr)_minmax(300px,1fr)]">- <section className="min-h-0 border-r border-border" aria-label={t("society.card.specs")}>- <AgentSpecSheet agent={agent} />- </section>- <section className="society-figure-column relative min-h-0" aria-label={t("society.card.figure")}>- <AgentFigureViewer recipe={agent.figure} />- </section>- <section className="flex min-h-0 flex-col border-l border-border" aria-label={t("society.card.chat")}>- <AgentChatPanel agent={agent} roster={roster} />- </section>+ <div+ className={cn(+ "grid min-h-0 flex-1",+ face === "chat"+ ? "grid-cols-[minmax(220px,1fr)_minmax(0,6fr)_minmax(190px,1fr)]"+ : "grid-cols-[minmax(220px,1fr)_minmax(300px,3fr)_minmax(320px,4fr)]",+ )}+ >+ <RosterRail+ agents={roster}+ loading={rosterLoading}+ sample={sample}+ activeAgentId={agent.agentId}+ onOpen={(id) => onSelectAgent?.(id)}+ onCreate={() => onCreate?.()}+ side="left"+ className="w-full"+ />+ {face === "chat" ? (+ <>+ <section+ className="flex min-h-0 flex-col"+ aria-label={t("society.card.chat")}+ data-testid="agent-card-chat"+ >+ <AgentChatPanel agent={agent} roster={roster} />+ </section>+ <OptionsRail />+ </>+ ) : (+ <>+ <section+ className="min-h-0 border-r border-border"+ aria-label={t("society.card.specs")}+ data-testid="agent-card-specs"+ >+ <AgentSpecSheet agent={agent} onOpenChat={() => setFace("chat")} />+ </section>+ <section+ className="society-figure-column relative min-h-0"+ aria-label={t("society.card.figure")}+ data-testid="agent-card-figure"+ >+ <AgentFigureViewer recipe={agent.figure} />+ </section>+ </>+ )}</div></>) : null}@@ -80,3 +197,26 @@ export function AgentCardOverlay({ agent, roster, onClose }: AgentCardOverlayPro</Dialog.Root>);}++/**+ * The right eighth. Held open on purpose: the column is drawn and named so+ * the layout is settled, and it stays empty rather than filled with a+ * placeholder pretending to be a control.+ */+function OptionsRail() {+ const t = useT();+ return (+ <aside+ className="flex h-full min-h-0 flex-col border-l border-border bg-sidebar"+ aria-label={t("society.card.options")}+ data-testid="agent-card-options"+ >+ <div className="px-3 pt-3">+ <h2 className="font-display text-sm font-semibold tracking-tight text-foreground">+ {t("society.card.options")}+ </h2>+ </div>+ <p className="px-3 pt-2 text-xs text-muted-foreground">{t("society.card.options_hint")}</p>+ </aside>+ );+}diff --git a/jarvis/ui/web/frontend/src/components/society/card/AgentSpecSheet.tsx b/jarvis/ui/web/frontend/src/components/society/card/AgentSpecSheet.tsxindex 2eb8574bea..6acbecc2b1 100644--- a/jarvis/ui/web/frontend/src/components/society/card/AgentSpecSheet.tsx+++ b/jarvis/ui/web/frontend/src/components/society/card/AgentSpecSheet.tsx@@ -38,7 +38,17 @@ export function relativeUntil(iso: string | null, t: (key: string) => string): sreturn t("society.card.due_in").replace("{0}", `${Math.round(hours / 24)} d`);}-export function AgentSpecSheet({ agent }: { agent: SocietyAgent }) {+export interface AgentSpecSheetProps {+ agent: SocietyAgent;+ /**+ * Hands the card back to its chat. The profile is the card's second face,+ * so "Chat" here is a real way back rather than the placeholder it was+ * while the chat had no place of its own.+ */+ onOpenChat?: () => void;+}++export function AgentSpecSheet({ agent, onOpenChat }: AgentSpecSheetProps) {const t = useT();const capabilities = useSocietyCapabilities();const setPaused = useSetAgentPaused();@@ -203,7 +213,13 @@ export function AgentSpecSheet({ agent }: { agent: SocietyAgent }) {</div></ScrollArea><div className="flex shrink-0 items-center gap-2 border-t border-border px-4 py-3">- <Button size="sm" variant="secondary" disabled title={t("society.card.chat_soon")}>+ <Button+ size="sm"+ variant="secondary"+ disabled={!onOpenChat}+ title={onOpenChat ? undefined : t("society.card.chat_soon")}+ onClick={onOpenChat}+ ><MessageSquare className="mr-1.5 h-3.5 w-3.5" aria-hidden />{t("society.card.action_chat")}</Button>diff --git a/jarvis/ui/web/frontend/src/components/society/chat/AgentChatPanel.tsx b/jarvis/ui/web/frontend/src/components/society/chat/AgentChatPanel.tsxindex c47dff67d7..877acba5c0 100644--- a/jarvis/ui/web/frontend/src/components/society/chat/AgentChatPanel.tsx+++ b/jarvis/ui/web/frontend/src/components/society/chat/AgentChatPanel.tsx@@ -44,6 +44,14 @@ import type { SocietyAgent } from "../data";/** A gap this long between messages earns a fresh time stamp. */const STAMP_GAP_MS = 30 * 60_000;+/**+ * The chat owns six eighths of the agent card, which is far wider than a line+ * of prose should ever be. Transcript and composer share this one measure so+ * the column reads like a chat instead of a stretched log; the panes, borders+ * and scrollbars still span the full width.+ */+const CHAT_MEASURE = "mx-auto w-full max-w-[820px]";+/** The line appended to a message that names an agent; Jarvis delegates on it. */const DELEGATE_MARK = "[to jarvis]";@@ -501,7 +509,7 @@ function Transcript({let lastStamp = 0;return (<div className="min-h-0 flex-1 overflow-y-auto px-4 py-3">- <div className="flex flex-col gap-2">+ <div className={cn(CHAT_MEASURE, "flex flex-col gap-2")}>{items.map((item) => {const ts = item.type === "user" ? item.tsMs : item.type === "turn" ? item.startedMs : 0;const stamp = ts && ts - lastStamp > STAMP_GAP_MS ? ts : 0;@@ -880,9 +888,11 @@ function Composer({ agent, mentionable, busy, sessionId, cwd, provider, surfacereturn (<div className="shrink-0 border-t border-border px-3 pb-3 pt-2">{problem ? <p className="mb-1 px-1 text-xs text-destructive">{problem}</p> : null}- <ChatAttachmentStrip attachments={attachments.attachments} analyzing={attachments.analyzing} onRemove={attachments.remove} />+ <div className={CHAT_MEASURE}>+ <ChatAttachmentStrip attachments={attachments.attachments} analyzing={attachments.analyzing} onRemove={attachments.remove} />+ </div>{matches.length > 0 ? (- <ul className="mb-1 flex flex-wrap gap-1 px-1" role="listbox" aria-label={t("society.chat.mention_hint")}>+ <ul className={cn(CHAT_MEASURE, "mb-1 flex flex-wrap gap-1 px-1")} role="listbox" aria-label={t("society.chat.mention_hint")}>{matches.map((a) => (<li key={a.agentId}><button@@ -901,6 +911,7 @@ function Composer({ agent, mentionable, busy, sessionId, cwd, provider, surface) : null}<divclassName={cn(+ CHAT_MEASURE,"relative flex items-end gap-1 rounded-[22px] border border-border bg-background px-1.5 py-1",attachments.dragging && "border-border-strong",)}diff --git a/jarvis/ui/web/frontend/src/components/society/roster/RosterRail.tsx b/jarvis/ui/web/frontend/src/components/society/roster/RosterRail.tsxindex e0b0cd0dc1..23223b618f 100644--- a/jarvis/ui/web/frontend/src/components/society/roster/RosterRail.tsx+++ b/jarvis/ui/web/frontend/src/components/society/roster/RosterRail.tsx@@ -6,6 +6,10 @@** The rail is app chrome: Ink & Paper tokens, both modes. The world beside* it carries its own branding; nothing here leaks into the viewport.+ *+ * It sits on either edge. Beside the island it is the RIGHT rail with its own+ * fixed width; inside the agent card it is the LEFT eighth and takes its width+ * from the grid cell — same rows, same sizes, only the divider swaps sides.*/import { useMemo, useState } from "react";import { Plus, Search } from "lucide-react";@@ -34,9 +38,22 @@ export interface RosterRailProps {activeAgentId: string | null;onOpen: (agentId: string) => void;onCreate: () => void;+ /** Which edge the rail sits on; decides which side carries the divider. */+ side?: "left" | "right";+ /** Replaces the fixed width when the rail is a grid cell rather than a flex sibling. */+ className?: string;}-export function RosterRail({ agents, loading, sample, activeAgentId, onOpen, onCreate }: RosterRailProps) {+export function RosterRail({+ agents,+ loading,+ sample,+ activeAgentId,+ onOpen,+ onCreate,+ side = "right",+ className,+}: RosterRailProps) {const t = useT();const [query, setQuery] = useState("");@@ -53,7 +70,11 @@ export function RosterRail({ agents, loading, sample, activeAgentId, onOpen, onCreturn (<asidedata-testid="society-roster-rail"- className="flex h-full w-[300px] shrink-0 flex-col border-l border-border bg-sidebar"+ className={cn(+ "flex h-full min-h-0 flex-col border-border bg-sidebar",+ side === "left" ? "border-r" : "border-l",+ className ?? "w-[300px] shrink-0",+ )}><div className="flex items-center justify-between gap-2 px-3 pt-3"><div className="flex min-w-0 items-center gap-2">diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex 0e8dfaa582..37927b2b46 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@ -1731,6 +1731,17 @@"ask_next": "Weiter","ask_say_prefix": "Sag einfach","more_to_learn": "{0} weitere offen",+ "hero_teach_intro": "Zwei Wege, {name} etwas über dich beizubringen",+ "hero_teach_voice": "Sag es einfach im Gespräch — {name} hört zu und schreibt es auf.",+ "hero_teach_file": "Oder schreib es selbst in die Quelldatei.",+ "hero_open_source": "Datei öffnen",+ "ask_empty_title": "Nichts mehr zu fragen",+ "ask_empty_body": "Jedes Feld auf dieser Seite hat eine Antwort. Was du neu erwähnst, kommt von allein dazu.",+ "error_title": "Das Profil konnte nicht geladen werden",+ "group_filled": "{0} von {1} bekannt",+ "source_updated": "Aktualisiert {0}",+ "source_empty_title": "Noch nichts geschrieben",+ "source_empty_body": "Der Curator hat noch nichts in diese Datei geschrieben. Du kannst die ersten Zeilen selbst schreiben.","value_yes": "ja","value_no": "nein","field_edit": "Bearbeiten",@@ -3249,7 +3260,9 @@"download_file_action": "Als Datei herunterladen:","open_editor_action": "Im Editor öffnen:","opened_in_editor": "Im Editor geöffnet",- "open_failed": "Konnte nicht im Editor öffnen"+ "open_failed": "Konnte nicht im Editor öffnen",+ "back_to_sessions": "Zurück zu den Sessions",+ "you": "Du"},"turn_card": {"turn": "Turn",@@ -5305,6 +5318,10 @@"specs": "Daten","figure": "Figur","chat": "Chat",+ "profile": "Profil",+ "open_profile": "Profil dieses Agenten öffnen",+ "options": "Optionen",+ "options_hint": "Für die Steuerung dieses Agenten freigehalten.","close": "Schließen","brain": "Gehirn","description": "Ständige Anweisungen",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex b7c05afd4f..8f3ee78830 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@ -1335,7 +1335,17 @@"title": "Run Inspector","subtitle": "Developer forensics per run: environment, decisions, latency, tool I/O and the raw event stream.","empty": "Select a run to inspect.",+ "empty_hint": "Pick a run on the left to see its turns, decisions, latency and raw events.",+ "empty_title": "No runs recorded yet",+ "empty_body": "Every voice or chat session appears here with its full forensic trail.","unavailable": "Run recorder is disabled.",+ "unavailable_body": "Turn the run recorder on in Settings to record what each session did.",+ "search": "Search runs…",+ "no_matches": "No run matches this search.",+ "no_turns": "This run recorded no completed turn.",+ "loading": "Loading runs…",+ "back": "Back",+ "latency": "latency","export_raw": "Export raw (JSON)","full_transcript": "Full conversation","deep_dive": "Metrics & deep dive",@@ -1351,6 +1361,27 @@"errors": "Errors","events": "Events"},+ "tab": {+ "turns": "Turns",+ "environment": "Environment",+ "metrics": "Metrics",+ "errors": "Errors",+ "session_events": "Session events"+ },+ "errors": {+ "empty": "No errors recorded."+ },+ "metrics": {+ "think": "Think",+ "speak": "Speak",+ "tokens_in": "Tokens in",+ "tokens_out": "Tokens out",+ "interruptions": "Interruptions",+ "worst_latency": "Worst latency",+ "cost_by_provider": "Cost by provider",+ "recorded_events": "Recorded events",+ "tool_usage": "Tool usage"+ },"environment": "Run environment","session_events": "Session-level events","no_usage": "usage not measured",@@ -1380,7 +1411,9 @@"cache_hit": "hit","cache_miss": "miss","interrupted": "interrupted",- "context": "context"+ "context": "context",+ "turns": "turns",+ "tokens": "tokens"},"env": {"mode": "Mode",@@ -1731,6 +1764,17 @@"ask_next": "Next","ask_say_prefix": "Just say","more_to_learn": "{0} more to learn",+ "hero_teach_intro": "Two ways to teach {name} about you",+ "hero_teach_voice": "Say it out loud in a conversation — {name} listens and writes it down.",+ "hero_teach_file": "Or write it into the source file yourself.",+ "hero_open_source": "Open the file",+ "ask_empty_title": "Nothing left to ask",+ "ask_empty_body": "Every field on this page has an answer. Anything new you mention gets added on its own.",+ "error_title": "The profile could not be loaded",+ "group_filled": "{0} of {1} known",+ "source_updated": "Updated {0}",+ "source_empty_title": "Nothing written yet",+ "source_empty_body": "The curator has not put anything in this file. You can write the first lines yourself.","value_yes": "yes","value_no": "no","field_edit": "Edit",@@ -3249,7 +3293,9 @@"download_file_action": "Download as file:","open_editor_action": "Open in editor:","opened_in_editor": "Opened in editor",- "open_failed": "Couldn't open in editor"+ "open_failed": "Couldn't open in editor",+ "back_to_sessions": "Back to sessions",+ "you": "You"},"turn_card": {"turn": "Turn",@@ -5305,6 +5351,10 @@"specs": "Specs","figure": "Figure","chat": "Chat",+ "profile": "Profile",+ "open_profile": "Open this agent's profile",+ "options": "Options",+ "options_hint": "Held open for this agent's controls.","close": "Close","brain": "Brain","description": "Standing instructions",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex 05584660e9..f814693c1d 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -1731,6 +1731,17 @@"ask_next": "Siguiente","ask_say_prefix": "Solo di","more_to_learn": "{0} más por aprender",+ "hero_teach_intro": "Dos formas de contarle a {name} quién eres",+ "hero_teach_voice": "Dilo en voz alta en una conversación — {name} escucha y lo anota.",+ "hero_teach_file": "O escríbelo tú mismo en el archivo fuente.",+ "hero_open_source": "Abrir el archivo",+ "ask_empty_title": "Nada más que preguntar",+ "ask_empty_body": "Todos los campos de esta página tienen respuesta. Lo nuevo que menciones se añade solo.",+ "error_title": "No se pudo cargar el perfil",+ "group_filled": "{0} de {1} conocidos",+ "source_updated": "Actualizado {0}",+ "source_empty_title": "Aún no hay nada escrito",+ "source_empty_body": "El curador no ha puesto nada en este archivo. Puedes escribir las primeras líneas tú mismo.","value_yes": "sí","value_no": "no","field_edit": "Editar",@@ -3249,7 +3260,9 @@"download_file_action": "Descargar como archivo:","open_editor_action": "Abrir en el editor:","opened_in_editor": "Abierto en el editor",- "open_failed": "No se pudo abrir en el editor"+ "open_failed": "No se pudo abrir en el editor",+ "back_to_sessions": "Volver a las sesiones",+ "you": "Tú"},"turn_card": {"turn": "Turno",@@ -5305,6 +5318,10 @@"specs": "Ficha","figure": "Figura","chat": "Chat",+ "profile": "Perfil",+ "open_profile": "Abrir el perfil de este agente",+ "options": "Opciones",+ "options_hint": "Reservado para los controles de este agente.","close": "Cerrar","brain": "Cerebro","description": "Instrucciones permanentes",diff --git a/jarvis/ui/web/frontend/src/views/society/SocietyView.tsx b/jarvis/ui/web/frontend/src/views/society/SocietyView.tsxindex d52376568c..63f6c34e30 100644--- a/jarvis/ui/web/frontend/src/views/society/SocietyView.tsx+++ b/jarvis/ui/web/frontend/src/views/society/SocietyView.tsx@@ -85,7 +85,20 @@ export function SocietyView() {onOpen={setOpenAgentId}onCreate={() => setCreating(true)}/>- <AgentCardOverlay agent={openAgent} roster={agents} onClose={() => setOpenAgentId(null)} />+ <AgentCardOverlay+ agent={openAgent}+ roster={agents}+ rosterLoading={roster.isLoading}+ sample={sample}+ onSelectAgent={setOpenAgentId}+ onCreate={() => {+ // The creator ends with the newcomer walking out of the foundry on+ // the island; the card sits on top of exactly that, so it closes.+ setOpenAgentId(null);+ setCreating(true);+ }}+ onClose={() => setOpenAgentId(null)}+ /><BuildingCardOverlayplace={openPlace}onClose={() => setOpenPlace(null)}