diff --git a/cli/tui.go b/cli/tui.go index a4e141a..2d9e545 100644 --- a/cli/tui.go +++ b/cli/tui.go @@ -423,7 +423,7 @@ func (t *TUI) functionCallsView(now time.Time) string { for i := range rows.rows { maxFunctionWidth = max(maxFunctionWidth, ansi.PrintableRuneWidth(rows.rows[i].function)) } - functionColumnWidth := max(9, min(50, maxFunctionWidth)) + functionColumnWidth := max(20, min(50, maxFunctionWidth)) // Render the table. b.WriteString(tableHeaderView(functionColumnWidth)) @@ -561,7 +561,15 @@ func (t *TUI) buildRows(now time.Time, id DispatchID, isLast []bool, rows *rowBu spinner = spinnerStyle.Render(t.spinner.View()) } - attempts := n.failures + 1 + attempts := n.failures + if n.running { + attempts++ + } else if n.done && n.status == sdkv1.Status_STATUS_OK { + attempts++ + } else if n.responses > n.failures { + attempts++ + } + attempts = max(attempts, 1) var elapsed time.Duration if !n.creationTime.IsZero() {