Skip to content

feat: scope finish resume state per source branch#10

Merged
jopmiddelkamp merged 1 commit into
developfrom
feature/per-branch-finish-state
Jun 17, 2026
Merged

feat: scope finish resume state per source branch#10
jopmiddelkamp merged 1 commit into
developfrom
feature/per-branch-finish-state

Conversation

@jopmiddelkamp

Copy link
Copy Markdown
Contributor

What

Interrupted release/hotfix finishes used a single global .git/bflow-finish.state and resumed from any branch, hijacking every bflow run until the finish completed.

State now lives per source branch under .git/bflow-finish/ (e.g. hotfix-2.5.2.state). Resume fires only when standing on that source branch; from develop/main/feature, bflow behaves normally — a stalled finish no longer blocks other work. Two finishes can be in progress at once. --abort is likewise branch-scoped. Pre-2.4 global state migrates automatically.

Every merge step in finish_release/finish_hotfix now appends switch-back guidance naming the exact source branch to return to.

Tests

10 new state.rs unit tests + 4 conflict-guidance integration tests (TDD). Full suite: 159 passing. Real-binary smoke test confirms branch-scoped resume/abort + legacy migration.

🤖 Generated with Claude Code

An interrupted release/hotfix finish used a single global
.git/bflow-finish.state and resumed from any branch, hijacking every
subsequent bflow invocation until the finish completed.

State now lives per source branch under .git/bflow-finish/
(e.g. hotfix-2.5.2.state). Resume fires only when standing on that
source branch; from develop/main/feature bflow behaves normally, so a
stalled finish no longer blocks other work. Two finishes can be in
progress at once. --abort is likewise branch-scoped. Pre-2.4 global
state files migrate automatically on startup.

Every merge step in finish_release/finish_hotfix now appends switch-back
guidance naming the exact source branch to return to before re-running.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jopmiddelkamp jopmiddelkamp merged commit 9b2b2ab into develop Jun 17, 2026
4 checks passed
@jopmiddelkamp jopmiddelkamp deleted the feature/per-branch-finish-state branch June 17, 2026 14:32
@claude

claude Bot commented Jun 17, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant