From 057599773b7c0103847a91f350445eb187d1a85c Mon Sep 17 00:00:00 2001 From: Rob von Behren Date: Sat, 28 Mar 2026 00:39:20 -0700 Subject: [PATCH] fix(bmj): account for pending scenarios in rli display 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 --- src/commands/benchmark-job/watch.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/commands/benchmark-job/watch.ts b/src/commands/benchmark-job/watch.ts index ea829fb8..307f0433 100644 --- a/src/commands/benchmark-job/watch.ts +++ b/src/commands/benchmark-job/watch.ts @@ -147,6 +147,12 @@ function formatRunProgressLine(progress: RunProgress): string { parts.push(`${progress.scoring} scoring`); } + // Pending = scenarios not yet started (expected minus actually started) + const notStarted = total - progress.started; + if (notStarted > 0) { + parts.push(`${notStarted} pending`); + } + if (progress.avgScore !== null) { parts.push(`score: ${(progress.avgScore * 100).toFixed(0)}%`); }