Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Commit ·
3d0a369
1
Parent(s): a6c60ef
Show full sub-agent tool call lines, no truncation
Browse files
agent/utils/terminal_display.py
CHANGED
|
@@ -65,18 +65,16 @@ def print_tool_output(output: str, success: bool, truncate: bool = True) -> None
|
|
| 65 |
|
| 66 |
|
| 67 |
class SubAgentDisplay:
|
| 68 |
-
"""Rolling 2-line gray display of the last 2 sub-agent tool calls
|
| 69 |
|
| 70 |
_MAX_VISIBLE = 2
|
| 71 |
-
_MAX_CHARS = 20
|
| 72 |
|
| 73 |
def __init__(self):
|
| 74 |
self._calls: list[str] = []
|
| 75 |
self._lines_on_screen = 0
|
| 76 |
|
| 77 |
def update(self, tool_desc: str) -> None:
|
| 78 |
-
|
| 79 |
-
self._calls.append(truncated)
|
| 80 |
visible = self._calls[-self._MAX_VISIBLE:]
|
| 81 |
self._redraw(visible)
|
| 82 |
|
|
|
|
| 65 |
|
| 66 |
|
| 67 |
class SubAgentDisplay:
|
| 68 |
+
"""Rolling 2-line gray display of the last 2 sub-agent tool calls."""
|
| 69 |
|
| 70 |
_MAX_VISIBLE = 2
|
|
|
|
| 71 |
|
| 72 |
def __init__(self):
|
| 73 |
self._calls: list[str] = []
|
| 74 |
self._lines_on_screen = 0
|
| 75 |
|
| 76 |
def update(self, tool_desc: str) -> None:
|
| 77 |
+
self._calls.append(tool_desc)
|
|
|
|
| 78 |
visible = self._calls[-self._MAX_VISIBLE:]
|
| 79 |
self._redraw(visible)
|
| 80 |
|