Skip to content

Commit c82d528

Browse files
jrvb-rlclaude
andauthored
fix(cli): account for pending scenarios in rli display (#185)
Scenarios in pending/not-yet-started states were not reflected in any counter, making the displayed numbers sum to less than the total. Added a computed "pending" count to fill the gap. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2689442 commit c82d528

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/commands/benchmark-job/watch.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ function formatRunProgressLine(progress: RunProgress): string {
147147
parts.push(`${progress.scoring} scoring`);
148148
}
149149

150+
// Pending = scenarios not yet started (expected minus actually started)
151+
const notStarted = total - progress.started;
152+
if (notStarted > 0) {
153+
parts.push(`${notStarted} pending`);
154+
}
155+
150156
if (progress.avgScore !== null) {
151157
parts.push(`score: ${(progress.avgScore * 100).toFixed(0)}%`);
152158
}

0 commit comments

Comments
 (0)