[app-server] feat: add old_content and new_content to FileChange update patches

This commit is contained in:
Owen Lin
2025-12-02 14:28:32 -08:00
parent 8532876ad8
commit ce7fc27f89
12 changed files with 221 additions and 6 deletions
@@ -1146,7 +1146,11 @@ pub struct FileUpdateChange {
pub enum PatchChangeKind {
Add,
Delete,
Update { move_path: Option<PathBuf> },
Update {
move_path: Option<PathBuf>,
old_content: String,
new_content: String,
},
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]