From 522d929ce97dd0f1b1bdb2e0cf4d74ce041976a6 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 2 Mar 2026 03:20:28 +0000 Subject: [PATCH] Fix: reset hasUpstream, aheadCount, behindCount in statusOverride after branch checkout Co-authored-by: Julius Marminge Applied via @cursor push command --- apps/web/src/components/GitActionsControl.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/GitActionsControl.tsx b/apps/web/src/components/GitActionsControl.tsx index 1b508f01d3..be18830e1b 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,