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

This commit is contained in:
M57
2026-09-18 12:15:54 +03:00
committed by GitHub
parent a415445bbf
commit 7290b300ab
2 changed files with 15 additions and 1 deletions
@@ -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"