akseljoonas HF Staff commited on
Commit
2cc31b2
·
1 Parent(s): 0986040

Show full sub-agent tool call lines, no truncation

Browse files
Files changed (1) hide show
  1. agent/utils/terminal_display.py +2 -4
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, truncated to 20 chars."""
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
- truncated = tool_desc[:self._MAX_CHARS] + ("…" if len(tool_desc) > self._MAX_CHARS else "")
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