mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
fix(core/agents): handle updated truncation tuple
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user