Repository navigation
fix(#126): rebase existing branches onto previous chain link in chain mode - #127
Merged
admarble merged 1 commit intoJan 19, 2026
Merged
Conversation
… mode When using --chain mode with sequant run, existing branches are now automatically rebased onto the previous branch in the chain instead of being used as-is. Changes: - Add chainMode parameter to ensureWorktree() to distinguish chain mode - When branchExists && chainMode && baseBranch, rebase onto baseRef - Handle rebase conflicts gracefully by aborting and warning user - Add rebased field to WorktreeInfo interface for tracking - Update ensureWorktreesChain() summary to show rebased count This ensures the chain structure is maintained when branches are reused: feature/dashboard → #114 → #116 instead of the previous broken behavior: feature/dashboard → #114 feature/dashboard → #116 (not chained) Closes #126 Co-Authored-By: Claude Opus 4.5 <[email protected]>
admarble
deleted the
feature/126-chain-mode-does-not-rebase-existing-branches-o
branch
January 19, 2026 07:34
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--chainmode withsequant run, existing branches are now automatically rebased onto the previous branch in the chainChanges
chainModeparameter toensureWorktree()to distinguish chain mode from regular custom base branch usagebranchExists && chainMode && baseBranch, rebase the existing branch ontobaseRefrebased: booleanfield toWorktreeInfointerface and show rebased count in summaryTest Plan
npm run build)sequant run X Y --sequential --chainand verify branches are rebasedCloses #126
🤖 Generated with Claude Code