Skip to content

fix: HUD base branch detection matching raw commit hashes#156

Merged
dean0x merged 1 commit intomainfrom
fix/hud-base-branch-detection
Mar 22, 2026
Merged

fix: HUD base branch detection matching raw commit hashes#156
dean0x merged 1 commit intomainfrom
fix/hud-base-branch-detection

Conversation

@dean0x
Copy link
Owner

@dean0x dean0x commented Mar 22, 2026

Summary

  • Fix detectBaseBranch layer 2 (HEAD reflog) matching raw commit hashes from old detached-HEAD checkouts, causing bogus ahead/behind counts (e.g. 50↑ 1↓ when on main)
  • When on main/master, compare against origin/main instead of main vs main (always 0/0)
  • Add skill shadowing docs and HUD options to README

Test plan

  • npm test — 364/364 passing
  • On main branch, HUD should show 0↑ 0↓ (or omit ahead/behind entirely)
  • Visual verification after devflow init --hud-only

detectBaseBranch layer 2 (HEAD reflog) was matching raw commit hashes
from old detached-HEAD checkouts, causing bogus ahead/behind counts
(e.g. 50↑ on main). Now skips hex-only strings.

Also: when on main/master, compare against origin/main instead of
main vs main (which is always 0/0).

Docs: add skill shadowing section and HUD options to README.
@dean0x dean0x merged commit cb9a38c into main Mar 22, 2026
3 of 4 checks passed
@dean0x dean0x deleted the fix/hud-base-branch-detection branch March 22, 2026 00:30
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