Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/lk/simulate_ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ func writeRunResults(w io.Writer, run *livekit.SimulationRun, ap *AgentProcess)
if run.Summary != nil {
writeRunSummary(w, run)
} else {
msg := "The summary for this run is not available"
msg := "The summary and chat transcripts for this run are not available yet"
if run.Error != "" {
msg = run.Error
}
Expand Down
10 changes: 10 additions & 0 deletions cmd/lk/simulate_tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ func runSimulateTUI(config *simulateConfig) error {
}
}

// The summary (which carries the chat transcripts) may have landed after
// the TUI's last poll; refresh once so the report includes it.
if m.run != nil && m.run.Summary == nil && m.runID != "" {
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
if run, err := getSimulationRun(ctx, config.client, m.runID); err == nil && run != nil {
m.run = run
}
cancel()
}

// Always leave a plain-text record of the run, like the agent log.
if path := m.reporter.Finish(m.run, m.agent, m.brokenAgent, m.getDashboardURL()); path != "" {
out.Statusf("Run report: %s", path)
Expand Down
Loading