agent2: Refine terminal tool call display (#35984)
Release Notes: - N/A
This commit is contained in:
parent
54d4665100
commit
094e878ccf
2 changed files with 309 additions and 40 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue