Skip to content

fix: avoid Git context overflow in V2 session diffs - #544

Merged
sudo-tee merged 1 commit into
sudo-tee:mainfrom
blasco:fix/v2-diff-context-overflow
Oct 20, 2026
Merged

sudo-tee merged 1 commit into
sudo-tee:mainfrom
blasco:fix/v2-diff-context-overflow

Conversation

@blasco

@blasco blasco commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Issue

I was seeing “Side-by-side unavailable for this patch.” when opening V2 session diffs. The server’s default context value (INT_MAX) could overflow Git’s hunk-merging logic, producing patches that could not be reconstructed for the side-by-side view.

@blasco

blasco commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

No idea if there is a more elegant fix, but this patch fixed the issue for me

@sudo-tee

Copy link
Copy Markdown
Owner

Thanks for investigating this issue :).

This seems to be a good fix.

@sudo-tee
sudo-tee merged commit 62ee940 into sudo-tee:main Oct 20, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants