diff --git a/apps/web/src/components/GitActionsControl.tsx b/apps/web/src/components/GitActionsControl.tsx
index d8d86dd4f0ce18d1a63e204f251c359d9bc2fa30..6e811e6f4b4b4e9592aa017fa78aeca6106a9ac3 100644
--- a/apps/web/src/components/GitActionsControl.tsx
+++ b/apps/web/src/components/GitActionsControl.tsx
@@ -47,6 +47,7 @@ import {
gitPullMutationOptions,
gitRunStackedActionMutationOptions,
gitStatusQueryOptions,
+ invalidateGitStatusQuery,
invalidateGitQueries,
} from "~/lib/gitReactQuery";
import { newCommandId, randomUUID } from "~/lib/utils";
@@ -286,8 +287,8 @@ export default function GitActionsControl({ gitCwd, activeThreadId }: GitActions
useEffect(() => {
if (!isGitStatusOutOfSync) return;
- void invalidateGitQueries(queryClient);
- }, [isGitStatusOutOfSync, queryClient]);
+ void invalidateGitQueries(queryClient, { cwd: gitCwd });
+ }, [gitCwd, isGitStatusOutOfSync, queryClient]);
const gitStatusForActions = isGitStatusOutOfSync ? null : gitStatus;
@@ -814,7 +815,7 @@ export default function GitActionsControl({ gitCwd, activeThreadId }: GitActions