claude-code - 💡(How to fix) Fix [BUG] Missing branch in UI [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52397Fetched 2026-04-24 06:08:16
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×4commented ×1cross-referenced ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

The Claude Code interface does not display the current Git branch anywhere in the UI. The only way to know which branch you're on is to explicitly ask Claude in the chat. This is a significant UX and safety issue — it's easy to accidentally work on the wrong branch (including master or main) without realizing it, which can lead to serious mistakes in a professional codebase. A branch indicator should be permanently visible in the interface, ideally next to the directory name at the top of the session.

What Should Happen?

The branch I'm currently working on should appear in the UI

Error Messages/Logs

Steps to Reproduce

.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

1.3883.0

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue can be mitigated by requesting the current Git branch from Claude in the chat, although a permanent branch indicator in the UI is desired.

Guidance

  • Verify that the issue is indeed a regression by checking the version history of Claude Code to confirm that the branch indicator was previously visible.
  • Check if there are any existing feature requests or issues related to displaying the Git branch in the UI that may provide a workaround or a fix.
  • Consider reaching out to the development team to report the regression and request a fix, providing detailed information about the previous version where the feature worked.
  • In the meantime, make it a habit to explicitly ask Claude about the current branch before making changes to avoid working on the wrong branch.

Notes

The lack of information about the last working version and additional context makes it difficult to provide a more specific fix or workaround.

Recommendation

Apply workaround: Request the current Git branch from Claude in the chat until a fix is available, as this is the only known way to determine the current branch in the current version of Claude Code.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Missing branch in UI [1 comments, 2 participants]