Skip to content

The agent that grows with you

fix: distinguish the live agent dock with a themed surface

Teknium4aad9b11b165
diff --git a/ui-tui/src/__tests__/agentsDock.test.tsx b/ui-tui/src/__tests__/agentsDock.test.tsx
index 24208783a82..378c2885515 100644
--- a/ui-tui/src/__tests__/agentsDock.test.tsx
+++ b/ui-tui/src/__tests__/agentsDock.test.tsx
@@ -5,9 +5,11 @@ import React from 'react'
import stripAnsi from 'strip-ansi'
import { expect, it } from 'vitest'
+import { renderToScreen } from '../../packages/hermes-ink/src/ink/render-to-screen.js'
+import { cellAtIndex } from '../../packages/hermes-ink/src/ink/screen.js'
import { AgentsPanelView } from '../components/agentsPanel.js'
import { buildAgentRows, dockRowLimit } from '../lib/agentRows.js'
-import { DEFAULT_THEME } from '../theme.js'
+import { DARK_THEME, DEFAULT_THEME, LIGHT_THEME } from '../theme.js'
import type { SubagentProgress } from '../types.js'
const agent = (id: string): SubagentProgress => ({
@@ -56,6 +58,15 @@ it('bounds painted chrome by viewport while retaining true live count and activi
}
expect(dockRowLimit(14)).toBeLessThan(dockRowLimit(40))
+
+ for (const t of [DARK_THEME, LIGHT_THEME]) {
+ const rows = buildAgentRows(agents, [], 45000, dockRowLimit(20))
+ const { screen, height } = renderToScreen(<AgentsPanelView cols={80} {...rows} t={t} />, 80)
+ // Ink marks fills in the low style bit: even blank edge cells must paint.
+ const filled = Array.from({ length: height * 80 }, (_, i) => cellAtIndex(screen, i).styleId & 1)
+
+ expect(filled.every(Boolean)).toBe(true)
+ }
})
it('deduplicates async batches and hides settled history without dropping live work', () => {
diff --git a/ui-tui/src/components/agentsPanel.tsx b/ui-tui/src/components/agentsPanel.tsx
index a338925d19c..76e102a9a4b 100644
--- a/ui-tui/src/components/agentsPanel.tsx
+++ b/ui-tui/src/components/agentsPanel.tsx
@@ -6,6 +6,7 @@ import { useAgentRoster } from '../app/agentRoster.js'
import { patchOverlayState } from '../app/overlayStore.js'
import { $uiState } from '../app/uiStore.js'
import { type AgentRows, buildAgentRows, dockRowLimit } from '../lib/agentRows.js'
+import { mix } from '../lib/color.js'
import { statusGlyph } from '../lib/subagentGlyph.js'
import { fmtDuration } from '../lib/subagentTree.js'
import { compactPreview } from '../lib/text.js'
@@ -15,7 +16,7 @@ export function AgentsPanelView({ cols, hidden, rows, running, t }: AgentRows &
if (!running) {return null}
return (
- <Box flexDirection="column" flexShrink={0} width={cols}>
+ <Box backgroundColor={mix(t.color.statusBg, t.color.shellDollar, 0.12)} flexDirection="column" flexShrink={0} width={cols}>
<Text bold color={t.color.accent} onClick={() => patchOverlayState({ agents: true })} wrap="truncate-end">
{`▾ ${running} live agents${hidden ? ` · +${hidden} more` : ''} · Ctrl+T expand`}
</Text>