Description
In the build mode, the code was edited using opencode. The undo command was used to perform the rollback, but only the messages could be restored, and the changes to the source code could not be recovered. The project is managed in Git.
I noticed that many issues have been discussing this problem, but none of them have been resolved. This is truly a very serious issue.
Plugins
context7, mem0, sequential-thinking, tavily-search,superpowers@git+https://github.com/obra/superpowers.git, opencode-pty, opencode-supermemory@latest, "opencode-arise"
OpenCode version
1.16.2
Steps to reproduce
- Initialize the git repository
- Make the initial commit
- Ask opencode to create a bubble sort algorithm in a Python script
- Use the /undo command to undo this operation
- Display "1 message reverted" but the code modification did not go back
Screenshot and/or share link

* the code before change
- change code with opencode in bulid mode

* execute /undo command
** the message is undo,but the code is not**
Operating System
Ubuntu 20.04.6 LTS
Terminal
Bash
Description
In the build mode, the code was edited using opencode. The undo command was used to perform the rollback, but only the messages could be restored, and the changes to the source code could not be recovered. The project is managed in Git.
I noticed that many issues have been discussing this problem, but none of them have been resolved. This is truly a very serious issue.
Plugins
context7, mem0, sequential-thinking, tavily-search,superpowers@git+https://github.com/obra/superpowers.git, opencode-pty, opencode-supermemory@latest, "opencode-arise"
OpenCode version
1.16.2
Steps to reproduce
Screenshot and/or share link
** the message is undo,but the code is not**
Operating System
Ubuntu 20.04.6 LTS
Terminal
Bash