tui: separator above final agent message (#4324)

Adds a separator line before the final agent message

<img width="1011" height="884" alt="Screenshot 2025-09-26 at 4 55 01 PM"
src="https://github.com/user-attachments/assets/7c91adbf-6035-4578-8b88-a6921f11bcbc"
/>
This commit is contained in:
Jeremy Rose
2025-09-26 22:49:59 -07:00
committed by GitHub
parent 90c3a5650c
commit c0960c0f49
6 changed files with 61 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ pub(crate) struct StatusIndicatorWidget {
// Format elapsed seconds into a compact human-friendly form used by the status line.
// Examples: 0s, 59s, 1m 00s, 59m 59s, 1h 00m 00s, 2h 03m 09s
fn fmt_elapsed_compact(elapsed_secs: u64) -> String {
pub fn fmt_elapsed_compact(elapsed_secs: u64) -> String {
if elapsed_secs < 60 {
return format!("{elapsed_secs}s");
}
@@ -142,7 +142,7 @@ impl StatusIndicatorWidget {
elapsed.as_secs()
}
fn elapsed_seconds(&self) -> u64 {
pub fn elapsed_seconds(&self) -> u64 {
self.elapsed_seconds_at(Instant::now())
}
}