bug: hitting /undo after answering question undoes last prompt #8792

Open
opened 2026-02-16 18:10:51 -05:00 by yindo · 1 comment
Owner

Originally created by @goszczynskip on GitHub (Feb 7, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

When I want /undo after answering question I expect to get back to the same question so I can answer differently.

Currently I'm undoing the last message preceding question. Wasting all model analysis between last message and question asked.

Plugins

No response

OpenCode version

v1.1.53

Steps to reproduce

  1. Make model ask question
  2. Answer it
  3. hit /undo
  4. Back at the start :(

Screenshot and/or share link

No response

Operating System

macOS 26.2

Terminal

Ghostty

Originally created by @goszczynskip on GitHub (Feb 7, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description When I want /undo after answering question I expect to get back to the same question so I can answer differently. Currently I'm undoing the last message preceding question. Wasting all model analysis between last message and question asked. ### Plugins _No response_ ### OpenCode version v1.1.53 ### Steps to reproduce 1. Make model ask question 2. Answer it 3. hit /undo 4. Back at the start :( ### Screenshot and/or share link _No response_ ### Operating System macOS 26.2 ### Terminal Ghostty
yindo added the bug label 2026-02-16 18:10:51 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 7, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #8589: [FEATURE] Allow questions to be valid fork/undo points - This is a feature request describing the exact behavior you expect (being able to undo back to a question and answer differently)
  • #12201: BUG: Undo undoes MY changes in built-in Plan agent - Demonstrates core problems with how /undo works and reverting too much
  • #10287: Critical bug revert undo messages - High severity issue with /undo reverting to incorrect states
  • #5910: Undo previous message incorrectly restores project state - Indicates the undo/snapshot system has fundamental state tracking issues

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Feb 7, 2026): This issue might be a duplicate of existing issues. Please check: - #8589: [FEATURE] Allow questions to be valid fork/undo points - This is a feature request describing the exact behavior you expect (being able to undo back to a question and answer differently) - #12201: BUG: Undo undoes MY changes in built-in Plan agent - Demonstrates core problems with how /undo works and reverting too much - #10287: Critical bug revert undo messages - High severity issue with /undo reverting to incorrect states - #5910: Undo previous message incorrectly restores project state - Indicates the undo/snapshot system has fundamental state tracking issues Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8792