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: show typing indicator in mind chat
Adam Eivy55b40c730596
diff --git a/client/src/components/cos/tabs/MindTab.jsx b/client/src/components/cos/tabs/MindTab.jsxindex 0ddd47f656..2be494b21b 100644--- a/client/src/components/cos/tabs/MindTab.jsx+++ b/client/src/components/cos/tabs/MindTab.jsx@@ -65,6 +65,25 @@ const eventText = (event) => {return null;};+const MindTypingIndicator = () => (+ <span+ data-testid="mind-typing-indicator"+ role="status"+ aria-label="Chief of Staff is typing"+ className="inline-flex items-center gap-0.5"+ >+ <span className="sr-only">Chief of Staff is typing</span>+ {[0, 1, 2].map((index) => (+ <span+ key={index}+ aria-hidden="true"+ className="h-1.5 w-1.5 animate-bounce rounded-full bg-current motion-reduce:animate-none"+ style={{ animationDelay: `${index * 120}ms` }}+ />+ ))}+ </span>+);+const mergeEvents = (previous, incoming) => {const byId = new Map(previous.map((event) => [event.eventId, event]));for (const event of incoming) byId.set(event.eventId, event);@@ -550,7 +569,7 @@ export default function MindTab() {<div className="min-w-0"><h3 className="truncate text-sm font-semibold text-port-text">Chief of Staff</h3><p className="truncate text-[11px] text-port-text-muted">- {state?.pauseReason || (state?.status === 'thinking' ? 'Thinking…' : state?.started ? 'Available' : 'Not started')}+ {state?.pauseReason || (state?.status === 'thinking' ? <MindTypingIndicator /> : state?.started ? 'Available' : 'Not started')}{state?.queuedMessageCount > 0 ? ` · ${state.queuedMessageCount} queued` : ''}{mind?.profile?.model ? ` · ${mind.profile.model}` : ''}</p>diff --git a/client/src/components/cos/tabs/MindTab.test.jsx b/client/src/components/cos/tabs/MindTab.test.jsxindex 3f3be4236f..4ed5de7782 100644--- a/client/src/components/cos/tabs/MindTab.test.jsx+++ b/client/src/components/cos/tabs/MindTab.test.jsx@@ -357,6 +357,18 @@ describe('MindTab', () => {expect(screen.getAllByRole('button', { name: /chief of staff/i })).toHaveLength(1);});+ it('shows a typing indicator in the chat header while the mind is thinking', async () => {+ api.getPersistentMind.mockResolvedValue(response({+ state: { enabled: true, started: true, status: 'thinking', pauseReason: null, activeTurnId: 'mind-turn-1' },+ }));+ renderTab();++ const typingIndicator = await screen.findByRole('status', { name: 'Chief of Staff is typing' });+ expect(typingIndicator).toHaveAttribute('data-testid', 'mind-typing-indicator');+ expect(typingIndicator.querySelectorAll('[aria-hidden="true"]')).toHaveLength(3);+ expect(within(screen.getByTestId('mind-chat')).queryByText('Thinking…')).not.toBeInTheDocument();+ });+it('animates active thought status and shows context, system, and loaded-model telemetry', async () => {api.getPersistentMind.mockResolvedValue(response({state: { enabled: true, started: true, status: 'thinking', pauseReason: null, activeTurnId: 'mind-turn-1' },