phase-merge loses its post-merge advance, because it checks out the feature branch before it commits the card #578
Labels
No labels
agent-ready
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-human
needs-input
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli#578
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
phase-mergeloses its post-merge advance on every phase, becausedoMergeAndAdvancechecks out the feature branch before it commits the card:ci-gatewritesreview-state.jsonthroughReviewStateWrite.tryUpdateand leaves it uncommitted, socheckoutBranchatcore/commands/PhaseMerge.scala:402refuses on a real local change, and thetryUpdateAndCommitthat would have cleared it sits at line 408 — after the advance has already failed.PhaseIndexSync.markPhaseCompletenever runs, so the phase index keeps the phase open and the card carries a "worktree was not advanced" warning. Commit the card before the advance. Reproduced on both phases of IW-555.