Repository navigation
Conversation
When running chain mode with pre-existing worktrees, the ensureWorktree() function now rebases the existing worktree onto the chain's base branch. Changes: - Add rebase logic in ensureWorktree() when chainMode=true and baseBranch is set - Handle rebase conflicts gracefully with abort and warning - Add chain/qaGate flags to RunConfigSchema for log completeness - Add comprehensive test cases for pre-existing worktree behavior Closes #289
4 tasks
admarble
deleted the
feature/289-chain-mode-silently-fails-when-worktrees-pre-exist
branch
February 18, 2026 05:56
This was referenced Oct 26, 2026
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
chainandqaGateflags toRunConfigSchemafor better run log completenessChanges
Core Fix (
src/commands/run.ts)When
ensureWorktree()finds an existing worktree and chain mode is active with a base branch:rebased: trueon success,rebased: falseon failureSchema Update (
src/lib/workflow/run-log-schema.ts)chain: booleanfield toRunConfigSchemaqaGate: booleanfield toRunConfigSchemaTest Coverage
chainandqaGatefields inRunConfigSchemaTest plan
npm run buildpassesnpm run lintpassesnpm testpasses (1228 tests)Closes #289
🤖 Generated with Claude Code