/undo and /timeline undo does not revert file edits #3097

Open
opened 2026-02-16 17:38:37 -05:00 by yindo · 7 comments
Owner

Originally created by @Salloxy on GitHub (Nov 24, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

title explains everything, it does not revert the file edits even in a project that uses git.

2025-11-24T200915.log

out.json

OpenCode version

1.0.108

Steps to reproduce

No response

Screenshot and/or share link

https://opencode.ai/s/vDRZWzAZ

Operating System

Windows 11

Terminal

Windows Terminal

Originally created by @Salloxy on GitHub (Nov 24, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description title explains everything, it does not revert the file edits even in a project that uses git. [2025-11-24T200915.log](https://github.com/user-attachments/files/23731557/2025-11-24T200915.log) [out.json](https://github.com/user-attachments/files/23731593/out.json) ### OpenCode version 1.0.108 ### Steps to reproduce _No response_ ### Screenshot and/or share link https://opencode.ai/s/vDRZWzAZ ### Operating System Windows 11 ### Terminal Windows Terminal
yindo added the windowsopentuibug labels 2026-02-16 17:38:37 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 24, 2025):

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

  • #2612: Minor fix - /undo after an agent did some task does undo the work of that agent but doesn't remove the agent's tab
  • #4081: undo does not undo todo list, resulting in agents continuing on the same path as the undo
  • #4152: [FEATURE]: Integrate /undo with Git for Better Change Tracking (related feature request for git integration with undo)

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

@github-actions[bot] commented on GitHub (Nov 24, 2025): This issue might be a duplicate of existing issues. Please check: - #2612: Minor fix - /undo after an agent did some task does undo the work of that agent but doesn't remove the agent's tab - #4081: undo does not undo todo list, resulting in agents continuing on the same path as the undo - #4152: [FEATURE]: Integrate /undo with Git for Better Change Tracking (related feature request for git integration with undo) Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Nov 24, 2025):

im assuming this has to do with windows but ill look into it

@rekram1-node commented on GitHub (Nov 24, 2025): im assuming this has to do with windows but ill look into it
Author
Owner

@dhruvkej9 commented on GitHub (Dec 30, 2025):

im assuming this has to do with windows but ill look into it

Also the todos list don't get reverted, this is critical bug please fix this

@dhruvkej9 commented on GitHub (Dec 30, 2025): > im assuming this has to do with windows but ill look into it Also the todos list don't get reverted, this is critical bug please fix this
Author
Owner

@tech-shrimp commented on GitHub (Jan 14, 2026):

It seems /redo /undo command could not revert filess when first time to use a folder as project folder .
We I restart opencode, it works.

@tech-shrimp commented on GitHub (Jan 14, 2026): It seems /redo /undo command could not revert filess when **first time** to use a folder as project folder . We I restart opencode, it works.
Author
Owner

@dhruvkej9 commented on GitHub (Jan 14, 2026):

It seems /redo /undo command could not revert filess when first time to use a folder as project folder .
We I restart opencode, it works.

They are currently not fixing the basic features and adding more, idk why

@dhruvkej9 commented on GitHub (Jan 14, 2026): > It seems /redo /undo command could not revert filess when **first time** to use a folder as project folder . > We I restart opencode, it works. They are currently not fixing the basic features and adding more, idk why
Author
Owner

@afshawnlotfi commented on GitHub (Jan 15, 2026):

Same issue, just installed OpenCode for the first time and undo didn't work on first launch with first session until I completely relaunched it and did a new session. Something going wrong during initial setup

@afshawnlotfi commented on GitHub (Jan 15, 2026): Same issue, just installed OpenCode for the first time and undo didn't work on first launch with first session until I completely relaunched it and did a new session. Something going wrong during initial setup
Author
Owner

@kevinarch commented on GitHub (Jan 21, 2026):

Same here.

OpenCode version
1.1.23

Steps to reproduce
No response

Operating System
macOS

Terminal
VSCode Terminal

@kevinarch commented on GitHub (Jan 21, 2026): Same here. OpenCode version 1.1.23 Steps to reproduce No response Operating System macOS Terminal VSCode Terminal
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3097