diff --git a/apps/web/src/components/GitActionsControl.tsx b/apps/web/src/components/GitActionsControl.tsx index b68ce2b50b3095bea60c0642a2845b6f88dcdc93..5f3b8066feda4eb82fcb2ffaec7ecc687cb803c0 100644 --- a/apps/web/src/components/GitActionsControl.tsx +++ b/apps/web/src/components/GitActionsControl.tsx @@ -194,11 +194,6 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp ? (quickAction.hint ?? "This action is currently unavailable.") : null; - const refreshGitStatus = useCallback(async () => { - if (!api || !gitCwd) return; - await invalidateGitQueries(queryClient); - }, [api, gitCwd, queryClient]); - const maybeConfirmPushToDefaultBranch = useCallback( async (action: GitStackedAction): Promise => { if (!api) return false; @@ -479,7 +474,11 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp )} - + { + if (open) void invalidateGitQueries(queryClient); + }} + > } disabled={isGitActionRunning}