agent2: Refine terminal tool call display (#35984)

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2025-08-11 17:50:47 -03:00 committed by Orual
parent c4f3462fac
commit fdfb0662c1
No known key found for this signature in database
2 changed files with 309 additions and 40 deletions

View file

@ -29,8 +29,14 @@ impl Terminal {
cx: &mut Context<Self>,
) -> Self {
Self {
command: cx
.new(|cx| Markdown::new(command.into(), Some(language_registry.clone()), None, cx)),
command: cx.new(|cx| {
Markdown::new(
format!("```\n{}\n```", command).into(),
Some(language_registry.clone()),
None,
cx,
)
}),
working_dir,
terminal,
started_at: Instant::now(),