Skip to content

fix: refresh header git branch on checkout#98

Merged
jbj338033 merged 1 commit into
mainfrom
fix/tui-live-branch-refresh
Jul 5, 2026
Merged

fix: refresh header git branch on checkout#98
jbj338033 merged 1 commit into
mainfrom
fix/tui-live-branch-refresh

Conversation

@jbj338033

Copy link
Copy Markdown
Collaborator

Summary

The header showed the git branch captured once at session startup, so a git checkout in another terminal left it stale. The branch is now re-read from .git/HEAD on a ~1s throttle over the existing tick and updated only when it actually changes, keeping the header event-driven with no new dependency.

Verification

  • cargo clippy -p goat-worktree -p goat-tui --all-targets -- -D warnings — passed
  • cargo test -p goat-worktree — passed (incl. head_branch_tracks_checkout, parse_head_symbolic_and_detached)
  • cargo test -p goat-tui — passed

@jbj338033 jbj338033 merged commit 73d386d into main Jul 5, 2026
5 checks passed
@jbj338033 jbj338033 deleted the fix/tui-live-branch-refresh branch July 5, 2026 06:27
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