chore: snapshot main sync
This commit is contained in:
@@ -15,9 +15,8 @@ const TRUNCATION_LINE_THRESHOLD = 0.5;
|
||||
export function validateEditResult(
|
||||
original: string,
|
||||
updated: string,
|
||||
filePath: string,
|
||||
_filePath: string,
|
||||
): GuardResult {
|
||||
// Check for catastrophic content truncation
|
||||
if (original.length > 0 && updated.length > 0) {
|
||||
const charLoss = 1 - updated.length / original.length;
|
||||
const originalLines = original.split('\n').length;
|
||||
|
||||
Reference in New Issue
Block a user