fix: render output_preview on process poll tool cards (#1190)

This commit is contained in:
M57 authored and GitHub committed 2026-09-18 12:15:54 +03:00
1 parent a415445bbf
commit 7290b300ab
2 files changed
+15 -1

No files matched your search

@@ -253,7 +253,7 @@ internal object ProcessRenderer : ToolRenderer {
}.joinToString("\n\n")
}
val output = ToolJson.firstString(result, listOf("output"))
val output = ToolJson.firstString(result, listOf("output", "output_preview"))
if (output.isNotEmpty()) {
val status = ToolJson.firstString(result, listOf("status"))
return "${status.takeIf { it.isNotEmpty() }?.let { "Status: $it\n" } ?: ""}$output"