Skip to content

Commit 5128ffa

Browse files
committed
Lock variant and prompt edits while judge is running
Both fields now disable on isLocked (streaming OR judging) instead of just isStreaming, matching the gating already applied to the Run button and header inputs. Also gate the JudgeCard on !isStreaming so a stale verdict from the previous run doesn't render alongside a new in-flight stream.
1 parent 9e094c9 commit 5128ffa

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

src/web/components/VariantColumn.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,13 @@ export function VariantColumn(props: {
209209

210210
<VariantEditor
211211
value={column.variantContent}
212-
disabled={isStreaming}
212+
disabled={isLocked}
213213
onChange={(v) => void props.onPatchColumn(column.id, { variantContent: v })}
214214
/>
215215

216216
<PromptField
217217
value={column.prompt}
218-
disabled={isStreaming}
218+
disabled={isLocked}
219219
onChange={(v) => void props.onPatchColumn(column.id, { prompt: v })}
220220
/>
221221

@@ -270,11 +270,12 @@ export function VariantColumn(props: {
270270
</div>
271271
)}
272272

273-
{runBundle?.judge ? (
274-
<JudgeCard judge={runBundle.judge} />
275-
) : isJudging ? (
276-
<JudgeCard judging />
277-
) : null}
273+
{!isStreaming &&
274+
(runBundle?.judge ? (
275+
<JudgeCard judge={runBundle.judge} />
276+
) : isJudging ? (
277+
<JudgeCard judging />
278+
) : null)}
278279
</div>
279280
);
280281
}

0 commit comments

Comments
 (0)