Skip to content

Undo/Redo history broken — changes create new file instead of preserving history #2279

@rauf322

Description

@rauf322

I’ve run into a problem with undo/redo functionality when OpenCode makes edits to a file.

After OpenCode applies changes, the undo/redo history does not work.
Instead of updating the existing file, it seems to create a new file state each time.

In Neovim, undotree is empty after OpenCode makes modifications, so I cannot step back through previous edits.
This makes it impossible to use normal undo/redo workflows, since there’s no history to revert.

You are free to have a look at my .config file maybe a have some nvim/.zshrc set up which prevents opencode modify files properly

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions