@devries-cameron20 / t3code-1 / commits / e8bde958f1
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

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

Co-authored-by: Julius Marminge <juliusmarminge@users.noreply.github.com> Applied via @cursor push command

Cursor Agent committed Mar 2, 2026 at 03:20 UTC e8bde958f132637e5e9214cfa1ac5db66313f08e
1 file changed +8 -1
apps/web/src/components/GitActionsControl.tsx
+8 -1
@@ -445,7 +445,14 @@ export default function GitActionsControl({ gitCwd, activeThreadId }: GitActions
445 void checkoutPromise
446 .then(() => {
447 const statusOverride = gitStatusForActions
448 - ? { ...gitStatusForActions, branch: branchName, pr: null }
448 + ? {
449 + ...gitStatusForActions,
450 + branch: branchName,
451 + pr: null,
452 + hasUpstream: false,
453 + aheadCount: 0,
454 + behindCount: 0,
455 + }
456 : null;
457 return runGitActionWithToast({
458 ...actionParams,