fix(cli): restore moved files during snapshot revert

This commit is contained in:
Josh Lambert
2026-06-14 21:48:49 -04:00
parent fcb8802aa5
commit 8db7b68583
2 changed files with 11 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@kilocode/cli": patch
---
Restore files to their original paths when reverting a task that moved or renamed them.
+6 -1
View File
@@ -420,7 +420,12 @@ export const layer: Layer.Layer<Service, never, Requirements> =
Effect.gen(function* () {
yield* add()
const result = yield* git(
[...quote, ...args(["diff", "--cached", "--no-ext-diff", "--name-only", hash, "--", "."])],
// kilocode_change start
[
...quote,
...args(["diff", "--cached", "--no-ext-diff", "--no-renames", "--name-only", hash, "--", "."]),
],
// kilocode_change end
{
cwd: state.directory,
},