worktree prune incorrectly deletes unmerged branches without remote
Cluster 111895. Data as of
Nothing open on GitHub. Fix merged in #112206 on 16 Sep 2026. Check it covers your case.
The short answer
- Known?
- Yes. 4 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #112206. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #112206. That is separate from the fix event. - Still open
- Nothing open on GitHub.
A bug where hermes worktree prune misidentifies unmerged local commits as fully merged when no remote is configured, causing force-deletion of branches with unique commits. Fixes and tests address preserving local-only commits during pruning.
Open issues0
Open PRs0
Fixes on record
-
#112206 fix(worktree): prune keeps unique local commits in repos with no remote (#111895, salvage #111897)
files:
hermes_cli/worktree_gc.py,hermes_cli/worktree_ops.py,tests/hermes_cli/test_worktree.py,tests/hermes_cli/test_worktree_gc.py,website/docs/user-guide/cli.md
2 PRs closed without merging
From the close comments: merged via another change 1 · other 1
Closed issues · 1
- Closed#111895[Bug]: `hermes worktree prune` calls unmerged worktrees "clean and fully merged/pushed" and force-deletes their branches in repos with no remote
How this cluster was grouped
-
Link evidence (
structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference. -
Pairwise link density
0.50: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36.1.00means every pair is linked.
Pick up a Lab task
Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.
Open the LabAt a glance
- Merged PRs
- #112206
- Closed issues
- 1
- Attempts
- 2 PRs closed without merging
- Fix link checked
- 16 Sep 2026