Up diff limits to 150kB (#845)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user