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(agents): calm polish of the Agent section (#1024)
Ruben Lütkee5d15e0f0e9c
diff --git a/dodaios/ui/web/frontend/src/components/home/VoiceComposer.tsx b/dodaios/ui/web/frontend/src/components/home/VoiceComposer.tsxindex 8e1b06d666..c333155b99 100644--- a/dodaios/ui/web/frontend/src/components/home/VoiceComposer.tsx+++ b/dodaios/ui/web/frontend/src/components/home/VoiceComposer.tsx@@ -141,9 +141,9 @@ export function VoiceComposer({ hint, onExit }: { hint: string; onExit?: () => vonClick={() => setActiveSection("apikeys")}title={t("home.model_hint")}data-testid="voice-engine"- className="inline-flex max-w-[320px] items-center gap-1.5 rounded-md px-1 text-xs text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"+ className="inline-flex max-w-[320px] items-center gap-1.5 rounded-full px-2 text-xs font-normal text-muted-foreground/80 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring">- <span className="truncate font-medium text-foreground/80">{engine.providerLabel}</span>+ <span className="truncate">{engine.providerLabel}</span>{engine.model && <span className="truncate">{engine.model}</span>}</button></div>diff --git a/dodaios/ui/web/frontend/src/components/society/agentSection.css b/dodaios/ui/web/frontend/src/components/society/agentSection.cssindex 7fbc60ffbd..9893413a07 100644--- a/dodaios/ui/web/frontend/src/components/society/agentSection.css+++ b/dodaios/ui/web/frontend/src/components/society/agentSection.css@@ -271,8 +271,12 @@opacity: 0.4;}-/* A text button, fully round. */-.as-pill-button {+/* A text button, fully round. The base weighs only as much as an element+ selector (it still beats the reset's `button`, which loads first), so a+ utility class on a pill (bg-transparent, font-normal, h-8 …) wins whatever+ order the stylesheets load in; otherwise "quiet" pills rendered filled and+ bold. */+button:where(.as-pill-button) {display: inline-flex;height: 34px;align-items: center;@@ -324,6 +328,14 @@color: hsl(var(--foreground));}+/* A row of chips that may overflow: centred while it fits, scrolling from the+ first chip (never clipped at the start) when it does not, with soft edges. */+.as-chip-strip {+ justify-content: safe center;+ /* A mask reads only alpha: any opaque token works. */+ mask-image: linear-gradient(90deg, transparent 0, hsl(var(--foreground)) 16px, hsl(var(--foreground)) calc(100% - 16px), transparent 100%);+}+/* --- the chat header ------------------------------------------------------ *//* Nearly nothing: the agent's face and name as one small pill in the middle. */@@ -595,42 +607,60 @@ button.as-name-pill:focus-visible {box-shadow: 0 0 0 2px hsl(var(--ring) / 0.5);}-/* The lead, large and centred above the list. */+/* The lead, large and centred above the list, like a contact header: a face+ and a name, no box. Hover and selection only touch a soft circle behind the+ face. */.as-hero {display: flex;min-width: 0;max-width: 100%;flex-direction: column;align-items: center;- gap: 8px;- border-radius: var(--as-radius-2xl);- padding: 12px 28px 10px;+ gap: 6px;+ border-radius: var(--as-radius-lg);+ padding: 4px 12px;+ transition: transform var(--as-dur-1) var(--as-ease);+}++.as-hero:active {+ transform: scale(0.97);+}++.as-hero:focus-visible {+ outline: none;+}++.as-hero-face {+ display: grid;+ width: 80px;+ height: 80px;+ place-items: center;+ border-radius: 999px;transition:background-color var(--as-dur-2) var(--as-ease),- transform var(--as-dur-1) var(--as-ease);+ box-shadow var(--as-dur-2) var(--as-ease);}-.as-hero:hover {+.as-hero:hover .as-hero-face {background: hsl(var(--secondary) / 0.6);}-.as-hero:active {- transform: scale(0.98);+.as-hero[data-active="true"] .as-hero-face {+ background: var(--as-tint-wash);}-.as-hero[data-active="true"] {- background: hsl(var(--secondary));- box-shadow: inset 0 0 0 1px hsl(var(--border) / 0.6);-}--.as-hero:focus-visible {- outline: none;+.as-hero:focus-visible .as-hero-face {box-shadow: 0 0 0 2px hsl(var(--ring));}.as-hero .as-status {- right: 1px;- bottom: 1px;+ right: 8px;+ bottom: 8px;+}++.as-hero .as-shortcut-badge {+ left: 6px;+ top: 6px;}.as-hero-name {@@ -638,8 +668,13 @@ button.as-name-pill:focus-visible {overflow: hidden;text-overflow: ellipsis;white-space: nowrap;- font-size: 14px;+ font-size: 15px;+ line-height: 20px;font-weight: 600;+ color: hsl(var(--foreground));+}++.as-hero[data-active="true"] .as-hero-name {color: hsl(var(--foreground-strong));}diff --git a/dodaios/ui/web/frontend/src/components/society/card/AgentBrowserPreview.tsx b/dodaios/ui/web/frontend/src/components/society/card/AgentBrowserPreview.tsxindex bfff5850f9..fcf65fb934 100644--- a/dodaios/ui/web/frontend/src/components/society/card/AgentBrowserPreview.tsx+++ b/dodaios/ui/web/frontend/src/components/society/card/AgentBrowserPreview.tsx@@ -87,8 +87,8 @@ export function AgentBrowserPreview({ agent }: { agent: SocietyAgent }) {: state.connected && state.ready? t(state.manual ? "society.browser_live.manual" : "society.browser_live.live"): t(managedRuntime && install.data && !install.data.installed ? "society.card.browser_setting_up" : "society.card.browser_connecting");- const buttonClass = "rounded px-2 py-1 text-xs hover:bg-secondary disabled:opacity-40";- const signInClass = "rounded-md bg-primary px-3 py-2 text-xs font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-40";+ const buttonClass = "inline-flex h-8 min-w-8 items-center justify-center rounded-full px-3 text-[13px] text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground disabled:opacity-40";+ const signInClass = "inline-flex h-8 items-center rounded-full bg-primary px-4 text-[13px] font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-40";const enterUrl = () => {const url = /^https?:\/\//i.test(address) ? address : "https://" + address;control("navigate", { url });@@ -97,9 +97,9 @@ export function AgentBrowserPreview({ agent }: { agent: SocietyAgent }) {<div data-testid="agent-browser-preview" className={cn("shrink-0", expanded && "fixed inset-4 z-[60] flex flex-col rounded-xl border border-border bg-background p-3 shadow-xl",)}>- <div className="mb-1 flex items-center justify-between gap-1 text-[12px] text-muted-foreground">+ <div className="mb-2 flex items-center justify-between gap-1 pl-1 text-[13px] text-muted-foreground"><div className="min-w-0">- <div className="truncate">{displayName}{running.data?.profileName ? ` · ${running.data.profileName}` : ""} · {status}</div>+ <div className="leading-snug">{displayName}{running.data?.profileName ? ` · ${running.data.profileName}` : ""} · {status}</div></div><button className={buttonClass} onClick={() => setExpanded((v) => !v)}aria-label={t(expanded ? "society.browser_live.collapse" : "society.browser_live.expand")}>@@ -120,7 +120,7 @@ export function AgentBrowserPreview({ agent }: { agent: SocietyAgent }) {onValueChange={(target) => control("tab", { target })} /></div>)}- <div className={cn("relative flex items-center justify-center overflow-hidden rounded-lg bg-muted",+ <div className={cn("relative flex items-center justify-center overflow-hidden rounded-[18px] bg-muted",expanded ? "min-h-0 flex-1" : "aspect-[16/10]")}><canvas ref={canvas} width={1280} height={800} tabIndex={live && state.manual && !state.previewPaused ? 0 : -1}aria-label={t("society.browser_live.screen").replace("{0}", displayName)}@@ -181,33 +181,33 @@ export function AgentBrowserPreview({ agent }: { agent: SocietyAgent }) {{(!state.fullWindow || state.pointer?.native_window === true) && (<AgentCursor pointer={state.ready && state.connected && !state.manual ? state.pointer : undefined} />)}- {!live && <div className="absolute inset-0 flex flex-col items-center justify-center gap-2 bg-muted p-3 text-center text-xs text-muted-foreground">+ {!live && <div className="absolute inset-0 flex flex-col items-center justify-center gap-2 bg-muted p-4 text-center text-[13px] leading-snug text-muted-foreground"><p>{profileUnavailable ? t("society.browser_profiles.profile_unavailable") : chromeDisconnected ? t("society.browser_profiles.disconnected"): movedTo ? t("society.browser_live.moved").replace("{0}", movedTo) : t("society.browser_live.off_hint").replace("{0}", displayName)}</p>{!profileUnavailable && <button type="button" data-testid="agent-browser-open"- className="rounded-md border border-border bg-background px-3 py-1 text-xs font-medium text-foreground hover:bg-secondary"+ className="inline-flex h-8 items-center rounded-full bg-background px-4 text-[13px] font-medium text-foreground shadow-sm transition-colors hover:bg-secondary"disabled={chromeDisconnected} onClick={open}>{t(movedTo ? "society.browser_live.open_here" : "society.browser_live.open")}</button>}</div>}- {live && !state.ready && !state.previewPaused && state.busy && <div role="status" className="absolute inset-0 flex flex-col items-center justify-center gap-2 bg-muted p-3 text-center text-xs text-muted-foreground">+ {live && !state.ready && !state.previewPaused && state.busy && <div role="status" className="absolute inset-0 flex flex-col items-center justify-center gap-2 bg-muted p-4 text-center text-[13px] leading-snug text-muted-foreground"><p>{t("society.browser_live.busy_task").replace(/\{0\}/g, state.busy.holderName)}</p>{state.busy.running && state.busy.holderId && <button type="button"- className="rounded-md border border-border bg-background px-3 py-1 text-xs font-medium text-foreground hover:bg-secondary"+ className="inline-flex h-8 items-center rounded-full bg-background px-4 text-[13px] font-medium text-foreground shadow-sm transition-colors hover:bg-secondary"onClick={stopHolder}>{t("society.browser_live.stop_holder").replace("{0}", state.busy.holderName)}</button>}</div>}- {live && !state.ready && !state.previewPaused && !state.busy && <div className="absolute inset-0 grid place-items-center bg-muted p-3 text-center text-xs text-muted-foreground">+ {live && !state.ready && !state.previewPaused && !state.busy && <div className="absolute inset-0 grid place-items-center bg-muted p-4 text-center text-[13px] leading-snug text-muted-foreground">{chromeDisconnected ? t("society.browser_profiles.disconnected") : (managedRuntime && install.data?.detail) || status}{managedRuntime && install.data?.running && <span>{install.data.percent}%</span>}</div>}- {state.previewPaused && <div className="absolute inset-0 grid place-items-center bg-muted p-4 text-center text-xs text-muted-foreground">+ {state.previewPaused && <div className="absolute inset-0 grid place-items-center bg-muted p-4 text-center text-[13px] leading-snug text-muted-foreground">{t("society.browser_profiles.preview_paused")}</div>}{state.ready && !state.connected && <div className="absolute bottom-2 rounded bg-background/90 px-2 py-1 text-xs">{status}</div>}</div>- <div className="mt-2 flex flex-wrap justify-center gap-1">+ <div className="mt-3 flex flex-wrap justify-center gap-1.5"><BrowserProfilesButton agentId={agent.agentId} />{live && <BrowserRecoveryControls key={agent.agentId} agentId={agent.agentId}canReload={state.connected && state.manual && !state.controlPending && !state.previewPauseddiff --git a/dodaios/ui/web/frontend/src/components/society/card/OptionsRail.tsx b/dodaios/ui/web/frontend/src/components/society/card/OptionsRail.tsxindex 0723fd0b5f..8f0334bb43 100644--- a/dodaios/ui/web/frontend/src/components/society/card/OptionsRail.tsx+++ b/dodaios/ui/web/frontend/src/components/society/card/OptionsRail.tsx@@ -19,7 +19,7 @@* open in the pane the same way. The file keeps its historical name and* export: the layout mounts `<OptionsRail …>`.*/-import { lazy, Suspense, useEffect, useRef, useState, type CSSProperties } from "react";+import { lazy, Suspense, useEffect, useRef, useState } from "react";import * as Tabs from "@radix-ui/react-tabs";import { ChevronLeft, MoreHorizontal, X } from "lucide-react";@@ -107,7 +107,6 @@ export function OptionsRail({ agent, onRetired, sample = false, width, onModelSaaria-label={t("society.card.options")}data-testid="agent-card-options"data-width={width}- style={{ "--ap-agent": agent.palette.primary } as CSSProperties}><PaneHeaderagent={agent}diff --git a/dodaios/ui/web/frontend/src/components/society/card/pane/agentPane.css b/dodaios/ui/web/frontend/src/components/society/card/pane/agentPane.cssindex 57e5188c46..e52bd1b1f4 100644--- a/dodaios/ui/web/frontend/src/components/society/card/pane/agentPane.css+++ b/dodaios/ui/web/frontend/src/components/society/card/pane/agentPane.css@@ -1,9 +1,8 @@/** The agent pane: one calm column for everything about one agent.*- * Chrome is neutral; the agent's own colour (`--ap-agent`, set from its- * palette on the root) only rings the large avatar. Every other colour is a- * theme token, so light and dark both follow the app. Content sits in soft+ * Chrome is neutral: the large avatar stands on its own, with no ring or+ * frame. Every colour is a theme token, so light and dark both follow the app. Content sits in soft* rounded cards with readable type (14px primary, 13px secondary, never* below 12px), buttons are fully round, and motion stays short and switches* off under reduced motion.@@ -48,9 +47,7 @@.ap-avatar {position: relative;flex-shrink: 0;- margin-bottom: 8px;- border-radius: 22px;- box-shadow: 0 0 0 2px hsl(var(--sidebar)), 0 0 0 4px var(--ap-agent, hsl(var(--border-strong)));+ margin-bottom: 10px;}.ap-name {@@ -245,7 +242,10 @@flex-direction: column;gap: 20px;overflow-y: auto;- padding: 6px 14px 20px;+ /* The same inset on every tab, whether or not it scrolls. */+ scrollbar-gutter: stable both-edges;+ scrollbar-width: thin;+ padding: 6px 8px 20px;animation: ap-in 180ms ease-out;}.ap-body[data-fill="true"] { gap: 14px; }diff --git a/dodaios/ui/web/frontend/src/components/society/chat/AgentChatPanel.tsx b/dodaios/ui/web/frontend/src/components/society/chat/AgentChatPanel.tsxindex 3ea699d30e..6ab0d15c85 100644--- a/dodaios/ui/web/frontend/src/components/society/chat/AgentChatPanel.tsx+++ b/dodaios/ui/web/frontend/src/components/society/chat/AgentChatPanel.tsx@@ -415,10 +415,12 @@ function JarvisChat({ agent, roster }: AgentChatPanelProps) {if (mode === "voice") {return (<div className="flex h-full min-h-0 flex-col" data-testid="society-chat" data-mode="voice">- <div className="grid shrink-0 grid-cols-[1fr_auto_1fr] items-center gap-2 px-4 py-2">+ {/* A flex row, not the chat header's grid: the screen-reader note is+ absolutely positioned, so in a grid the switch fell into the first+ 1fr track and stretched across it. */}+ <div className="flex shrink-0 justify-center px-4 pb-2"><span className="sr-only">{t("society.chat.voice_note")}</span><JarvisModeSwitch mode={mode} onPick={pickMode} />- <span aria-hidden /></div><VoiceStage /></div>@@ -426,8 +428,8 @@ function JarvisChat({ agent, roster }: AgentChatPanelProps) {}const header = (- <div className="grid shrink-0 grid-cols-[1fr_auto_1fr] items-center gap-2 px-4 py-2">- <div className="flex min-w-0 items-center gap-2">+ <div className="grid shrink-0 grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-2 px-4 pb-2">+ <div className="flex min-w-0 items-center gap-1"><ModelPicker /><EffortPicker /></div>@@ -588,7 +590,7 @@ function ModelPicker() {type="button"onClick={() => setProviderId(p.id)}className={cn(- "flex w-full items-center gap-2 px-2.5 py-1.5 text-left text-xs hover:bg-secondary",+ "flex w-full items-center gap-2 rounded-[10px] px-2.5 py-1.5 text-left text-[13px] hover:bg-secondary",chosen?.id === p.id && "bg-secondary",!p.connected && "opacity-50",)}@@ -610,7 +612,7 @@ function ModelPicker() {setOpen(false);}}className={cn(- "w-full px-2.5 py-1.5 text-left text-xs hover:bg-secondary",+ "w-full rounded-[10px] px-2.5 py-1.5 text-left text-[13px] hover:bg-secondary",draft.provider === chosen.id && !draft.model && "bg-secondary",)}>@@ -628,7 +630,7 @@ function ModelPicker() {}}title={m.note}className={cn(- "w-full px-2.5 py-1.5 text-left text-xs hover:bg-secondary",+ "w-full rounded-[10px] px-2.5 py-1.5 text-left text-[13px] hover:bg-secondary",draft.provider === chosen?.id && draft.model === m.id && "bg-secondary",)}>diff --git a/dodaios/ui/web/frontend/src/components/society/chat/AgentConversations.tsx b/dodaios/ui/web/frontend/src/components/society/chat/AgentConversations.tsxindex 7fdef4a90a..0566bb09f8 100644--- a/dodaios/ui/web/frontend/src/components/society/chat/AgentConversations.tsx+++ b/dodaios/ui/web/frontend/src/components/society/chat/AgentConversations.tsx@@ -68,7 +68,7 @@ export function AgentConversationsBar({ agentId, agentName, displayName }: {if (!rows.length) return null;return (<div- className="flex shrink-0 items-center justify-center gap-1.5 overflow-x-auto px-4 pb-2 [scrollbar-width:none]"+ className="as-chip-strip flex shrink-0 items-center gap-1.5 overflow-x-auto px-4 pb-2 [scrollbar-width:none]"data-testid="agent-conversations"title={t("society.conversations.hint")}>@@ -94,17 +94,14 @@ export function AgentConversationsBar({ agentId, agentName, displayName }: {data-state={row.waiting ? "waiting" : row.running ? "running" : "idle"}title={row.waiting ? t("society.conversations.waiting") : undefined}className={cn(- "flex h-7 shrink-0 items-center gap-1.5 rounded-full px-3 text-[12px] transition-colors hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",+ "flex h-8 shrink-0 items-center gap-1.5 rounded-full px-3.5 text-[13px] transition-colors hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",row.waiting ? "bg-warning/10 text-warning" : "bg-secondary/60 text-muted-foreground",)}>- <span- aria-hidden- className={cn(- "h-1.5 w-1.5 rounded-full",- row.waiting ? "bg-warning" : row.running ? "bg-success" : "bg-muted-foreground/50",- )}- />+ {/* A dot only when it says something: waiting on you, or working. */}+ {row.waiting || row.running ? (+ <span aria-hidden className={cn("h-1.5 w-1.5 rounded-full", row.waiting ? "bg-warning" : "bg-success")} />+ ) : null}{t("society.conversations.with").replace("{0}", name)}{row.waiting ? <span className="sr-only">{t("society.conversations.waiting")}</span>: row.running ? <span className="sr-only">{t("society.conversations.running")}</span> : null}diff --git a/dodaios/ui/web/frontend/src/components/society/chat/TeamLeadView.tsx b/dodaios/ui/web/frontend/src/components/society/chat/TeamLeadView.tsxindex 39a6083185..cc78879c1a 100644--- a/dodaios/ui/web/frontend/src/components/society/chat/TeamLeadView.tsx+++ b/dodaios/ui/web/frontend/src/components/society/chat/TeamLeadView.tsx@@ -195,8 +195,10 @@ export function TeamLeadView({ group, roster, onOpenAgent }: Props) {return (<section className="flex min-h-0 flex-1 flex-col bg-background" data-testid="team-lead-view">{/* Like an agent's chat: one name pill in the middle; the team's two- controls sit quietly on the right as words. */}- <header className="relative flex h-14 shrink-0 items-center justify-center gap-2 px-4">+ controls sit quietly on the right as words. They share the row in+ flow, so a long status truncates instead of running under them. */}+ <header className="flex h-14 shrink-0 items-center gap-2 px-4">+ <div className="flex min-w-0 flex-1 justify-center"><div className="as-name-pill" title={t("society.lead.role")}><span className="as-avatar">{lead ? <AgentSwatch agent={lead} size={24} /> : null}</span><span className="as-pill-name">{leadName}</span>@@ -205,7 +207,8 @@ export function TeamLeadView({ group, roster, onOpenAgent }: Props) {{status}</p></div>- <div className="absolute right-4 flex items-center gap-1.5">+ </div>+ <div className="flex shrink-0 items-center gap-1.5"><button type="button" onClick={openSetup} data-testid="team-lead-initiative" data-mode={mode}title={t(`society.lead.initiative_${mode}_hint`).replace("{0}", leadName)}className="as-pill-button h-8 bg-transparent px-3 font-normal text-muted-foreground hover:text-foreground">diff --git a/dodaios/ui/web/frontend/src/components/society/roster/RosterRail.tsx b/dodaios/ui/web/frontend/src/components/society/roster/RosterRail.tsxindex 8eae0f5e14..8f629162e6 100644--- a/dodaios/ui/web/frontend/src/components/society/roster/RosterRail.tsx+++ b/dodaios/ui/web/frontend/src/components/society/roster/RosterRail.tsx@@ -824,8 +824,8 @@ export function RosterRail({aria-current={heroLead.agentId === activeAgentId ? "true" : undefined}data-active={heroLead.agentId === activeAgentId ? "true" : undefined}data-testid="roster-lead">- <span className="as-avatar">- <AgentSwatch agent={heroLead} size={56} />+ <span className="as-avatar as-hero-face">+ <AgentSwatch agent={heroLead} size={60} /><StatusMark status={rosterStatus(heroLead, unread.has(heroLead.agentId))} />{shortcutOf(heroLead.agentId) !== null ? <span className="as-shortcut-badge" aria-hidden>{shortcutOf(heroLead.agentId)}</span> : null}</span>