Skip to content

/undo only rolls back conversation, not file changes — Windows OpenCode Desktop v1.15.11 #29522

Closed as not planned

Description

@wuyonghui0810

Describe the bug
/undo command only removes the AI conversation message from chat history, but does NOT revert the actual file changes made by the AI. Files remain modified in the workspace.

To Reproduce

  1. Open OpenCode Desktop v1.15.11 on Windows
  2. Ask the AI to modify a file (e.g., add a function)
  3. Let the AI apply the changes
  4. Type /undo in chat
  5. Observe: conversation message disappears, but the file changes remain

Expected behavior
/undo should restore the file to its state before the AI's modification (roll back the file changes), not just hide the chat message.

Screenshots / Screen recording
N/A — easily reproducible

Version info

  • OpenCode Desktop: v1.15.11
  • OS: Windows (Windows 11 / Windows 10)
  • Installation type: Desktop App (Windows)

Additional context
Existing issue #5474 (reported Dec 2025) describes the same behavior for the CLI version. This confirms the bug also affects the Windows Desktop build. The issue is still open and appears unresolved.

Activity

  1. github-actions commented on May 27, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue is covered by one of the above, please consider closing this one and adding any new context (such as Windows-specific reproduction) to the existing thread.

  2. github-actions commented on Jul 27, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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