Description
In OpenCode, when using the /undo command to revert an AI-generated change (e.g., after the AI modified code or wrote new code), only the conversation message in the chat is rolled back, but the actual file changes made by the AI remain in the workspace. This results in a mismatch between the conversation history and the actual code state.
OpenCode version
1.0.152
Steps to reproduce
- Start a conversation with the AI in OpenCode.
- Ask the AI to make changes to a file (e.g., "add a function to main.js").
- Let the AI apply the changes to your workspace.
- Type
/undo in the chat to undo the last AI action.
- Observe: the conversation message disappears, but the file changes remain in your project.
Screenshot and/or share link
Operating System
macos 15.7.1
Terminal
item2
Description
In OpenCode, when using the
/undocommand to revert an AI-generated change (e.g., after the AI modified code or wrote new code), only the conversation message in the chat is rolled back, but the actual file changes made by the AI remain in the workspace. This results in a mismatch between the conversation history and the actual code state.OpenCode version
1.0.152
Steps to reproduce
/undoin the chat to undo the last AI action.Screenshot and/or share link
Operating System
macos 15.7.1
Terminal
item2