From b488dccce1f3c52a73e185a5b936c6d2d48affee Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Mon, 20 Jul 2026 16:27:09 -0700 Subject: [PATCH] fix(dashboard): drop diff status from bucket counts --- .../src/components/dashboard/useAgentBucketCounts.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/renderer/src/components/dashboard/useAgentBucketCounts.ts b/src/renderer/src/components/dashboard/useAgentBucketCounts.ts index 12f6d9f1c04..0762c0e1c9e 100644 --- a/src/renderer/src/components/dashboard/useAgentBucketCounts.ts +++ b/src/renderer/src/components/dashboard/useAgentBucketCounts.ts @@ -1,7 +1,7 @@ import { useMemo } from 'react' import { useAppStore } from '@/store' import type { DashboardBucket } from '../../../../shared/dashboard-snapshot' -import { buildDashboardSnapshot, type DashboardSnapshotState } from './build-dashboard-snapshot' +import { buildDashboardSnapshot } from './build-dashboard-snapshot' export type AgentBucketCounts = Record @@ -25,7 +25,6 @@ export function useAgentBucketCounts(): AgentBucketCounts { const terminalLayoutsByTabId = useAppStore((s) => s.terminalLayoutsByTabId) const ptyIdsByTabId = useAppStore((s) => s.ptyIdsByTabId) const runtimePaneTitlesByTabId = useAppStore((s) => s.runtimePaneTitlesByTabId) - const gitStatusByWorktree = useAppStore((s) => s.gitStatusByWorktree) const agentStatusEpoch = useAppStore((s) => s.agentStatusEpoch) return useMemo(() => { @@ -41,8 +40,9 @@ export function useAgentBucketCounts(): AgentBucketCounts { terminalLayoutsByTabId, ptyIdsByTabId, runtimePaneTitlesByTabId, - gitStatusByWorktree - } as DashboardSnapshotState, + // Counts do not render acknowledgement state, so avoid subscribing the sidebar to it. + acknowledgedAgentsByPaneKey: {} + }, Date.now() ) if (snapshot.cards.length === 0) { @@ -67,7 +67,6 @@ export function useAgentBucketCounts(): AgentBucketCounts { terminalLayoutsByTabId, ptyIdsByTabId, runtimePaneTitlesByTabId, - gitStatusByWorktree, agentStatusEpoch ]) }