fix(windows): improve Git diff viewing and history pagination - #103
Merged
1lck merged 7 commits intoAug 16, 2026
Merged
Conversation
- translate git_diff_file and git_status_diff_stats filePath into the git.diff pathspecs contract instead of the unrelated paths field, and fall back to ["."] so whole-tree stat requests are not rejected - derive diff stat staged flags from the request instead of hardcoding false, and fetch staged and unstaged stats so both groups show counts
- open diffs in split view like the macOS reference product and IDEA instead of a hardcoded unified default - persist the unified/split preference in a zustand store so the choice survives reopening diffs and restarting the app
This was referenced Aug 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
hasMorestateRoot cause
The Windows client passed pathspecs and pagination parameters that did not match the shared Core contract. Split diffs were then reconstructed from independent vertical lines, which made unchanged paired lines appear as one deletion plus one addition. Source Control buffers could also be created in the active bottom pane, leaving them invisible while the Terminal tab was selected.
User impact
Windows users can page through Git history reliably, click changed files to open them in the editor, and review additions and deletions in an IDEA-style side-by-side view with accurate semantic counters.
Validation
bun test— 28 tests passedbun run typecheckvp lintgit diff --checkScreenshots
Addition
Deletion