TypeScript
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.tsxindex 1b508f01d38..be18830e1bf 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 }: GitActionsvoid 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,