You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Reverting a message in TUI or desktop app does not revert changed files #20638
When reverting a message in the TUI or desktop app, the changed files are not reverted to their previous state. The files remain modified even though the chat message has been reverted.
Expected behavior:
When a message is reverted, any file modifications or creations associated with that message and all subsequent messages should be undone in the working directory, restoring the files to their exact state prior to the reverted message.
Plugins
opencode-claude-auth
OpenCode version
1.3.13
Steps to reproduce
Start a session in the TUI or desktop app.
Have the agent modify or create `File1`.
In a subsequent message, have the agent modify or create `File2`.
Revert the message where `File2` was changed.
Observe that `File2` is still in the exact same modified state.
Activity
github-actions commentedon Apr 2, 2026
This issue might be a duplicate of existing issues. Please check:
/undocommand only rolls back AI conversation message, not the associated file changes #5474:/undocommand only rolls back the AI conversation message but not the associated file changes — describes the same symptom (revert removes the chat message but files remain modified)/session/:id/revertreturns true but does not restore the requested file or retain the requested messageID/partID #20955 as a duplicate of this issuegithub-actions commentedon Jul 4, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.