From 99ea16a9696e95065c8b556f78468a07712d97d3 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Mon, 2 Mar 2026 20:23:50 -0800 Subject: [PATCH] Restore Open PR CTA for commit_push with existing PR Co-authored-by: codex --- apps/web/src/components/GitActionsControl.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/GitActionsControl.tsx b/apps/web/src/components/GitActionsControl.tsx index 21c0da40996d7cccdf60dea95ff14118cc1c26ca..3662d1b79ca4a0f7389e21900be82c56fff23ee0 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 && -- 2.54.0