UI shows stale diff after branch merge and deletion
Resolved 💬 3 comments Opened Apr 2, 2026 by eloywijlhuizen-zeno Closed Apr 6, 2026
Bug Description
After merging a PR and deleting the feature branch locally, the Claude Code UI continues to show a stale diff indicator (main ← main with +11 -11) even though git status confirms the working tree is clean and up to date with origin/main.
Steps to Reproduce
- Create a feature branch from
main, make changes, commit, and push - Create a PR and merge it into
main - Switch back to
mainandgit pull(fast-forward merge succeeds) - Delete the local feature branch with
git branch -d <branch> - Run
git status— confirms clean working tree onmain, up to date withorigin/main - The Claude Code UI still shows
main ← mainwith the diff count from the now-merged branch
Expected Behavior
The diff indicator should clear after the branch is merged and the local state is clean.
Actual Behavior
The UI continues to display +11 -11 and main ← main despite no actual diff existing.
Environment
- Platform: macOS (Darwin 25.3.0)
- Claude Code: CLI / Desktop app
🤖 Generated with Claude Code
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗