Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

kewl

Julius Marminge758df838d935
diff --git a/apps/web/src/components/GitActionsControl.tsx b/apps/web/src/components/GitActionsControl.tsx
index b68ce2b50..5f3b8066f 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<boolean> => {
if (!api) return false;
@@ -479,7 +474,11 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp
</Button>
)}
<GroupSeparator />
- <Menu>
+ <Menu
+ onOpenChange={(open) => {
+ if (open) void invalidateGitQueries(queryClient);
+ }}
+ >
<MenuTrigger
render={<Button aria-label="Git action options" size="icon-xs" variant="outline" />}
disabled={isGitActionRunning}