Skip to content

Commit 2b7e790

Browse files
author
Sean Roberts
committed
fix: show all at end of cli run
1 parent 1ec2f73 commit 2b7e790

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/ui/LiveStatus.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ export function LiveStatus({ jobs, skippedCount = 0 }: LiveStatusProps) {
2626
const scenarioCount = new Set(jobs.map((j) => getBaseKey(j.scenarioKey))).size;
2727
const agentCount = new Set(jobs.map((j) => j.agentName)).size;
2828

29-
const activeScenarios = groupByScenario(jobs.filter(isActive));
30-
3129
const allFinished = done + failed === total && total > 0;
30+
const displayedScenarios = allFinished ? groupByScenario(jobs) : groupByScenario(jobs.filter(isActive));
31+
3232
const scoredJobs = jobs.filter((j) => j.axisScore !== undefined);
3333
const avgScore =
3434
scoredJobs.length > 0 ? Math.round(scoredJobs.reduce((sum, j) => sum + j.axisScore!, 0) / scoredJobs.length) : null;
@@ -41,8 +41,8 @@ export function LiveStatus({ jobs, skippedCount = 0 }: LiveStatusProps) {
4141
{agentCount !== 1 ? "s" : ""}
4242
</Text>
4343
<Text>{"─".repeat(50)}</Text>
44-
{activeScenarios.length > 0 ? (
45-
activeScenarios.map(({ scenarioKey, agents }) => (
44+
{displayedScenarios.length > 0 ? (
45+
displayedScenarios.map(({ scenarioKey, agents }) => (
4646
<ScenarioGroup key={scenarioKey} scenarioKey={scenarioKey} agents={agents} />
4747
))
4848
) : allFinished ? null : (

0 commit comments

Comments
 (0)