claude-code - 💡(How to fix) Fix Add toggle to hide the branch status badge / PR widget [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#56092Fetched 2026-05-05 05:58:26
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Root Cause

I'm currently working on a long-lived feature branch (Phase 4 of my project) where the diff numbers are misleading — the widget shows ~180k additions because this is the first PR that includes a fresh package-lock.json (~40 MB). That number is not meaningful information for me, and seeing it on every screen refresh adds visual noise during focused coding sessions.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

The Claude Code branch status badge widget displays open PRs with diff stats (e.g., "+180827 -208") and CI status indicators in the sidebar. There is no built-in setting to hide it.

I'm currently working on a long-lived feature branch (Phase 4 of my project) where the diff numbers are misleading — the widget shows ~180k additions because this is the first PR that includes a fresh package-lock.json (~40 MB). That number is not meaningful information for me, and seeing it on every screen refresh adds visual noise during focused coding sessions.

The widget also occupies sidebar real estate. Collapsing the entire sidebar (Ctrl+B) is the only way to hide it, but that hides everything else useful too.

Related existing issues:

  • #34194 — Allow me to hide data shown in Claude desktop
  • #28703 — PR widget diff stats include untracked files
  • #51738 — Branch status badge shows diff-vs-base line count

Proposed Solution

Any one of the following would solve this:

  1. A settings.json flag, e.g.: "showBranchStatusBadge": false

  2. A right-click context menu on the widget itself with a "Hide" option that persists across sessions.

  3. A /toggle-pr-widget slash command (similar to how /statusline currently works for the status line).

Option 1 is my preference — it's non-interactive, easy to set globally via my dotfiles, and matches how other Claude Code display preferences are configured.

Alternative Solutions

  • I currently collapse the entire sidebar with Ctrl+B, but this hides every other useful panel (sessions, file tree, etc.), not just the PR widget.

  • I tried switching to Claude Code CLI in a plain terminal, which doesn't show the widget — but I lose the IDE integration benefits I rely on (inline diffs, file navigation, etc.).

  • Tried /feedback inside the desktop build, but it returned: "/feedback is only available for local sessions on this desktop build." That's why I'm filing here on GitHub instead.

Priority

Low - Nice to have

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

No response

extent analysis

TL;DR

The proposed solution involves adding a configurable option to hide the branch status badge widget, such as a settings.json flag or a right-click context menu option.

Guidance

  • Consider implementing a settings.json flag, e.g., "showBranchStatusBadge": false, to allow users to hide the widget globally via their dotfiles.
  • A right-click context menu on the widget itself with a "Hide" option that persists across sessions could also be a viable solution.
  • Evaluate the feasibility of adding a /toggle-pr-widget slash command, similar to the existing /statusline command, to provide an alternative way to hide the widget.

Example

No code snippet is provided as the issue focuses on proposing solutions rather than implementing them.

Notes

The proposed solutions aim to address the issue of the branch status badge widget occupying sidebar real estate and displaying potentially misleading information. The priority of this feature is marked as low, indicating it's a nice-to-have functionality.

Recommendation

Apply a workaround, such as collapsing the entire sidebar with Ctrl+B, until a more targeted solution is implemented, as it is the most straightforward way to hide the widget currently.

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 Add toggle to hide the branch status badge / PR widget [1 comments, 2 participants]