Diff is not shown on CodeCompanion integration with OpenCode #8246

Open
opened 2026-02-16 18:09:30 -05:00 by yindo · 1 comment
Owner

Originally created by @LazyYuuki on GitHub (Feb 1, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Refer to this discussion here from OpenCode Discussion:

https://github.com/olimorris/codecompanion.nvim/discussions/2114#discussioncomment-15649394

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

  1. Open CodeCompanion and set up to use OpenCode in "chat"
  2. Ask agent to modify 5 files randomly
  3. Agents modified 5 files without asking for any approval or show any diff
  4. After modification pressing "gD" in buffer to open SuperDiff is returned with No Edit were made
Image Image

Screenshot and/or share link

No response

Operating System

macOS 15.7.3

Terminal

Ghostty

Originally created by @LazyYuuki on GitHub (Feb 1, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Refer to this discussion here from OpenCode Discussion: https://github.com/olimorris/codecompanion.nvim/discussions/2114#discussioncomment-15649394 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 1. Open CodeCompanion and set up to use OpenCode in "chat" 2. Ask agent to modify 5 files randomly 3. Agents modified 5 files without asking for any approval or show any diff 4. After modification pressing "gD" in buffer to open SuperDiff is returned with No Edit were made <img width="1173" height="684" alt="Image" src="https://github.com/user-attachments/assets/576d2a50-086d-4ab7-88ef-82a148e32fe3" /> <img width="796" height="314" alt="Image" src="https://github.com/user-attachments/assets/6ae6428f-9e89-4818-80a7-500305b1da97" /> ### Screenshot and/or share link _No response_ ### Operating System macOS 15.7.3 ### Terminal Ghostty
yindo added the bug label 2026-02-16 18:09:30 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 1, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #11062: Web UI reports 'No changes' even after agent has made changes - Same root cause where changes aren't reflected back to the UI
  • #11538: File changes in the desktop version are not reflected in the file list - Desktop/web version of the same issue
  • #10716: TUI session_diff tracking not working on Windows - files remain empty - Directly relates to missing diff data that OpenCode should send back
  • #5171: plugins: file.edited event missing before text - Addresses the broader issue that OpenCode's events don't provide proper diff/change information
  • #7632: The JetBrains ACP invocation gets stuck in the 'thinking' state - Another ACP integration issue with state change communication

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.

@github-actions[bot] commented on GitHub (Feb 1, 2026): This issue might be a duplicate of existing issues. Please check: - #11062: Web UI reports 'No changes' even after agent has made changes - Same root cause where changes aren't reflected back to the UI - #11538: File changes in the desktop version are not reflected in the file list - Desktop/web version of the same issue - #10716: TUI session_diff tracking not working on Windows - files remain empty - Directly relates to missing diff data that OpenCode should send back - #5171: plugins: `file.edited` event missing `before` text - Addresses the broader issue that OpenCode's events don't provide proper diff/change information - #7632: The JetBrains ACP invocation gets stuck in the 'thinking' state - Another ACP integration issue with state change communication 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8246