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
- Create or modify a todo list via the agent
- Trigger an undo of the last step
- 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