Reduce diff induced UI craches (#794)

This commit is contained in:
Solomon
2025-09-20 12:26:08 +01:00
committed by GitHub
parent 18c88324fc
commit 6e4e6f92ce
6 changed files with 336 additions and 65 deletions

View File

@@ -20,6 +20,11 @@ pub struct Diff {
pub new_path: Option<String>,
pub old_content: Option<String>,
pub new_content: Option<String>,
/// True when file contents are intentionally omitted (e.g., too large)
pub content_omitted: bool,
/// Optional precomputed stats for omitted content
pub additions: Option<usize>,
pub deletions: Option<usize>,
}
#[derive(Debug, Clone, Serialize, Deserialize, TS)]