diff --git a/crates/forge_app/src/operation.rs b/crates/forge_app/src/operation.rs index c81dc55965..948307e545 100644 --- a/crates/forge_app/src/operation.rs +++ b/crates/forge_app/src/operation.rs @@ -259,7 +259,7 @@ impl ToolOperation { "display_lines", format!("{}-{}", output.info.start_line, output.info.end_line), ) - .attr("total_lines", content.lines().count()) + .attr("total_lines", output.total_lines) .cdata(content); // Track read operations diff --git a/crates/forge_app/src/snapshots/forge_app__operation__tests__fs_read_with_explicit_range.snap b/crates/forge_app/src/snapshots/forge_app__operation__tests__fs_read_with_explicit_range.snap index 3088bf8549..95866d39f7 100644 --- a/crates/forge_app/src/snapshots/forge_app__operation__tests__fs_read_with_explicit_range.snap +++ b/crates/forge_app/src/snapshots/forge_app__operation__tests__fs_read_with_explicit_range.snap @@ -5,7 +5,7 @@ expression: to_value(actual) diff --git a/crates/forge_app/src/snapshots/forge_app__operation__tests__fs_read_with_truncation_path.snap b/crates/forge_app/src/snapshots/forge_app__operation__tests__fs_read_with_truncation_path.snap index f1904d09ac..0a091fffc2 100644 --- a/crates/forge_app/src/snapshots/forge_app__operation__tests__fs_read_with_truncation_path.snap +++ b/crates/forge_app/src/snapshots/forge_app__operation__tests__fs_read_with_truncation_path.snap @@ -5,6 +5,6 @@ expression: to_value(actual)