fix: header alignment, 🪪 session, commit-only version, clipboard shows text, no extra blank lines

This commit is contained in:
Helios Agent 2026-03-05 20:45:49 +01:00
parent 05a63fe911
commit 20cae0b717
No known key found for this signature in database
GPG key ID: C8259547CD8309B5
2 changed files with 9 additions and 11 deletions

View file

@ -96,10 +96,10 @@ pub fn cmd_done(action: &str, name: &str, payload: &str, success: bool, result:
crate::logger::write_line(if success { "OK" } else { "ERROR" }, &format!("{name} {payload}{result}"));
}
/// Info line for the startup header (not in table format).
/// Aligns key to a fixed width so values line up.
/// Info line for the startup header — uses same column alignment as table rows.
pub fn info_line(emoji: &str, key: &str, value: &str) {
println!(" {} {:<12} {}", emoji_cell(emoji), key, value);
// Match table layout: 2 spaces + 2-wide emoji + 2 spaces + name (NAME_W) + 2 spaces + value
println!(" {} {:<name_w$} {}", emoji_cell(emoji), key, value, name_w = NAME_W);
}
pub fn err(emoji: &str, msg: &str) {