pub fn truncate_diff_if_large(diff: &str, max_size: usize) -> String
Truncate diff if it’s too large for agents with small context windows.