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 GitHub
parent 54d4665100
commit 094e878ccf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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(),