Commit e2e0d12
Eric Bower
·
2026-05-07 10:02:53 -0400 EDT
parent 55df8b9
fix(runner): run output
1 files changed,
+5,
-7
M
main.go
M
main.go
+5,
-7
| ... | ... | @@ -585,21 +585,19 @@ func waitAndReport(cfg *Cfg, log *slog.Logger, name, jobID string) error { | |
| 585 | 585 | ||
| 586 | 586 | // Print last 25 lines of history for failed sessions only | |
| 587 | 587 | fmt.Fprintln(os.Stdout) | |
| 588 | - | for _, short := range sessionOrder { | |
| 589 | - | state := known[short] | |
| 590 | - | if state.status != "failed" { | |
| 588 | + | for _, s := range jobSessions { | |
| 589 | + | state := known[s.Short] | |
| 590 | + | if state == nil || state.status != "failed" { | |
| 591 | 591 | continue | |
| 592 | 592 | } | |
| 593 | 593 | ||
| 594 | - | full := prefix + short | |
| 595 | - | ||
| 596 | 594 | separator := strings.Repeat("\u2500", 50) | |
| 597 | 595 | fmt.Fprintln(os.Stdout, separator) | |
| 598 | - | fmt.Fprintf(os.Stdout, "Session: %s (exit %s)\n", short, state.exitCode) | |
| 596 | + | fmt.Fprintf(os.Stdout, "Session: %s (exit %s)\n", s.Short, state.exitCode) | |
| 599 | 597 | fmt.Fprintln(os.Stdout, separator) | |
| 600 | 598 | fmt.Fprintln(os.Stdout) | |
| 601 | 599 | ||
| 602 | - | history, err := fetchHistoryPlain(full) | |
| 600 | + | history, err := fetchHistoryPlain(s.Name) | |
| 603 | 601 | if err != nil { | |
| 604 | 602 | fmt.Fprintf(os.Stdout, " (history unavailable: %v)\n", err) | |
| 605 | 603 | } else { |