Skip to content

Diff is not shown on CodeCompanion integration with OpenCode #11653

Description

@LazyYuuki

Description

Refer to this discussion here from OpenCode Discussion:

olimorris/codecompanion.nvim#2114 (comment)

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions