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.

Fix: reset hasUpstream, aheadCount, behindCount in statusOverride after branch checkout

Cursor Agente8bde958f132
diff --git a/apps/web/src/components/GitActionsControl.tsx b/apps/web/src/components/GitActionsControl.tsx
index 1b508f01d..be18830e1 100644
--- a/apps/web/src/components/GitActionsControl.tsx
+++ b/apps/web/src/components/GitActionsControl.tsx
@@ -445,7 +445,14 @@ export default function GitActionsControl({ gitCwd, activeThreadId }: GitActions
void checkoutPromise
.then(() => {
const statusOverride = gitStatusForActions
- ? { ...gitStatusForActions, branch: branchName, pr: null }
+ ? {
+ ...gitStatusForActions,
+ branch: branchName,
+ pr: null,
+ hasUpstream: false,
+ aheadCount: 0,
+ behindCount: 0,
+ }
: null;
return runGitActionWithToast({
...actionParams,