[PR #10406] feat(session): add Undo action to session review #13430

Closed
opened 2026-02-16 18:18:17 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/10406

State: closed
Merged: No


What does this PR do?

Adds an Undo action to the Session Review panel. Clicking it reverts the session to the previous user message and refreshes session diffs so the Review list/count stays consistent.

This provides a minimal “reject changes” path during review, partially addressing the usability gap discussed in #8704. Fixes #8704

How did you verify your code works?

Manually tested on a session with multiple file edits:

  • Review shows diffs
  • Undo reverts to the previous message
  • Review diffs/count refresh immediately after revert
    image
    8f06522fc6618d1f308b31f54299ad20
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10406 **State:** closed **Merged:** No --- ### What does this PR do? Adds an **Undo** action to the Session Review panel. Clicking it reverts the session to the previous user message and refreshes session diffs so the Review list/count stays consistent. This provides a minimal “reject changes” path during review, partially addressing the usability gap discussed in #8704. Fixes #8704 ### How did you verify your code works? Manually tested on a session with multiple file edits: - Review shows diffs - Undo reverts to the previous message - Review diffs/count refresh immediately after revert <img width="1115" height="550" alt="image" src="https://github.com/user-attachments/assets/24cfd0b0-485d-4dab-bfc3-5b23fa2ccd94" /> <img width="2258" height="866" alt="8f06522fc6618d1f308b31f54299ad20" src="https://github.com/user-attachments/assets/ff910b88-01d0-4820-bfee-34cc59380584" />
yindo added the pull-request label 2026-02-16 18:18:17 -05:00
yindo closed this issue 2026-02-16 18:18:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13430