From 731c1f1f3c6677b9e1332bd26f7d962a6c0dc630 Mon Sep 17 00:00:00 2001 From: YurenHao0426 Date: Sat, 14 Feb 2026 04:15:37 +0000 Subject: Add model response selection UI when no final verdict in debate When debate ends without a judge verdict (Display Only or Self-convergence without winner), show last round responses with "Use this" buttons instead of "No final verdict" placeholder. Co-Authored-By: Claude Opus 4.6 --- frontend/src/components/Sidebar.tsx | 57 +++++++++++++++++++++++++++++++++++-- 1 file changed, 54 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Sidebar.tsx b/frontend/src/components/Sidebar.tsx index 7aed93c..672da12 100644 --- a/frontend/src/components/Sidebar.tsx +++ b/frontend/src/components/Sidebar.tsx @@ -3055,9 +3055,60 @@ const Sidebar: React.FC = ({ isOpen, onToggle, onInteract }) => { )} ) : ( -
- No final verdict -
+ (() => { + const rounds = selectedNode.data.debateData!.rounds; + const lastRound = rounds.length > 0 ? rounds[rounds.length - 1] : null; + if (!lastRound || lastRound.responses.length === 0) { + return ( +
+ No final verdict +
+ ); + } + const currentResponse = selectedNode.data.response || ''; + return ( +
+
+ No judge verdict — select a response to use: +
+ {lastRound.responses.map((resp, ri) => { + const isSelected = currentResponse === resp.response; + return ( +
+
+ {resp.model} + +
+
+ {rawTextMode ? ( +
{resp.response.slice(0, 300)}{resp.response.length > 300 ? '...' : ''}
+ ) : ( + + {preprocessLaTeX(resp.response.slice(0, 300) + (resp.response.length > 300 ? '...' : ''))} + + )} +
+
+ ); + })} +
+ ); + })() )} )} -- cgit v1.2.3