anomalyco / anomalyco/opencode

/undo does not undo todos

Open
#46,872 1 comment 0 reactions 1 assignee View on GitHub

@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
  1. Start a new session
  2. Send "create a new todo that says test"
  3. Send "/undo"
  4. Notice how the test todo created in the first
Screenshot and/or share link
Image
Operating System

Ubuntu 22.04.5 LTS under WSL2

Terminal

Windows Terminal with tmux

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.