tui: left-align subagent list, hide finished agents after 20s

This commit is contained in:
hermes committed 2026-10-06 15:02:06 +00:00
1 parent b223fd1f22
commit a3b545d240
3 files changed
+20 -11

No files matched your search

+4
View File
@@ -76,6 +76,10 @@ impl Shared {
let end = *self.ended.lock().unwrap_or_else(|e| e.into_inner());
end.unwrap_or_else(Instant::now) - self.started
}
/// Time since the child finished; `None` while running.
pub fn since_end(&self) -> Option<std::time::Duration> {
(*self.ended.lock().unwrap_or_else(|e| e.into_inner())).map(|t| t.elapsed())
}
}
pub struct Sub {