Skip to content

Commit 41afb6d

Browse files
committed
Render tool results as plain dim text rows instead of boxed panels
1 parent bb15e40 commit 41afb6d

2 files changed

Lines changed: 7 additions & 14 deletions

File tree

python_agent_harness/tui.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -650,17 +650,10 @@ def _build_history_rows(self, full: bool = False) -> list[Any]:
650650
elapsed = ""
651651
if call is not None and call.elapsed is not None:
652652
elapsed = f" ({call.elapsed:.1f}s)"
653-
title = Text(f"{marker} {name} result{elapsed}:", style=marker_style)
654-
rows.append(
655-
Panel(
656-
preview,
657-
title=title,
658-
box=box.ROUNDED,
659-
expand=False,
660-
padding=(0, 1),
661-
style="dim",
662-
)
663-
)
653+
row = Text(style="dim")
654+
row.append(f"{marker} {name} result{elapsed}:", style=marker_style)
655+
row.append(f"\n{preview}")
656+
rows.append(row)
664657
if call is not None and call.diff:
665658
rows.append(render_diff(call.diff))
666659
return rows

tests/test_tui.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ def test_render_conversation(self):
5858
self.assertIn("file contents", out)
5959
self.assertIn("Todos", out)
6060

61-
def test_tool_result_boxed_with_marker_title(self):
62-
"""Tool results render as a box whose title carries the
63-
✓/✗ marker (and the elapsed time when recorded)."""
61+
def test_tool_result_marker_with_elapsed(self):
62+
"""Tool results render as a plain dim text row whose first line
63+
carries the ✓/✗ marker (and the elapsed time when recorded)."""
6464
tui, buf = make_tui()
6565
tui.session.last_messages = [
6666
Message(role="user", content="run it"),

0 commit comments

Comments
 (0)