Skip to content

Commit

Permalink
Print more streaming data at the top level
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Feb 17, 2024
1 parent 6266259 commit 572729c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/monitor/display.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,10 @@ func (l *livePrinter) formatContent(event runner.Event, c call) string {
prefix := fmt.Sprintf(" content [%s] content | ", l.callIDMap[c.ID])
var lines []string
for _, line := range strings.Split(event.Content, "\n") {
if len(line) > 100 {
line = line[:100] + " ..."
if c.ParentID != "" {
if len(line) > 100 {
line = line[:100] + " ..."
}
}
lines = append(lines, prefix+line)
}
Expand Down

0 comments on commit 572729c

Please sign in to comment.