Skip to content
TypeScript

Restore Open PR CTA for commit_push with existing PR

Julius Marminge99ea16a9696e
diff --git a/apps/web/src/components/GitActionsControl.tsx b/apps/web/src/components/GitActionsControl.tsx
index 21c0da40996..3662d1b79ca 100644
--- a/apps/web/src/components/GitActionsControl.tsx
+++ b/apps/web/src/components/GitActionsControl.tsx
@@ -337,7 +337,9 @@ export default function GitActionsControl({ gitCwd, activeThreadId }: GitActions
const shouldOfferOpenPrCta =
(action === "commit_push" || action === "commit_push_pr") &&
!!prUrl &&
- (result.pr.status === "created" || result.pr.status === "opened_existing");
+ (!actionIsDefaultBranch ||
+ result.pr.status === "created" ||
+ result.pr.status === "opened_existing");
const shouldOfferCreatePrCta =
action === "commit_push" &&
!prUrl &&