Skip to content

Comments

fix(sync): skip redundant 'Returning to' message when already on branch#65

Merged
javoire merged 1 commit intomainfrom
fix/skip-redundant-return-message
Feb 13, 2026
Merged

fix(sync): skip redundant 'Returning to' message when already on branch#65
javoire merged 1 commit intomainfrom
fix/skip-redundant-return-message

Conversation

@javoire
Copy link
Owner

@javoire javoire commented Feb 13, 2026

Summary

  • Skip the "Returning to ..." message and checkout at the end of stack sync when the user is already on the original branch (e.g., single-branch stacks)
  • Checks current branch before printing, matching the pattern used in the abort handler

🤖 Generated with Claude Code

During `stack sync`, the "Returning to <branch>..." message and checkout
always ran at the end, even when the user was already on that branch
(e.g., single-branch stacks). Now checks the current branch first and
only prints the message / performs checkout when actually needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@javoire javoire marked this pull request as ready for review February 13, 2026 19:35
@javoire javoire enabled auto-merge (squash) February 13, 2026 19:35
@javoire javoire merged commit 9ebd3a0 into main Feb 13, 2026
1 check passed
@javoire javoire deleted the fix/skip-redundant-return-message branch February 13, 2026 19:36
javoire pushed a commit that referenced this pull request Feb 13, 2026
…026-02-13)

### Bug Fixes

* **sync:** skip redundant "Returning to" message when already on branch ([#65](#65)) ([9ebd3a0](9ebd3a0))
@javoire
Copy link
Owner Author

javoire commented Feb 13, 2026

🎉 This PR is included in version 1.16.3 🎉

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.

1 participant