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

Co-authored-by: Julius Marminge <[email protected]>

Applied via @cursor push command
This commit is contained in:
Cursor AgentandJulius Marminge authored and Julius Marminge committed 2026-03-01 20:06:01 -08:00
1 parent 95f21c1099
commit e8bde958f1
1 file changed
+8 -1
@@ -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,