Add git autosync functionality

This commit is contained in:
Alex Gleason committed 2025-12-29 16:00:23 -06:00
1 parent 0ee88f5968
commit 758e3ab261
7 files changed
+201 -51

No files matched your search

+3 -3
View File
@@ -26,7 +26,7 @@ import { useConsoleError } from '@/hooks/useConsoleError';
import { useAutoBuild } from '@/hooks/useAutoBuild';
import { useToast } from '@/hooks/useToast';
import { useFSPaths } from '@/hooks/useFSPaths';
import { useGitFetch } from '@/hooks/useGitFetch';
import { useGitSync } from '@/hooks/useGitSync';
import { useQueryClient } from '@tanstack/react-query';
import { cn } from '@/lib/utils';
import { useProjectSessionStatus } from '@/hooks/useProjectSessionStatus';
@@ -62,8 +62,8 @@ export function ProjectView() {
const { data: isPreviewable = false } = useIsProjectPreviewable(projectId!);
const { hasRunningSessions } = useProjectSessionStatus(projectId || '');
// Automatically fetch from remote to keep git status updated
useGitFetch(projectId ? `${projectsPath}/${projectId}` : undefined);
// Automatically sync with remote to keep git status updated
useGitSync(projectId ? `${projectsPath}/${projectId}` : undefined);
// Enable auto-build for previewable projects
useAutoBuild({