Up diff limits to 150kB (#845)

This commit is contained in:
Alex Netsch
2025-09-25 09:06:18 +01:00
committed by GitHub
parent ccc51b65d0
commit 8d7b1c6fa5
2 changed files with 2 additions and 2 deletions

View File

@@ -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.

View File

@@ -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")]