tui: left-align subagent list, hide finished agents after 20s
This commit is contained in:
1 parent
b223fd1f22
commit
a3b545d240
3 files changed
+20
-11
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user