fix(core/agents): handle updated truncation tuple

This commit is contained in:
James Peter
2025-09-25 17:11:57 +10:00
parent 4ab4f82d41
commit c47f676795
+1 -1
View File
@@ -5076,7 +5076,7 @@ fn preview_first_n_lines(s: &str, n: usize) -> (String, usize) {
let total_lines = s.lines().count();
let mut preview = s.lines().take(n).collect::<Vec<_>>().join("\n");
let (maybe_truncated, was_truncated) =
let (maybe_truncated, was_truncated, _, _) =
truncate_middle_bytes(&preview, AGENT_PREVIEW_MAX_BYTES);
if was_truncated {
preview = maybe_truncated;