[BUG] GitButler diff stat counts appear inflated/incorrect in status bar
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Title: GitButler diff stat counts appear inflated/incorrect in status bar
Environment:
Claude Code CLI, GitButler integration (gitbutler/workspace branch)
OS: Windows 11
Repo: private C++/Qt project (details withheld for IP reasons)
Description:
The diff stat summary shown in the status bar/header (e.g. +2,285 −124) does not match the actual scope of changes made in the session. The discrepancy appears specific to GitButler's virtual branch/lane view.
What Should Happen?
Expected: Stat counts reflect only the actual lines changed in the current session/lane.
Actual: Stat counts appear significantly inflated.
Error Messages/Logs
Steps to Reproduce
Steps to reproduce:
Work in a repo with GitButler initialized, using a virtual branch/lane (gitbutler/workspace).
Make a set of edits via Claude Code.
Observe the diff stat counter in the status bar.
Compare against the expected line-change count for the edits made.
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.252 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_