Skip to content

Conversation

@javoire
Copy link
Owner

@javoire javoire commented Jan 28, 2026

Summary

  • Prevent stack status from offering to add the base branch (e.g., main) to a stack with itself as parent
  • This previously created a circular dependency (mainmain) if user accepted the prompt
  • Now shows an informational message when on the base branch instead

🤖 Generated with Claude Code

When running `stack status` on the base branch (e.g., main), the command
would incorrectly offer to add it to a stack with itself as parent.
Accepting this created a circular dependency (main → main).

Now detects when the current branch is the base branch and shows a
helpful message instead of the problematic prompt.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@javoire javoire merged commit a13268d into main Jan 28, 2026
1 check passed
@javoire javoire deleted the fix/no-self-stack-suggestion branch January 28, 2026 19:59
javoire pushed a commit that referenced this pull request Jan 28, 2026
…01-28)

### Bug Fixes

* don't suggest stacking base branch onto itself ([#51](#51)) ([a13268d](a13268d))
@javoire
Copy link
Owner Author

javoire commented Jan 28, 2026

🎉 This PR is included in version 1.9.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