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

@@ -296,6 +296,20 @@ class ToolViewBuilderTest {
assertFalse(view.detail.contains("done"))
}
@Test
fun `process_manage poll renders output_preview`() {
val view =
build(
"process_manage",
"""{"action":"poll","session_id":"proc-1"}""",
"""{"status":"running","output_preview":"listening on port 8080"}""",
)
assertEquals("poll: proc-1", view.subtitle)
assertTrue(view.detail.contains("Status: running"))
assertTrue(view.detail.contains("listening on port 8080"))
}
@Test
fun `todo_list alias activates TodoRenderer`() {
val view =