Skip to content

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

@natewill

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktop

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions