anomalyco / anomalyco/opencode

doing /undo and then quickly sending next matches glitches and hides our new chat instruction under a 'reverted' label

Open
#44,357 1 comment 0 reactions 1 assignee View on GitHub

@simonklee is already working on this.

Since Aug 23, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

ps: typo -> message not matches
basically when i press /undo to revert recent changes the command itself goes forward and then when i send some other command quickly enough it shows 2 reverted messages (the undo triggers a little late and revert the undoed and the newly send message both) and my latest command gets hidden, so basically to avoid this we have to wait for this undo to show '1 message reverted' before sending another command because that another command instead of getting queued literally disappears when this reverted pop up appears, leading to bad ux experience.

Plugins

No response

OpenCode version

1.18.21

Steps to reproduce
  1. have some file changed during an edit and do /undo
  2. the previous message will instantly come up even before the chat is reset press enter on it
  3. this message will be send again and then after a while it will be vanished under '2 messages reverted' rather than 1.
Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.