Skip to content

Conversation

@javoire
Copy link
Owner

@javoire javoire commented Dec 2, 2025

Fixes several edge cases in stack sync:

  • Sentinel error for cleaner output: Adds errAlreadyPrinted to avoid duplicate error messages when detailed instructions are already shown
  • Better remote branch detection: Now detects remote branches via PR cache even when local tracking ref is missing
  • Auto-fetch missing refs: Fetches remote tracking refs on-demand when they're missing but branch has a PR
  • Fix FetchBranch refspec: Uses proper refspec to ensure tracking refs are created/updated (not just FETCH_HEAD)
  • Prefer OPEN PRs: When multiple PRs exist for the same branch, prefers OPEN ones over closed/merged
  • Cleaner error messages: Consolidated divergence error handling with better recovery instructions

@javoire javoire merged commit 31d42ef into main Dec 2, 2025
1 check passed
@javoire javoire deleted the fix/reparent-allow-no-parent branch December 2, 2025 17:34
@javoire
Copy link
Owner Author

javoire commented Dec 2, 2025

🎉 This PR is included in version 1.2.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants