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
Web UI Git Changes panel shows entire file as changed instead of line-level diff #41979
The OpenCode Web UI (opencode web) incorrectly renders an entire tracked file as changed in the Git Changes panel, even when the underlying Git diff contains only a single-line change.
The same diff is rendered correctly in the OpenCode TUI.
Reproduction Steps
Use any Git repository with a tracked source file.
Make a small change to a single line, such as an indentation or whitespace change.
Run:
git diff -- <file>
Confirm that Git reports only a single-line hunk, for example:
@@ -10,7 +10,7 @@- example line+ example line
Open the same repository using the OpenCode TUI:
opencode
Confirm that the TUI correctly displays only the modified line.
Open the same repository using:
opencode web
Open the Git Changes panel.
The Web UI displays the entire file as changed instead of displaying only the actual changed line.
Expected Behavior
The Web UI Git Changes panel should display the same hunk-level diff provided by Git.
Only the lines actually added or removed should be highlighted.
Actual Behavior
The Web UI displays the entire file as changed, even though the underlying Git diff contains only a single-line hunk.
Evidence
The same repository state produces different results:
Activity
github-actions commentedon Oct 12, 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.