Add support for opencode run --session id /undo #1561

Closed
opened 2026-02-16 17:31:34 -05:00 by yindo · 2 comments
Owner

Originally created by @remorses on GitHub (Sep 2, 2025).

Originally assigned to: @thdxr on GitHub.

I would like to programmatically undo the last message of a session

Originally created by @remorses on GitHub (Sep 2, 2025). Originally assigned to: @thdxr on GitHub. I would like to programmatically undo the last message of a session
yindo closed this issue 2026-02-16 17:31:34 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 2, 2025):

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

  • #1048: Requests an undo tool/feature to revert agent changes, with similar motivation for undoing unwanted modifications
  • #566: Requests editing/retrying messages in history, which includes the ability to go back and modify conversation flow
  • #338: Requests a rewind feature to roll back file changes and messages to previous points, very similar concept to undo
  • #315: Requests CLI session interaction capabilities including message management, which overlaps with programmatic session control

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

@github-actions[bot] commented on GitHub (Sep 2, 2025): This issue might be a duplicate of existing issues. Please check: - #1048: Requests an undo tool/feature to revert agent changes, with similar motivation for undoing unwanted modifications - #566: Requests editing/retrying messages in history, which includes the ability to go back and modify conversation flow - #338: Requests a rewind feature to roll back file changes and messages to previous points, very similar concept to undo - #315: Requests CLI session interaction capabilities including message management, which overlaps with programmatic session control Feel free to ignore if none of these address your specific case.
Author
Owner

@remorses commented on GitHub (Sep 7, 2025):

I ended up using the sdk instead for this use case

@remorses commented on GitHub (Sep 7, 2025): I ended up using the sdk instead for this use case
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1561