anomalyco / anomalyco/opencode

[BUG] Desktop: Inconsistent Undo Shortcut / Not Working For Pasted Text

Open
#38,301 1 comment 0 reactions 1 assignee View on GitHub

@Brendonovich is already working on this.

Since Jul 22, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
Avg merge
7h 2m
Merged PRs (30d)
384

Description

Description

Some behaviours I've experienced with the undo shortcut:

  1. When writing text and pasting text afterwards, pressing the undo shortcut ('command + z' on mac, 'ctrl + z' on windows, etc) does not undo the pasting of text. The undo action only applies to the typed text which existed beforehand.
  2. When writing text and pasting text afterwards, pressing the undo shortcut ('command + z' on mac, 'ctrl + z' on windows, etc) deletes all text typed with the exception of an odd character leftover.
Plugins

No response

OpenCode version

Version 1.17.13 (1.17.13)

Steps to reproduce
  1. type any number of characters in the main chat e.g. "hello world"
  2. paste some text after the typed text e.g. pasting " orange" after "hello world" -> "hello world orange"
  3. pressing the undo shortcut -> unpredictable text deletion.
Screenshot and/or share link
  1. pre-existing text
Image
  1. pasted " orange" over the top off the pre-existing text
Image
  1. pressing the undo shortcut (for me "command + z") returns me to this state
Image
Operating System

macOS 26.5.2

Terminal

No response

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.