anomalyco / anomalyco/opencode
[BUG] Desktop: Inconsistent Undo Shortcut / Not Working For Pasted Text
Open
@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:
- 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.
- 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
- type any number of characters in the main chat e.g. "hello world"
- paste some text after the typed text e.g. pasting " orange" after "hello world" -> "hello world orange"
- pressing the undo shortcut -> unpredictable text deletion.
Screenshot and/or share link
- pre-existing text
- pasted " orange" over the top off the pre-existing text
- pressing the undo shortcut (for me "command + z") returns me to this state
Operating System
macOS 26.5.2
Terminal
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.