feat(subagent): add progress event handling and formatting for subagent execution

This commit is contained in:
asepharyana
2026-07-15 02:25:15 +07:00
parent 472c597c5e
commit 558908aef2
5 changed files with 52 additions and 7 deletions
+6 -4
View File
@@ -141,10 +141,12 @@ pub fn draw_workflow_panel(frame: &mut Frame, area: Rect, state: &crate::app::st
Span::styled(err.clone(), Style::default().fg(Theme::ERROR)),
]));
} else if let Some(ref prog) = agent.status.progress {
card_lines.push(Line::from(vec![
Span::styled(" ", Style::default()),
Span::styled(prog.clone(), Style::default().fg(Theme::TEXT_DIM).add_modifier(Modifier::ITALIC)),
]));
for line in prog.lines().take(2) {
card_lines.push(Line::from(vec![
Span::styled(" ", Style::default()),
Span::styled(line.to_string(), Style::default().fg(Theme::TEXT_DIM).add_modifier(Modifier::ITALIC)),
]));
}
}
}