You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
GitArea: what it touches
Bug FixesKind: in v2.1.326,
Bug FixesSection of the release
What
When Claude Code reads which Git branch you are on, it now handles two cases correctly:
The branch name is "HEAD". This happens in a "detached HEAD" state, where you have checked out a specific commit rather than a branch.
The branch name starts with "-".
The old check looked at the wrong value, so the detached case was not caught.
Why
The branch lookup now works when you are not on a branch. It also guards against a branch name that starts with a dash, which Git could otherwise read as an option.