feat(git-diff): add 10-second auto-refetch interval

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Mohamed Boudra
2026-01-06 08:25:22 +07:00
parent ecd9ddb4a2
commit bf22373502

View File

@@ -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