agent: Fix tool use output rendering (#28146)

Tool use output wouldn't get rendered in some states.

Release Notes:

- N/A
This commit is contained in:
Agus Zubiaga 2025-04-05 10:16:24 -03:00 committed by GitHub
parent 2462b949bc
commit b78ac5410f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -706,7 +706,11 @@ impl ActiveThread {
tool_use.id.clone(),
tool_use.ui_text.clone(),
&tool_use.input,
"".into(),
self.thread
.read(cx)
.tool_result(&tool_use.id)
.map(|result| result.content.clone().into())
.unwrap_or("".into()),
window,
cx,
);