# NousResearch/hermes-agent · Worktree cleanup broken when no remote exists

## Open now

- Nothing open on GitHub.

These issues and pull requests address a bug where worktree cleanup incorrectly treats commits as unpushed in repositories or worktrees that have no configured remotes. Multiple fix attempts approach the same underlying problem.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #28955. Verify it addresses your case.
- **Recommended:** read PR #28955 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-28955`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.50`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #11318: \[Bug\]: worktree cleanup treats every commit as unpushed when repo has no remotes

## Prior & competing PRs

- **#28955: fix(cli): handle worktrees with no remote refs (salvage #11384)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `cli.py`, `tests/cli/test_worktree.py`
- **#11356: fix: clean worktrees without remote refs**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#28955`, `#11384`
- **#11384: fix(cli): avoid treating no-remote worktrees as unpushed**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#28955`

## Fix status

- Merged to main in PR #28955 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-05-19`.
