GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [BUG] restore destroys user changes if done in a chain · Issue #20781 · anomalyco/opencode

[BUG] restore destroys user changes if done in a chain #20781

New issue
Copy link
New issue
Copy link
Closed
#20780
Closed
[BUG] restore destroys user changes if done in a chain#20781
#20780
Copy link
Assignees
rekram1-node
Labels
bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Description

@natewill
natewill
opened on Apr 3, 2026
Issue body actions

Description

When users restored earlier messages while later messages in the same chain remained reverted, file changes from the restored messages could still stay missing on disk. This happened because the server updated the revert point without first restoring the saved pre-revert snapshot, so the repo state could fall out of sync with the revert stack

Plugins

No response

OpenCode version

No response

Steps to reproduce

  1. Start a session in a repo with three files, for example a.txt, b.txt, and c.txt.
  2. Create three messages where each message changes a different file:
    • message a changes a.txt
    • message b changes b.txt
    • message c changes c.txt
  3. Revert from message a, so all three messages are reverted.
  4. Restore message a, then restore message b, while leaving message c reverted.
  5. Check the files on disk with cat

Expected

  • a.txt and b.txt should be restored
  • c.txt should still be reverted

Actual

  • file changes from the restored messages could still remain missing on disk
  • the repo state could be out of sync with what the UI showed as restored vs. still reverted

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. natewill
    added
    bugSomething isn't working
    on Apr 3, 2026
  2. github-actions
    assigned
    rekram1-node
    on Apr 3, 2026
  3. github-actions
    added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 3, 2026
  4. nexxeln
    closed this as completedin #20780on Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.