# NousResearch/hermes-agent · Update logic fixes for branch-switch checkout handling

## Open now

- Nothing open on GitHub.

These items address bugs in the update command where switching branches during an update incorrectly reports 'Already up to date' or loses track of the running checkout. The fixes involve preserving the running checkout, correcting commit counting, and separating branch-switch movement from rollback state.

## 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 #126206. Verify it addresses your case.
- **Recommended:** read PR #126206 (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-126206`. 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

- #125685: hermes update reports "Already up to date" after switching a detached checkout to an existing local main

## Prior & competing PRs

- **#126206: fix(update): count from the running checkout and roll back to it after a branch switch**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `hermes_cli/update_cmd.py`, `tests/hermes_cli/test_update_existing_branch_baseline.py`, `website/docs/getting-started/updating.md`
- **#125728: fix(update): preserve the running checkout across branch-switch updates**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#126206`, `#125771`
- **#125771: fix(update): separate branch-switch movement from rollback state**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#126206`, `#125728`

## Fix status

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