From f8e63b222d9f97bc6d264371c1ccb4f2d5ce6028 Mon Sep 17 00:00:00 2001 From: Theo Browne Date: Thu, 23 Jul 2026 19:42:58 -0700 Subject: [PATCH] Key pre-run model rows by environment id, not label Environment labels can collide (e.g. identical hostnames); keying the rows by label would make React mis-reconcile them. Key by the unique environment id instead. Co-Authored-By: Claude Fable 5 --- apps/web/src/components/reviewSweep/ReviewSweepView.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/reviewSweep/ReviewSweepView.tsx b/apps/web/src/components/reviewSweep/ReviewSweepView.tsx index 4c74b04a19..7fd948e83a 100644 --- a/apps/web/src/components/reviewSweep/ReviewSweepView.tsx +++ b/apps/web/src/components/reviewSweep/ReviewSweepView.tsx @@ -171,7 +171,10 @@ function SweepPreRunSummary() { // here, in the same most-recently-active order startReviewSweep uses, // so the environment/model rows never overstate the calls. const reviewed = candidates.slice(0, SWEEP_MAX_THREADS); - const models = new Map(); + const models = new Map< + string, + { environmentId: string; label: string; model: string; threads: number } + >(); for (const shell of reviewed) { const config = serverConfigs.get(shell.environmentId); const entry = models.get(shell.environmentId); @@ -180,6 +183,7 @@ function SweepPreRunSummary() { } else { const selection = config?.settings.textGenerationModelSelection; models.set(shell.environmentId, { + environmentId: shell.environmentId, label: config?.environment.label ?? shell.environmentId, model: selection ? `${selection.model}` : "server default", threads: 1, @@ -222,7 +226,7 @@ function SweepPreRunSummary() { : ""} {modelsByEnvironment.map((entry) => ( -
+
{entry.label}: {entry.model} ยท {entry.threads}{" "} {entry.threads === 1 ? "thread" : "threads"}