Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
feat: full-bleed 3D CoS avatar background with overlay UI
Adam Eivy6ab7caf1aeca
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 1f0fb7f45b..20e02d6a02 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -4,3 +4,5 @@- Release workflow no longer silently skips creating the GitHub Release when something else pushed the version tag before the workflow ran.- Release-notes style guide tightened — entries should be one sentence per change in user-facing language, not code-review prose with file paths and internal symbols.+- Chief of Staff 3D avatars (Cyber, Sigil, Esoteric, Nexus, Muse) now fill the agent panel as a full-bleed background, with the title, status, and controls overlaying the scene instead of sharing a column with it.+- Autonomy level buttons in the CoS Config tab now use higher-contrast active states so the selected level is obvious at a glance.diff --git a/client/src/components/cos/CoSAvatarFrame.jsx b/client/src/components/cos/CoSAvatarFrame.jsxindex b87470d057..8b3c548104 100644--- a/client/src/components/cos/CoSAvatarFrame.jsx+++ b/client/src/components/cos/CoSAvatarFrame.jsx@@ -1,7 +1,10 @@-export default function CoSAvatarFrame({ children, label = 'Interactive 3D avatar. Drag to rotate.' }) {+export default function CoSAvatarFrame({ children, label = 'Interactive 3D avatar. Drag to rotate.', background = false }) {return (<div- className="relative w-full max-w-[8rem] lg:max-w-[12rem] aspect-[5/6] cursor-grab active:cursor-grabbing touch-none"+ className={background+ ? 'relative w-full h-full min-h-full cursor-grab active:cursor-grabbing touch-none'+ : 'relative w-full max-w-[8rem] lg:max-w-[12rem] aspect-[5/6] cursor-grab active:cursor-grabbing touch-none'+ }title="Drag to rotate"role="group"aria-label={label}diff --git a/client/src/components/cos/CoSBackgroundCamera.jsx b/client/src/components/cos/CoSBackgroundCamera.jsxnew file mode 100644index 0000000000..b2c488542e--- /dev/null+++ b/client/src/components/cos/CoSBackgroundCamera.jsx@@ -0,0 +1,23 @@+import { useEffect } from 'react';+import { useThree } from '@react-three/fiber';++const COMPACT_FRAME_HEIGHT = 128 * 6 / 5;+const DESKTOP_FRAME_HEIGHT = 192 * 6 / 5;++export default function CoSBackgroundCamera({ enabled = false, x = 0, y = 0, z = 3.5 }) {+ const { camera, size } = useThree();++ useEffect(() => {+ if (!enabled) return;++ const oldFrameHeight = window.innerWidth >= 1024+ ? DESKTOP_FRAME_HEIGHT+ : COMPACT_FRAME_HEIGHT;+ const distanceScale = Math.max(1, size.height / oldFrameHeight);++ camera.position.set(x, y, z * distanceScale);+ camera.updateProjectionMatrix();+ }, [camera, enabled, size.height, x, y, z]);++ return null;+}diff --git a/client/src/components/cos/CyberCoSAvatar.jsx b/client/src/components/cos/CyberCoSAvatar.jsxindex 30efab5496..05a6ee663b 100644--- a/client/src/components/cos/CyberCoSAvatar.jsx+++ b/client/src/components/cos/CyberCoSAvatar.jsx@@ -5,6 +5,7 @@ import * as THREE from 'three';import { AGENT_STATES } from './constants';import CoSAvatarOrbitControls from './CoSAvatarOrbitControls';import CoSAvatarFrame from './CoSAvatarFrame';+import CoSBackgroundCamera from './CoSBackgroundCamera';// Holographic wireframe skull/head geometryfunction CyberHead({ color, state, speaking }) {@@ -398,12 +399,14 @@ function GroundGlow({ color }) {);}-function Scene({ state, speaking }) {+function Scene({ state, speaking, background }) {const stateConfig = AGENT_STATES[state] || AGENT_STATES.sleeping;const color = stateConfig.color;return (<>+ <CoSBackgroundCamera enabled={background} z={3.5} />+{/* Lighting */}<ambientLight intensity={0.1} /><pointLight position={[2, 3, 4]} intensity={0.5} color={color} />@@ -433,15 +436,15 @@ function Scene({ state, speaking }) {);}-export default function CyberCoSAvatar({ state, speaking }) {+export default function CyberCoSAvatar({ state, speaking, background = false }) {return (- <CoSAvatarFrame label="Cyber 3D avatar. Drag to rotate.">+ <CoSAvatarFrame label="Cyber 3D avatar. Drag to rotate." background={background}><Canvascamera={{ position: [0, 0, 3.5], fov: 45 }}- style={{ background: 'transparent' }}+ style={{ width: '100%', height: '100%', background: 'transparent' }}gl={{ alpha: true, antialias: true }}>- <Scene state={state} speaking={speaking} />+ <Scene state={state} speaking={speaking} background={background} /></Canvas></CoSAvatarFrame>);diff --git a/client/src/components/cos/EsotericCoSAvatar.jsx b/client/src/components/cos/EsotericCoSAvatar.jsxindex d89b91df91..d4fad4ef96 100644--- a/client/src/components/cos/EsotericCoSAvatar.jsx+++ b/client/src/components/cos/EsotericCoSAvatar.jsx@@ -5,6 +5,7 @@ import * as THREE from 'three';import { AGENT_STATES } from './constants';import CoSAvatarOrbitControls from './CoSAvatarOrbitControls';import CoSAvatarFrame from './CoSAvatarFrame';+import CoSBackgroundCamera from './CoSBackgroundCamera';// Central mystical core - an artifact of unknown originfunction EsotericCore({ color, state, speaking }) {@@ -177,12 +178,14 @@ function FloatingRunes({ color }) {}-function Scene({ state, speaking }) {+function Scene({ state, speaking, background }) {const stateConfig = AGENT_STATES[state] || AGENT_STATES.sleeping;const color = stateConfig.color;return (<>+ <CoSBackgroundCamera enabled={background} z={5} />+<ambientLight intensity={0.2} /><pointLight position={[10, 10, 10]} intensity={1} color={color} /><pointLight position={[-10, -10, -10]} intensity={0.5} color="#4c1d95" />@@ -200,15 +203,15 @@ function Scene({ state, speaking }) {);}-export default function EsotericCoSAvatar({ state, speaking }) {+export default function EsotericCoSAvatar({ state, speaking, background = false }) {return (- <CoSAvatarFrame label="Esoteric 3D avatar. Drag to rotate.">+ <CoSAvatarFrame label="Esoteric 3D avatar. Drag to rotate." background={background}><Canvascamera={{ position: [0, 0, 5], fov: 45 }}- style={{ background: 'transparent' }}+ style={{ width: '100%', height: '100%', background: 'transparent' }}gl={{ alpha: true, antialias: true }}>- <Scene state={state} speaking={speaking} />+ <Scene state={state} speaking={speaking} background={background} /></Canvas></CoSAvatarFrame>);diff --git a/client/src/components/cos/MuseCoSAvatar.jsx b/client/src/components/cos/MuseCoSAvatar.jsxindex f96fbc6226..bfa2f6380c 100644--- a/client/src/components/cos/MuseCoSAvatar.jsx+++ b/client/src/components/cos/MuseCoSAvatar.jsx@@ -5,6 +5,7 @@ import * as THREE from 'three';import { AGENT_STATES } from './constants';import CoSAvatarOrbitControls from './CoSAvatarOrbitControls';import CoSAvatarFrame from './CoSAvatarFrame';+import CoSBackgroundCamera from './CoSBackgroundCamera';const MODEL_URL = '/api/avatar/model.glb';@@ -125,12 +126,14 @@ function StateEffects({ color, state }) {return <Sparkles count={15} scale={3} size={1.5} speed={0.3} color={color} />;}-function Scene({ state, speaking }) {+function Scene({ state, speaking, background }) {const stateConfig = AGENT_STATES[state] || AGENT_STATES.sleeping;const color = stateConfig.color;return (<>+ <CoSBackgroundCamera enabled={background} z={3.3} />+<ambientLight intensity={0.25} /><pointLight position={[2, 3, 4]} intensity={0.6} color={color} /><pointLight position={[-2, 1, 3]} intensity={0.3} color="#f472b6" />@@ -144,9 +147,9 @@ function Scene({ state, speaking }) {);}-function MissingModelHint() {+function MissingModelHint({ background = false }) {return (- <div className="relative w-full max-w-[8rem] lg:max-w-[12rem] aspect-[5/6] flex flex-col items-center justify-center rounded-lg border border-port-border bg-port-card/60 text-center p-3">+ <div className={`${background ? 'relative w-full h-full min-h-full' : 'relative w-full max-w-[8rem] lg:max-w-[12rem] aspect-[5/6]'} flex flex-col items-center justify-center rounded-lg border border-port-border bg-port-card/60 text-center p-3`}><div className="text-3xl mb-2">🎭</div><div className="text-xs font-semibold text-slate-200 mb-1">No avatar model</div><div className="text-[10px] text-slate-400 mb-1.5">Drop a GLB at</div>@@ -157,15 +160,15 @@ function MissingModelHint() {);}-function LoadingPlaceholder() {+function LoadingPlaceholder({ background = false }) {return (- <div className="relative w-full max-w-[8rem] lg:max-w-[12rem] aspect-[5/6] flex items-center justify-center">+ <div className={`${background ? 'relative w-full h-full min-h-full' : 'relative w-full max-w-[8rem] lg:max-w-[12rem] aspect-[5/6]'} flex items-center justify-center`}><div className="text-xs text-slate-500 animate-pulse">loading…</div></div>);}-export default function MuseCoSAvatar({ state, speaking }) {+export default function MuseCoSAvatar({ state, speaking, background = false }) {// null = checking, true = GLB present, false = missingconst [modelPresent, setModelPresent] = useState(null);@@ -181,18 +184,18 @@ export default function MuseCoSAvatar({ state, speaking }) {return () => { cancelled = true; };}, []);- if (modelPresent === null) return <LoadingPlaceholder />;- if (!modelPresent) return <MissingModelHint />;+ if (modelPresent === null) return <LoadingPlaceholder background={background} />;+ if (!modelPresent) return <MissingModelHint background={background} />;return (- <CoSAvatarFrame label="Muse 3D avatar. Drag to rotate.">+ <CoSAvatarFrame label="Muse 3D avatar. Drag to rotate." background={background}><Canvascamera={{ position: [0, 0, 3.3], fov: 45 }}- style={{ background: 'transparent' }}+ style={{ width: '100%', height: '100%', background: 'transparent' }}gl={{ alpha: true, antialias: true }}><Suspense fallback={null}>- <Scene state={state} speaking={speaking} />+ <Scene state={state} speaking={speaking} background={background} /></Suspense></Canvas></CoSAvatarFrame>diff --git a/client/src/components/cos/NexusCoSAvatar.jsx b/client/src/components/cos/NexusCoSAvatar.jsxindex 8ada0a4ca0..cc8fe891ad 100644--- a/client/src/components/cos/NexusCoSAvatar.jsx+++ b/client/src/components/cos/NexusCoSAvatar.jsx@@ -5,6 +5,7 @@ import * as THREE from 'three';import { AGENT_STATES } from './constants';import CoSAvatarOrbitControls from './CoSAvatarOrbitControls';import CoSAvatarFrame from './CoSAvatarFrame';+import CoSBackgroundCamera from './CoSBackgroundCamera';// Central brain-like neural corefunction NeuralCore({ color, state, speaking }) {@@ -332,7 +333,7 @@ function StatusRing({ color, state }) {);}-function Scene({ state, speaking }) {+function Scene({ state, speaking, background }) {const stateConfig = AGENT_STATES[state] || AGENT_STATES.sleeping;const color = stateConfig.color;@@ -341,6 +342,8 @@ function Scene({ state, speaking }) {return (<>+ <CoSBackgroundCamera enabled={background} y={0.2} z={3.5} />+<ambientLight intensity={0.1} /><pointLight position={[3, 2, 3]} intensity={0.6} color={color} /><pointLight position={[-2, -2, 2]} intensity={0.3} color="#6366f1" />@@ -366,15 +369,15 @@ function Scene({ state, speaking }) {);}-export default function NexusCoSAvatar({ state, speaking }) {+export default function NexusCoSAvatar({ state, speaking, background = false }) {return (- <CoSAvatarFrame label="Nexus 3D avatar. Drag to rotate.">+ <CoSAvatarFrame label="Nexus 3D avatar. Drag to rotate." background={background}><Canvascamera={{ position: [0, 0.2, 3.5], fov: 45 }}- style={{ background: 'transparent' }}+ style={{ width: '100%', height: '100%', background: 'transparent' }}gl={{ alpha: true, antialias: true }}>- <Scene state={state} speaking={speaking} />+ <Scene state={state} speaking={speaking} background={background} /></Canvas></CoSAvatarFrame>);diff --git a/client/src/components/cos/SigilCoSAvatar.jsx b/client/src/components/cos/SigilCoSAvatar.jsxindex fdc4c0eb04..670a7a78ce 100644--- a/client/src/components/cos/SigilCoSAvatar.jsx+++ b/client/src/components/cos/SigilCoSAvatar.jsx@@ -5,6 +5,7 @@ import * as THREE from 'three';import { AGENT_STATES } from './constants';import CoSAvatarOrbitControls from './CoSAvatarOrbitControls';import CoSAvatarFrame from './CoSAvatarFrame';+import CoSBackgroundCamera from './CoSBackgroundCamera';function SigilCore({ color, state, speaking }) {const coreRef = useRef();@@ -248,7 +249,7 @@ function ScanBeam({ color, state }) {);}-function Scene({ state, speaking }) {+function Scene({ state, speaking, background }) {const stateConfig = AGENT_STATES[state] || AGENT_STATES.sleeping;const color = stateConfig.color;@@ -258,6 +259,8 @@ function Scene({ state, speaking }) {return (<>+ <CoSBackgroundCamera enabled={background} y={0.1} z={3.7} />+<ambientLight intensity={0.08} /><pointLight position={[2.2, 2.8, 3.2]} intensity={0.6} color={color} /><pointLight position={[-2.5, -1.5, 3]} intensity={0.35} color="#8b5cf6" />@@ -281,17 +284,16 @@ function Scene({ state, speaking }) {);}-export default function SigilCoSAvatar({ state, speaking }) {+export default function SigilCoSAvatar({ state, speaking, background = false }) {return (- <CoSAvatarFrame label="Sigil 3D avatar. Drag to rotate.">+ <CoSAvatarFrame label="Sigil 3D avatar. Drag to rotate." background={background}><Canvascamera={{ position: [0, 0.1, 3.7], fov: 45 }}- style={{ background: 'transparent' }}+ style={{ width: '100%', height: '100%', background: 'transparent' }}gl={{ alpha: true, antialias: true }}>- <Scene state={state} speaking={speaking} />+ <Scene state={state} speaking={speaking} background={background} /></Canvas></CoSAvatarFrame>);}-diff --git a/client/src/components/cos/tabs/ConfigTab.jsx b/client/src/components/cos/tabs/ConfigTab.jsxindex 4ba2b9698d..e21dcb4faa 100644--- a/client/src/components/cos/tabs/ConfigTab.jsx+++ b/client/src/components/cos/tabs/ConfigTab.jsx@@ -10,20 +10,20 @@ import useProviderModels from '../../../hooks/useProviderModels';// Color classes for autonomy level buttonsconst LEVEL_COLORS = {green: {- base: 'border-green-500/30 bg-green-500/10 text-green-400 hover:bg-green-500/20',- active: 'ring-2 ring-green-500 border-green-500 bg-green-500/20'+ base: 'border-green-500/40 bg-green-500/5 text-green-600 hover:bg-green-500/10',+ active: 'ring-2 ring-green-600 border-green-600 bg-green-500 text-white shadow-sm'},blue: {base: 'border-blue-500/30 bg-blue-500/10 text-blue-400 hover:bg-blue-500/20',- active: 'ring-2 ring-blue-500 border-blue-500 bg-blue-500/20'+ active: 'ring-2 ring-blue-600 border-blue-600 bg-blue-500 text-white shadow-sm'},yellow: {base: 'border-yellow-500/30 bg-yellow-500/10 text-yellow-400 hover:bg-yellow-500/20',- active: 'ring-2 ring-yellow-500 border-yellow-500 bg-yellow-500/20'+ active: 'ring-2 ring-yellow-500 border-yellow-500 bg-yellow-400 text-yellow-950 shadow-sm'},red: {base: 'border-red-500/30 bg-red-500/10 text-red-400 hover:bg-red-500/20',- active: 'ring-2 ring-red-500 border-red-500 bg-red-500/20'+ active: 'ring-2 ring-red-600 border-red-600 bg-red-500 text-white shadow-sm'}};diff --git a/client/src/pages/ChiefOfStaff.jsx b/client/src/pages/ChiefOfStaff.jsxindex de2008b873..6186f0b00a 100644--- a/client/src/pages/ChiefOfStaff.jsx+++ b/client/src/pages/ChiefOfStaff.jsx@@ -40,6 +40,8 @@ import {} from '../components/cos';import { resolveDynamicAvatar } from '../components/cos/constants';+const CANVAS_AVATAR_STYLES = new Set(['cyber', 'sigil', 'esoteric', 'nexus', 'muse']);+export default function ChiefOfStaff() {const { tab } = useParams();const navigate = useNavigate();@@ -416,6 +418,27 @@ export default function ChiefOfStaff() {el.scrollBy({ left: direction === 'left' ? -scrollAmount : scrollAmount, behavior: 'smooth' });}, []);+ const hasCanvasAvatar = CANVAS_AVATAR_STYLES.has(avatarStyle);++ const renderAvatar = (background = false) => {+ if (avatarStyle === 'cyber') {+ return <CyberCoSAvatar state={agentState} speaking={speaking} background={background} />;+ }+ if (avatarStyle === 'sigil') {+ return <SigilCoSAvatar state={agentState} speaking={speaking} background={background} />;+ }+ if (avatarStyle === 'esoteric') {+ return <EsotericCoSAvatar state={agentState} speaking={speaking} background={background} />;+ }+ if (avatarStyle === 'nexus') {+ return <NexusCoSAvatar state={agentState} speaking={speaking} background={background} />;+ }+ if (avatarStyle === 'muse') {+ return <MuseCoSAvatar state={agentState} speaking={speaking} background={background} />;+ }+ return <CoSCharacter state={agentState} speaking={speaking} />;+ };+if (loading) {return (<div className="flex items-center justify-center h-64">@@ -568,11 +591,11 @@ export default function ChiefOfStaff() {{/* Collapsible Content */}<divid="cos-agent-panel"- className={`${agentPanelCollapsed ? 'hidden' : 'flex'} lg:flex flex-1 min-w-0`}+ className={`${agentPanelCollapsed ? 'hidden' : 'flex'} lg:flex min-w-0 relative overflow-hidden ${hasCanvasAvatar ? 'flex-none min-h-[180px] sm:min-h-[190px] md:min-h-[190px] lg:h-[min(460px,calc(100vh-1rem))] xl:h-[min(620px,calc(100vh-1rem))]' : 'flex-1'}`}>{/* Background Effects */}<div- className="absolute inset-0 pointer-events-none"+ className="absolute inset-0 z-0 pointer-events-none"style={{background: `radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),@@ -581,8 +604,14 @@ export default function ChiefOfStaff() {}}/>- {/* Avatar Column - half width on mobile, full on desktop */}- <div className="flex-1 min-w-0 lg:flex-none flex flex-col items-center p-2 lg:p-8 relative z-10">+ {hasCanvasAvatar && (+ <div className="absolute inset-0 z-[1] -translate-x-16 -translate-y-1 sm:translate-x-0 sm:-translate-y-6 md:-translate-y-8 lg:-translate-y-28 xl:-translate-y-36">+ {renderAvatar(true)}+ </div>+ )}++ {/* Avatar UI overlays the full-width canvas stage for 3D styles. */}+ <div className={`${hasCanvasAvatar ? 'absolute inset-y-0 left-0 w-[46%] lg:relative lg:inset-auto lg:w-full lg:flex-none p-2 sm:p-3 lg:p-8' : 'relative flex-1 min-w-0 lg:flex-none p-2 lg:p-8'} min-w-0 flex flex-col items-center z-10`}><div className="hidden lg:block text-sm font-semibold tracking-widest uppercase text-slate-400 mb-1 font-mono">Digital Assistant</div>@@ -598,22 +627,12 @@ export default function ChiefOfStaff() {Chief of Staff</h1>- {avatarStyle === 'cyber'- ? <CyberCoSAvatar state={agentState} speaking={speaking} />- : avatarStyle === 'sigil'- ? <SigilCoSAvatar state={agentState} speaking={speaking} />- : avatarStyle === 'esoteric'- ? <EsotericCoSAvatar state={agentState} speaking={speaking} />- : avatarStyle === 'nexus'- ? <NexusCoSAvatar state={agentState} speaking={speaking} />- : avatarStyle === 'muse'- ? <MuseCoSAvatar state={agentState} speaking={speaking} />- : <CoSCharacter state={agentState} speaking={speaking} />- }+ {!hasCanvasAvatar && renderAvatar()}+ {hasCanvasAvatar && <div className="flex-none h-[5.75rem] sm:h-[4rem] md:h-[3rem] lg:h-[11rem] xl:h-[12rem]" aria-hidden="true" />}<div className="hidden lg:block"><StateLabel state={agentState} /></div>- <div className="hidden sm:block">+ <div className={`${hasCanvasAvatar ? 'sm:-mt-4 md:-mt-6 lg:mt-0' : ''} hidden sm:block`}><StatusBubble message={statusMessage} countdown={evalCountdown} /></div><div className="hidden lg:block">@@ -621,7 +640,7 @@ export default function ChiefOfStaff() {</div>{/* Control Buttons */}- <div className="flex items-center gap-1.5 sm:gap-3 mt-2 lg:mt-6">+ <div className={`${hasCanvasAvatar ? 'hidden lg:flex lg:mt-6' : 'flex mt-2 lg:mt-6'} items-center gap-1.5 sm:gap-3`}>{status?.running ? (<buttononClick={handleStop}@@ -645,7 +664,7 @@ export default function ChiefOfStaff() {</div>{/* Mobile Stats Grid - shows core stats in compact 2-column layout */}- <div className="flex-1 grid grid-cols-2 gap-1.5 p-2 lg:hidden relative z-10 content-center">+ <div className={`${hasCanvasAvatar ? 'ml-[46%] w-[54%] flex-none self-start content-start' : 'flex-1 content-center'} grid grid-cols-2 gap-1.5 p-2 lg:hidden relative z-10`}><StatCardlabel="Active"value={activeAgentCount}@@ -671,10 +690,10 @@ export default function ChiefOfStaff() {icon={<AlertCircle className={`w-4 h-4 ${hasIssues ? 'text-port-error' : 'text-gray-500'}`} />}compact/>- {/* Learning Health - spans 2 columns on mobile for visibility */}+ {/* Learning Health */}<buttononClick={() => navigate('/cos/learning')}- className={`col-span-2 bg-port-card/80 border rounded px-2 py-1.5 flex items-center gap-2 transition-all ${+ className={`bg-port-card/80 border rounded px-2 py-1.5 flex items-center gap-2 transition-all ${learningSummary?.status === 'critical' ? 'border-port-error shadow-md shadow-port-error/20' :learningSummary?.status === 'warning' ? 'border-port-warning' :'border-port-border'@@ -689,7 +708,7 @@ export default function ChiefOfStaff() {<div className="flex-1 min-w-0"><div className="text-[10px] text-gray-500">Learning</div><div className="text-sm font-bold text-white flex items-center gap-2">- {learningSummary?.overallSuccessRate != null ? `${learningSummary.overallSuccessRate}% success` : 'No data'}+ {learningSummary?.overallSuccessRate != null ? `${learningSummary.overallSuccessRate}%` : 'No data'}{learningSummary?.skipped > 0 && (<span className="text-[9px] text-port-error font-normal">({learningSummary.skipped} skipped)@@ -698,6 +717,31 @@ export default function ChiefOfStaff() {</div></div></button>+ {status?.running ? (+ <button+ onClick={handleStop}+ className="bg-red-500/20 hover:bg-red-500/30 text-red-400 border border-red-400/30 rounded px-2 py-1.5 flex items-center gap-2 transition-colors min-h-[52px]"+ aria-label="Stop Chief of Staff agent"+ >+ <Square size={16} className="shrink-0" aria-hidden="true" />+ <div className="flex-1 min-w-0 text-left">+ <div className="text-[10px] text-gray-600">Agent</div>+ <div className="text-sm font-bold text-red-600">Stop</div>+ </div>+ </button>+ ) : (+ <button+ onClick={handleStart}+ className="bg-emerald-500/20 hover:bg-emerald-500/30 text-emerald-500 border border-emerald-500/30 rounded px-2 py-1.5 flex items-center gap-2 transition-colors min-h-[52px]"+ aria-label="Start Chief of Staff agent"+ >+ <Play size={16} className="shrink-0" aria-hidden="true" />+ <div className="flex-1 min-w-0 text-left">+ <div className="text-[10px] text-emerald-600/80">Agent</div>+ <div className="text-sm font-bold">Start</div>+ </div>+ </button>+ )}</div></div></div>