fix: keep toast CTA git actions on the active feature branch

Co-authored-by: codex <[email protected]>
This commit is contained in:
Julius Marmingeandcodex authored and Julius Marminge committed 2026-03-01 20:06:01 -08:00
1 parent 96efd1cef0
commit 882684a80c
1 file changed
+7 -1
@@ -342,6 +342,8 @@ export default function GitActionsControl({ gitCwd, activeThreadId }: GitActions
action: "commit_push",
forcePushOnlyProgress: true,
onConfirmed: closeResultToast,
statusOverride: actionStatus,
isDefaultBranchOverride: actionIsDefaultBranch,
});
},
},
@@ -364,7 +366,11 @@ export default function GitActionsControl({ gitCwd, activeThreadId }: GitActions
children: "Create PR",
onClick: () => {
closeResultToast();
void runGitActionWithToast({ action: "commit_push_pr" });
void runGitActionWithToast({
action: "commit_push_pr",
statusOverride: actionStatus,
isDefaultBranchOverride: actionIsDefaultBranch,
});
},
},
}