@hej / sigit / commits / 73c0ccf

Add leading newlines to agent status messages for clarity

paydii committed Apr 26, 2026 at 15:53 UTC 73c0ccf40550a414a23a1be99fde3c4394f842e4
1 file changed +5 -5
src/main.rs
+5 -5
@@ -1234,13 +1234,13 @@ impl Agent for SiGitAgent {
1234 ((downloaded as f64 / expected_bytes as f64) * 100.0).min(99.0) as u8;
1235 let bar = progress_bar(pct, 20);
1236 format!(
1237 - "⏬ {display_name} — {bar} {pct}% ({} / {})",
1237 + "\n⏬ {display_name} — {bar} {pct}% ({} / {})",
1238 format_size_human(downloaded),
1239 format_size_human(expected_bytes),
1240 )
1241 } else {
1242 format!(
1243 - "⏬ {display_name} — {} downloaded…",
1243 + "\n⏬ {display_name} — {} downloaded…",
1244 format_size_human(downloaded)
1245 )
1246 };
@@ -1303,7 +1303,7 @@ impl Agent for SiGitAgent {
1303 let frame = SPINNER[tick % SPINNER.len()];
1304 tick += 1;
1305
1306 - let msg = format!("{frame} Loading {spinner_name}… ({elapsed_str})");
1306 + let msg = format!("\n{frame} Loading {spinner_name}… ({elapsed_str})");
1307 let notification = SessionNotification::new(
1308 spinner_session.clone(),
1309 SessionUpdate::AgentMessageChunk(ContentChunk::new(ContentBlock::from(
@@ -1327,13 +1327,13 @@ impl Agent for SiGitAgent {
1327 if needs_download {
1328 self.send_assistant_message(
1329 args.session_id.clone(),
1330 - format!("✓ {} downloaded and loaded.", new_config.display_name),
1330 + format!("\n✓ {} downloaded and loaded.", new_config.display_name),
1331 )
1332 .await;
1333 } else {
1334 self.send_assistant_message(
1335 args.session_id.clone(),
1336 - format!("✓ Switched to {}.", new_config.display_name),
1336 + format!("\n✓ Switched to {}.", new_config.display_name),
1337 )
1338 .await;
1339 }