Skip to content

undo does not undo todo list, resulting in agents continuing on the same path as the undo #4081

@riatzukiza

Description

@riatzukiza

Description
Undo does not revert the todo list. After an undo, agents continue following the pre-undo plan instead of the reverted state.

Steps to reproduce

  1. Create or modify a todo list via the agent
  2. Trigger an undo of the last step
  3. Observe that the todo list is not rolled back and agents continue with the old plan

Expected behavior

  • Undo should also restore the todo list to its prior state; agents resume using the rolled-back plan

Actual behavior

  • Todo list remains unchanged; agents continue on the same path as before the undo

Impact

  • Agents repeat undesired actions and waste time; user intent not respected

Workaround

  • Manually clear or replace the todo list after undo

Environment

  • OpenCode version: 1.0.45
  • OS/Terminal: please fill

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions