# NousResearch/hermes-agent · Desktop session git branch tracking fixes

## Open now

- Nothing open on GitHub.

These items address bugs in the desktop client where sessions and project lanes incorrectly handled git branch references, including fallback to wrong branch names and failure when the default branch is not 'main'. Fixes cover branch preservation, worktree-aware session tracking, and lazy session row enrichment.

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

- #108694: \[Bug\]: Desktop — new session on a project lane fails with 'invalid reference: main' when the repo's default branch is master

## Prior & competing PRs

- **#128428: fix(desktop): sessions follow the agent's worktree and record their git branch**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `apps/desktop/src/app/chat/sidebar/projects/workspace-group.tsx`, `apps/desktop/src/app/chat/sidebar/projects/workspace-groups.test.ts`, `apps/desktop/src/app/chat/sidebar/projects/workspace-groups.ts`, `apps/desktop/src/app/chat/sidebar/sessions-section-new-session-drag.test.tsx`, `tests/tui_gateway/test_desktop_session_row_git_meta.py`, `tests/tui_gateway/test_session_cwd_follow.py`, `tests/tui_gateway/test_session_git_metadata_generation.py`, `tui_gateway/server.py`, `tui_gateway/session_workdir.py`, `website/docs/user-guide/desktop.md`
- **#108701: fix(desktop): preserve actual project lane branch**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#128428`
- **#127011: fix(desktop): git-enrich lazily created session rows; never switch to a fallback lane label**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#128428`, `#108789`

## Fix status

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