feat(tui): implement agent turn engine for background processing and enhance input handling

This commit is contained in:
asepharyana committed 2026-07-20 10:55:09 +07:00
1 parent da2ed6da25
commit 792695b65a
31 files changed
+603 -153

No files matched your search

+4 -2
View File
@@ -186,12 +186,14 @@ pub fn render_markdown(text: &str, width: u16, dim: bool) -> Vec<Span<'static>>
if width > 0 && total_width > available_width && available_width > 0 {
while total_width > available_width {
let max_idx = col_widths
let Some(max_idx) = col_widths
.iter()
.enumerate()
.max_by_key(|&(_, &w)| w)
.map(|(i, _)| i)
.unwrap();
else {
break;
};
if col_widths[max_idx] <= 3 {
break;
}