From 8d7b1c6fa5ff7d9657525ed0dda57c5047f72eca Mon Sep 17 00:00:00 2001 From: Alex Netsch Date: Thu, 25 Sep 2025 09:06:18 +0100 Subject: [PATCH] Up diff limits to 150kB (#845) --- crates/local-deployment/src/container.rs | 2 +- crates/services/src/services/git.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/local-deployment/src/container.rs b/crates/local-deployment/src/container.rs index 0a5e2040..1fd14148 100644 --- a/crates/local-deployment/src/container.rs +++ b/crates/local-deployment/src/container.rs @@ -78,7 +78,7 @@ pub struct LocalContainerService { impl LocalContainerService { // Max cumulative content bytes allowed per diff stream - const MAX_CUMULATIVE_DIFF_BYTES: usize = 50 * 1024; // 50KB + const MAX_CUMULATIVE_DIFF_BYTES: usize = 150 * 1024; // 150KB // Apply stream-level omit policy based on cumulative bytes. // If adding this diff's contents exceeds the cap, strip contents and set stats. diff --git a/crates/services/src/services/git.rs b/crates/services/src/services/git.rs index db20669c..f07bf74a 100644 --- a/crates/services/src/services/git.rs +++ b/crates/services/src/services/git.rs @@ -44,7 +44,7 @@ pub struct GitService {} // Max inline diff size for UI (in bytes). Files larger than this will have // their contents omitted from the diff stream to avoid UI crashes. -const MAX_INLINE_DIFF_BYTES: usize = 50 * 1024; // ~50KB +const MAX_INLINE_DIFF_BYTES: usize = 150 * 1024; // ~150KB #[derive(Debug, Clone, Serialize, Deserialize, TS, PartialEq, Eq)] #[serde(rename_all = "snake_case")]