mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-10-29 18:52:45 +08:00
* core: fix revert diff showing incorrect changes after file restore When reverting a session, the diff was computed after files were already reverted to their pre-change state, producing an empty or wrong diff. By computing the diff before restoring files, the revert summary now correctly reflects what was actually undone for the user. * core: reduce revert diff size in DB to save storage Full file contents were being stored in the session summary diffs, causing unnecessary database bloat. The webview RevertBanner only needs file path, line counts, and status — not the full diff content. * chore(cli): add kilocode_change markers to revert diff changes --------- Co-authored-by: Marius <marius@kilocode.ai>