Changed files counter doesn't refresh after git push in desktop app
Status Open
Maintainer reply None cached
Activity 3 comments · opened Mar 4, 2026
Description
The changed files indicator (near the "Create PR" button) in the Claude Code desktop app does not refresh after a git push is executed within the same session.
Steps to Reproduce
- Open Claude Code desktop app on a repo with uncommitted or unpushed changes
- Note the changed files counter shows the correct diff (e.g.,
+0 -1) - Ask Claude to commit and push the changes
- Observe the counter still shows the old diff after the push completes
Expected Behavior
The changed files counter should update to reflect the current git state after push operations complete.
Actual Behavior
The counter continues showing the stale diff from before the push. It appears to only refresh on session start.
Environment
- Claude Code desktop app (macOS)
- macOS Darwin 25.3.0
- Claude Code Max plan
3 Comments
Just to note that git push by itself should not affect changed lines, only git commit does. But this bug does exist also when using git commit (see #41366). And it's not only the diff counter but also diff view that is stale and don't show recent changes correctly.
Is there any workaround for this? Really annoying that there's no way to hide this in the app. I've now asked Claude to only show diffs inline, which hopefully avoids this in the future, but am yet to find a way to remove the Git bar.
https://github.com/anthropics/claude-code/issues/65377 seems to be related and has more activity despite this being older.