Skip to content

Changes don't discard when message is reverted #42370

Closed as not planned
Closed as not planned

Description

@AssabTigleG

Description

Changes don't discard when message is reverted (in some projects)

I use other agents too (for example: Antigravity), they successfully discard all changes from the reverted point, but in some project, open code doesn't do that

Plugins

Caveman, Magic Context

OpenCode version

1.18.18

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 10 22H2 (19045.6466)

Terminal

No response

Activity

  1. github-actions commented on Aug 13, 2026

    @github-actions
    Contributor

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

    Both describe the same symptom — reverting/undoing a message does not discard the actual file changes. If your issue matches, please add a comment there with any additional context (especially around which projects it fails in vs. succeeds in, since you mention it works in some but not others).

  2. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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