You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Git changes showing full file rewrite instead of small diffs #21068
I think there is a bug with how git changes are being rendered. I made some small changes to my files, but the UI is showing it like I changed the whole file.
In the first view, it correctly shows +36 -12 for library.py. But when I go to the Review tab, it jumps to +1047 -1023. It’s doing this for all files, even the YAML ones.
It looks like the diff engine is failing and just replacing the whole file instead of tracking the actual lines I edited.
OpenCode version
v1.3.15
Screenshot and/or share link
Operating System
Windows 11
Reacted by Seongjong Kim, Yongjiu Wei, Rafa M., Egor Kuklin, ta rasha, Matthew Peters and Qingshan Zhuan
Activity
tanushshukla commentedon May 19, 2026
Try running this:
`
git config --local core.autocrlf input
git config --local --unset core.eol
git update-index --refresh
`
And then restart opencode. This fixed for me until I updated opencode.
github-actions commentedon Aug 11, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.