tui: reduce exec output preview to 2 head lines and 5 tail lines

This commit is contained in:
James Peter
2025-08-21 10:18:40 +10:00
parent 41383d8d0c
commit 352ce75f75
+3 -3
View File
@@ -1086,9 +1086,9 @@ impl HistoryCell for StreamingContentCell {
// ==================== Helper Functions ====================
// Unified preview format: show first 3 and last 6 non-empty lines with an ellipsis between.
const PREVIEW_HEAD_LINES: usize = 3;
const PREVIEW_TAIL_LINES: usize = 6;
// Unified preview format: show first 2 and last 5 non-empty lines with an ellipsis between.
const PREVIEW_HEAD_LINES: usize = 2;
const PREVIEW_TAIL_LINES: usize = 5;
fn build_preview_lines(text: &str, include_left_pipe: bool) -> Vec<Line<'static>> {
let processed = format_json_compact(text).unwrap_or_else(|| text.to_string());