Surface base branch resolution failures during create_pr #433

Closed
opened 2026-04-26 23:33:03 +00:00 by barrettruth · 0 comments
barrettruth commented 2026-04-26 23:33:03 +00:00

Problem

create_pr currently falls back to main if default_branch_cmd fails or returns unusable output. That hides the underlying failure and can send later flows down the wrong base branch.

Proposed solution

Treat base-branch resolution failures as real errors: preserve stderr/stdout when available, log the failure, and stop the flow instead of silently defaulting to main.

Notes

  • root tracker: #170
## Problem `create_pr` currently falls back to `main` if `default_branch_cmd` fails or returns unusable output. That hides the underlying failure and can send later flows down the wrong base branch. ## Proposed solution Treat base-branch resolution failures as real errors: preserve stderr/stdout when available, log the failure, and stop the flow instead of silently defaulting to `main`. ## Notes - root tracker: #170
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/forge.nvim#433
No description provided.