Skip to content

Commit 572729c

Browse files
committedFeb 17, 2024
Print more streaming data at the top level
1 parent 6266259 commit 572729c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

Diff for: ‎pkg/monitor/display.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,10 @@ func (l *livePrinter) formatContent(event runner.Event, c call) string {
141141
prefix := fmt.Sprintf(" content [%s] content | ", l.callIDMap[c.ID])
142142
var lines []string
143143
for _, line := range strings.Split(event.Content, "\n") {
144-
if len(line) > 100 {
145-
line = line[:100] + " ..."
144+
if c.ParentID != "" {
145+
if len(line) > 100 {
146+
line = line[:100] + " ..."
147+
}
146148
}
147149
lines = append(lines, prefix+line)
148150
}

0 commit comments

Comments
 (0)
Please sign in to comment.