We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a77190 commit 9b931c2Copy full SHA for 9b931c2
webqa_agent/utils/task_display_util.py
@@ -128,9 +128,9 @@ def _render_frame(self):
128
out.write("-" * col + "\n")
129
length = min(self.num_log, len(lines))
130
for ln in range(length):
131
- line = lines[-length + ln]
132
- if len(remove_ansi_escape_sequences(str(line))) >= col:
133
- out.write("... (to long) \n")
+ line = remove_ansi_escape_sequences(str(lines[-length + ln]))
+ if len(line) >= col:
+ out.write(f"{line[:col-3]}"+"...\n")
134
else:
135
out.write(line + "\n")
136
out.flush()
0 commit comments