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: compact agent effort badge layout
[._.]/ Adam Eivyd110a1122f92
diff --git a/client/src/components/cos/tabs/AgentCard.jsx b/client/src/components/cos/tabs/AgentCard.jsxindex f0a7d07b28..4685682261 100644--- a/client/src/components/cos/tabs/AgentCard.jsx+++ b/client/src/components/cos/tabs/AgentCard.jsx@@ -688,14 +688,6 @@ export default function AgentCard({ agent, onPause, onKill, onDelete, onResume,{agent.metadata.model.replace('claude-', '').replace(/-\d+$/, '')}</span>)}- {agent.metadata?.effort && (- <span- className="px-2 py-0.5 text-xs rounded bg-orange-500/20 text-orange-400 shrink-0"- title="Reasoning effort used for this invocation"- >- Effort: {agent.metadata.effort}- </span>- )}{!inactive && (// 'stalled' is the one phase that does NOT pulse: the run is still// alive but has ignored every nudge, and an animated badge reads as@@ -854,8 +846,16 @@ export default function AgentCard({ agent, onPause, onKill, onDelete, onResume,)}{/* Agent configuration badges */}- {CONFIG_BADGE_KEYS.some(key => agent.metadata?.[key]) && (+ {(CONFIG_BADGE_KEYS.some(key => agent.metadata?.[key]) || agent.metadata?.effort) && (<div className="flex items-center gap-1.5 flex-wrap mb-2">+ {agent.metadata?.effort && (+ <span+ className="flex items-center px-1.5 py-0.5 text-[11px] rounded bg-orange-500/15 text-orange-400"+ title="Reasoning effort used for this invocation"+ >+ Effort: {agent.metadata.effort}+ </span>+ )}{/* A claim run self-manages its `claim/<item>` worktree and its own forgehandoff, so CoS keeps configUseWorktree/configOpenPR off to avoidnesting a second worktree. Badge what it actually does rather thandiff --git a/client/src/components/cos/tabs/AgentCard.test.jsx b/client/src/components/cos/tabs/AgentCard.test.jsxindex 94252f4ea7..86df3745f9 100644--- a/client/src/components/cos/tabs/AgentCard.test.jsx+++ b/client/src/components/cos/tabs/AgentCard.test.jsx@@ -146,6 +146,30 @@ describe('AgentCard runtime presentation', () => {expect(screen.getByRole('link', { name: /Open Shell/ })).toHaveAttribute('href', '/shell?session=sess-abcdef123');});+ it('keeps effort beside the worktree and PR configuration badges', () => {+ render(+ <MemoryRouter>+ <AgentCard+ agent={{+ ...agent,+ metadata: {+ ...agent.metadata,+ effort: 'medium',+ configUseWorktree: true,+ configOpenPR: true,+ },+ }}+ completed+ />+ </MemoryRouter>+ );++ const effort = screen.getByText('Effort: medium');+ expect(effort).toHaveClass('text-[11px]');+ expect(effort.closest('div')).toHaveTextContent('Worktree');+ expect(effort.closest('div')).toHaveTextContent('PR');+ });+it('distinguishes a live process, a zombie, and missing process stats', async () => {const runningAgent = { ...runningAt(30_000), pid: 4242 };api.getCosAgentStats.mockResolvedValueOnce({ active: true, pid: 4242, state: 'running', cpu: 12.3, memoryMb: 64 });