authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-03-02 20:23:50-08:00
committergravatar for jmarminge@gmail.comJulius Marminge <jmarminge@gmail.com> 2026-03-02 20:46:05-08:00
log99ea16a9696e95065c8b556f78468a07712d97d3
treea7d70f1fdb0a43b5ab5d9dc2cc169e17fcb5739b
parentebe44d03a5fa6c34fdae2a67d53ef2ed6ba32737

Restore Open PR CTA for commit_push with existing PR

Co-authored-by: codex <codex@users.noreply.github.com>

1 files changed, 3 insertions(+), 1 deletions(-)

apps/web/src/components/GitActionsControl.tsx+3-1
...@@ -337,7 +337,9 @@ export default function GitActionsControl({ gitCwd, activeThreadId }: GitActions...@@ -337,7 +337,9 @@ export default function GitActionsControl({ gitCwd, activeThreadId }: GitActions
337 const shouldOfferOpenPrCta =337 const shouldOfferOpenPrCta =
338 (action === "commit_push" || action === "commit_push_pr") &&338 (action === "commit_push" || action === "commit_push_pr") &&
339 !!prUrl &&339 !!prUrl &&
340 (result.pr.status === "created" || result.pr.status === "opened_existing");340 (!actionIsDefaultBranch ||
341 result.pr.status === "created" ||
342 result.pr.status === "opened_existing");
341 const shouldOfferCreatePrCta =343 const shouldOfferCreatePrCta =
342 action === "commit_push" &&344 action === "commit_push" &&
343 !prUrl &&345 !prUrl &&