claude-code - 💡(How to fix) Fix [BUG] UI "View diff / Commit changes" bar does not refresh after commits made via Bash tool [3 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#47187Fetched 2026-04-13 05:39:09
View on GitHub
Comments
3
Participants
2
Timeline
8
Reactions
0
Author
Timeline (top)
labeled ×4commented ×3subscribed ×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 top bar showing uncommitted changes ("View diff" / "Commit changes") does not update after a commit is made through the Bash tool during a conversation. It continues to show stale diff data even though git status confirms a clean working tree.

What Should Happen?

Expected behavior:

The top bar should reflect the current git status after a commit is made, either via polling or by reacting to git operations executed through the Bash tool.

Error Messages/Logs

Steps to Reproduce

Steps to reproduce:

Start a conversation in a git repo with a clean working tree Make file changes via Edit/Write tools (the top bar correctly shows "View diff") Stage and commit the changes via the Bash tool (git add + git commit) Run git status — confirms clean tree, nothing to commit The top bar still shows "View diff" / "Commit changes" with the old diff

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

  • Claude Code version: 2.1.92

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

Environment:

Claude Code Desktop App (Windows 11 Pro 10.0.26200) Claude Opus 4.6 Git repo with remote on GitHub

extent analysis

TL;DR

The top bar in Claude Code may not be updating after a commit is made through the Bash tool due to a potential issue with polling or reacting to git operations, and a workaround could involve manually refreshing the top bar or the entire application.

Guidance

  • Verify that the issue persists after restarting the Claude Code Desktop App to rule out any temporary state issues.
  • Check if the problem occurs when using a different git client or tool to commit changes, to isolate if the issue is specific to the Bash tool integration.
  • Investigate if there are any configuration options in Claude Code to adjust the polling interval or behavior for updating the top bar after git operations.
  • Consider testing the same workflow in a different environment, such as a different operating system or using the Claude Code web interface if available, to see if the issue is platform-specific.

Example

No specific code snippet can be provided without more details on the internal workings of Claude Code, but a potential area of investigation could involve how the application polls or reacts to git status changes.

Notes

The exact cause of the issue is unclear without more information on how Claude Code integrates with git and updates its UI. The problem might be related to how the Bash tool interacts with the git repository or how Claude Code polls for changes.

Recommendation

Apply a workaround, such as manually refreshing the application or checking for updates to Claude Code that might address the issue, as the root cause is not immediately clear and may require further investigation or a fix from the developers.

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] UI "View diff / Commit changes" bar does not refresh after commits made via Bash tool [3 comments, 2 participants]