Skip to content

Conversation

@javoire
Copy link
Owner

@javoire javoire commented Jan 21, 2026

Summary

  • Fixes sync silently skipping parent branches that don't have stackparent configured
  • Auto-detects and configures missing branches by inferring parent from chain order
  • Notifies user when auto-configuring: "Auto-configured X with parent Y"

This addresses scenarios where a branch was created manually (without stack new) but child branches reference it as their parent. Previously, sync would only process the child and rebase onto a stale remote version.

🤖 Generated with Claude Code

When a branch in the stack chain doesn't have stackparent configured
(e.g., created manually without `stack new`), sync now:
- Detects the missing config by comparing chain vs stackBranches
- Infers the parent from chain order
- Auto-configures stackparent so the branch gets synced
- Notifies user with "Auto-configured X with parent Y"

This fixes sync silently skipping parent branches and rebasing onto
stale remote versions instead of freshly-rebased local versions.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@javoire javoire merged commit 970b96b into main Jan 21, 2026
1 check passed
@javoire javoire deleted the fix/auto-configure-missing-stackparent branch January 21, 2026 19:49
@javoire
Copy link
Owner Author

javoire commented Jan 21, 2026

🎉 This PR is included in version 1.7.1 🎉

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