anomalyco / anomalyco/opencode
/undo does not undo todos
@neriousy is already working on this.
Since Sep 2, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
I ran /undo and the todos that were added from the undid run were not reverted. This resulted in my agent to continue to do work that I did not want it to do after I sent it another prompt.
Expected behavior: /undo should restore the todo list to its state before the undone prompt.
Looks like this was attempted to be fixed, but it was never merged: https://github.com/anomalyco/opencode/pull/5516
This appears related to #4081 and #26833, which are closed, and the broader open issue #4704.
Plugins
None
OpenCode version
1.18.26
Steps to reproduce
- Start a new session
- Send "create a new todo that says test"
- Send "/undo"
- Notice how the test todo created in the first
Screenshot and/or share link
Operating System
Ubuntu 22.04.5 LTS under WSL2
Terminal
Windows Terminal with tmux
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.