From e8bde958f132637e5e9214cfa1ac5db66313f08e 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 1b508f01d389d19c8460b13bdf951b11b8be10af..be18830e1bf2effd4eab90c162fde585eecf8e17 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, -- 2.54.0