Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 584 Bytes

File metadata and controls

17 lines (10 loc) · 584 Bytes

git-branch-refresh

Language: bash Source: anthropics/claude-code#37429 Estimated lines: 35

Problem

The git branch label in Claude Code UI shows the branch from the original conversation start and never updates, even after switching branches and resuming with --resume.

Solution

A SessionStart hook that runs git branch --show-current and outputs the result as a statusLine update, ensuring the displayed branch always matches the actual working directory state.

Expected Files

["git-branch-refresh.sh","install.sh","README.md"]