@masslessai/push-todo 3.6.6 → 3.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/daemon.js +3 -1
- package/package.json +1 -1
package/lib/daemon.js
CHANGED
|
@@ -961,12 +961,14 @@ function handleTaskCompletion(displayNumber, exitCode) {
|
|
|
961
961
|
});
|
|
962
962
|
}
|
|
963
963
|
|
|
964
|
-
// Cleanup
|
|
964
|
+
// Cleanup internal tracking
|
|
965
965
|
taskDetails.delete(displayNumber);
|
|
966
966
|
taskLastOutput.delete(displayNumber);
|
|
967
967
|
taskStdoutBuffer.delete(displayNumber);
|
|
968
968
|
taskProjectPaths.delete(displayNumber);
|
|
969
969
|
|
|
970
|
+
// Always clean up worktree — the branch preserves all committed work.
|
|
971
|
+
// On re-run, createWorktree() recreates from the existing branch.
|
|
970
972
|
cleanupWorktree(displayNumber, projectPath);
|
|
971
973
|
updateStatusFile();
|
|
972
974
|
}
|