Language: bash Source: anthropics/claude-code#37429 Estimated lines: 35
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.
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.
["git-branch-refresh.sh","install.sh","README.md"]