From 81adcefd57ad427282a75efc1ac0efdabf05eb30 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Sat, 14 Mar 2026 16:32:03 -0400 Subject: [PATCH] Tweak `fabro logs --pretty` styling: increase indent, dim model brackets Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/crates/fabro-workflows/src/cli/logs.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/crates/fabro-workflows/src/cli/logs.rs b/lib/crates/fabro-workflows/src/cli/logs.rs index 5ffeb8ef2..724172f82 100644 --- a/lib/crates/fabro-workflows/src/cli/logs.rs +++ b/lib/crates/fabro-workflows/src/cli/logs.rs @@ -287,13 +287,15 @@ pub fn format_event_pretty(line: &str, styles: &fabro_util::terminal::Styles) -> let model = str_field(&envelope, "model").unwrap_or("?"); let text = str_field(&envelope, "text").unwrap_or(""); let header = format!( - "{} {} {} [{}]", + "{} {} {} {}{}{}", styles.dim.apply_to(&ts), "\u{1f4ac}", styles.bold.apply_to(stage), + styles.dim.apply_to("["), styles.dim.apply_to(model), + styles.dim.apply_to("]"), ); - let indent = " "; + let indent = " "; let term_width = fabro_util::terminal::Styles::terminal_width(); let wrap_width = term_width.saturating_sub(indent.len()); let rendered = styles.render_markdown_width(text, wrap_width); @@ -313,7 +315,7 @@ pub fn format_event_pretty(line: &str, styles: &fabro_util::terminal::Styles) -> None => tool.to_string(), }; Some(format!( - "{} {} {}", + "{} {} {}", styles.dim.apply_to(&ts), styles.dim.apply_to("\u{2699}"), styles.dim.apply_to(&display), @@ -334,7 +336,7 @@ pub fn format_event_pretty(line: &str, styles: &fabro_util::terminal::Styles) -> let glyph = if is_error { "\u{2717}" } else { "\u{2713}" }; let style = if is_error { &styles.red } else { &styles.green }; Some(format!( - "{} {} {}", + "{} {} {}", styles.dim.apply_to(&ts), style.apply_to(glyph), display,