Skip to content

[BUG] Reverting in a long session causes revert to be unusable in desktop app #20315

Closed as not planned

Description

@natewill

Description

Due to Commit #f0542fa, reverting a message in the desktop app results in the client optimistically treating the reverted message as reverted before the server actually reverts the message. This results in the user being able to send a message before reverting is done, causing a race condition.

This is a problem because revert is very slow for messages with a lot of files, so this race condition happens a lot if you're in a long session.

Plugins

No response

OpenCode version

1.3.10

Steps to reproduce

  1. Revert a message where the message or messages after it have many files
  2. Click send in the revert prompt with a few seconds of hitting revert

Screenshot and/or share link

0331.1.mov

(turn on audio)

Operating System

No response

Terminal

No response

Activity

  1. changed the title [-][BUG] Revert button race condition causes revert to be unusable[/-] [+][BUG] Reverting in a long session causes revert to be unusable[/+] on Mar 31, 2026
  2. natewill commented on Mar 31, 2026

    @natewill
    ContributorAuthor

    I'm going to make a follow up PR

  3. changed the title [-][BUG] Reverting in a long session causes revert to be unusable[/-] [+][BUG] Reverting in a long session causes revert to be unusable in desktop app[/+] on Mar 31, 2026
  4. removed
    bugSomething isn't working
    webRelates to opencode on web / desktop
    on May 3, 2026
  5. github-actions commented on Jul 4, 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