Format multiline commands (#2333)

<img width="966" height="729" alt="image"
src="https://github.com/user-attachments/assets/fa45b7e1-cd46-427f-b2bc-8501e9e4760b"
/>
<img width="797" height="530" alt="image"
src="https://github.com/user-attachments/assets/6993eec5-e157-4df7-b558-15643ad10d64"
/>
This commit is contained in:
pakrym-oai
2025-08-14 19:49:42 -07:00
committed by GitHub
parent 76df07350a
commit 5552688621
3 changed files with 75 additions and 63 deletions

View File

@@ -136,14 +136,6 @@ fn pretty_provider_name(id: &str) -> String {
}
}
pub(crate) fn new_background_event(message: String) -> PlainHistoryCell {
let mut lines: Vec<Line<'static>> = Vec::new();
lines.push(Line::from("event".dim()));
lines.extend(message.lines().map(|line| ansi_escape_line(line).dim()));
lines.push(Line::from(""));
PlainHistoryCell { lines }
}
pub(crate) fn new_session_info(
config: &Config,
event: SessionConfiguredEvent,