From bf22373502bc86add3c0c2b0b137593690174a34 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Tue, 6 Jan 2026 08:25:22 +0700 Subject: [PATCH] feat(git-diff): add 10-second auto-refetch interval MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- packages/app/src/hooks/use-git-diff-query.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/app/src/hooks/use-git-diff-query.ts b/packages/app/src/hooks/use-git-diff-query.ts index 9ce2c5e0d..6d89cbf76 100644 --- a/packages/app/src/hooks/use-git-diff-query.ts +++ b/packages/app/src/hooks/use-git-diff-query.ts @@ -34,6 +34,7 @@ export function useGitDiffQuery({ serverId, agentId }: UseGitDiffQueryOptions) { }, enabled: !!ws && ws.isConnected && !!agentId, staleTime: GIT_DIFF_STALE_TIME, + refetchInterval: 10_000, }); // Revalidate when sidebar opens with "changes" tab active