| ... | @@ -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 && |