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
Diff is not shown on CodeCompanion integration with OpenCode #11653
This user is having the same exact problem as I do. When I tried to use OpenCode through ACP in CodeCompanion.nvim after the agent made the change to all the file, when I do Super Diff, it just said that no edits were made even though file has changed. There is no prompt pop up to let me approve the diff also.
=> The author from OpenCode said that he believe it is because OpenCode doesn't send back the "diff" info.
How could I proceed to solve this problem?
Plugins
ACP integration with CodeCompanion
OpenCode version
1.1.48
Steps to reproduce
Open CodeCompanion and set up to use OpenCode in "chat"
Ask agent to modify 5 files randomly
Agents modified 5 files without asking for any approval or show any diff
After modification pressing "gD" in buffer to open SuperDiff is returned with No Edit were made
The root cause appears to be that OpenCode doesn't provide diff/change information back through the ACP protocol, particularly for editor integrations.
Feel free to ignore if none of these address your specific case.
@LazyYuuki does this change resolve your issue? In order for the effect to work, I believe you will also need to go into you opencode.json and expicitly set
Activity
github-actions commentedon Feb 1, 2026
This issue might be a duplicate of existing issues. Please check:
file.editedevent missingbeforetext, hard to extract edit locations #5171: plugins:file.editedevent missingbeforetext - Addresses the broader issue that OpenCode's events don't provide proper diff/change informationThe root cause appears to be that OpenCode doesn't provide diff/change information back through the ACP protocol, particularly for editor integrations.
Feel free to ignore if none of these address your specific case.
MaxDillon commentedon Mar 1, 2026
@LazyYuuki does this change resolve your issue? In order for the effect to work, I believe you will also need to go into you
opencode.jsonand expicitly set{ "$schema": "https://opencode.ai/config.json", "permissions": { "edit": "ask" }, ... }MaxDillon commentedon Mar 3, 2026
@rekram1-node have you gotten a chance to look yet?
github-actions commentedon May 3, 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.