opencode icon indicating copy to clipboard operation
opencode copied to clipboard

fix: edit tool error after undo

Open AdiY00 opened this issue 1 month ago • 0 comments

Prevents unnecessary read/write cycles when editing files after undo / redo. From edit -> error "modified externally" -> read -> edit (extra read and edit in context + extra time) to just edit.

  • Update FileTime for reverted files in revert() and unrevert() so the edit tool sees them as freshly read rather than externally modified

*Restoring the old read time would be more semantically correct but adds complexity without functional benefit.

AdiY00 avatar Nov 30 '25 19:11 AdiY00