From 9d32a13971c7f492147c2c63442cca74de8c0241 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 23 Dec 2025 03:31:55 -0600 Subject: [PATCH] Only display the git sync indicator if there are at least 2 commits --- src/components/git-sync/GitSyncButton.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/git-sync/GitSyncButton.tsx b/src/components/git-sync/GitSyncButton.tsx index e0ff7211..b6eac8c1 100644 --- a/src/components/git-sync/GitSyncButton.tsx +++ b/src/components/git-sync/GitSyncButton.tsx @@ -21,7 +21,8 @@ export function GitSyncButton({ projectId, className }: GitSyncButtonProps) { const hasRemote = !!originRemote; // Determine if we need to show the indicator dot - const showIndicator = !isGitStatusLoading && !hasRemote; + // Show indicator if no origin remote is configured, UNLESS there are less than 2 commits + const showIndicator = !isGitStatusLoading && !hasRemote && (gitStatus?.totalCommits ?? 0) >= 2; return (