From 87b4a178ec24cfaeca06ee433a592055fcf0068b Mon Sep 17 00:00:00 2001 From: karpathy Date: Sat, 22 Nov 2025 15:24:47 -0800 Subject: a bit more progressive update and single turn --- frontend/src/components/ChatInterface.css | 14 ++++++ frontend/src/components/ChatInterface.jsx | 78 +++++++++++++++++++++---------- 2 files changed, 67 insertions(+), 25 deletions(-) (limited to 'frontend/src/components') diff --git a/frontend/src/components/ChatInterface.css b/frontend/src/components/ChatInterface.css index 531d2a3..0d01300 100644 --- a/frontend/src/components/ChatInterface.css +++ b/frontend/src/components/ChatInterface.css @@ -71,6 +71,20 @@ font-size: 14px; } +.stage-loading { + display: flex; + align-items: center; + gap: 12px; + padding: 16px; + margin: 12px 0; + background: #f9fafb; + border-radius: 8px; + border: 1px solid #e0e0e0; + color: #666; + font-size: 14px; + font-style: italic; +} + .spinner { width: 20px; height: 20px; diff --git a/frontend/src/components/ChatInterface.jsx b/frontend/src/components/ChatInterface.jsx index 951183f..3ae796c 100644 --- a/frontend/src/components/ChatInterface.jsx +++ b/frontend/src/components/ChatInterface.jsx @@ -71,13 +71,39 @@ export default function ChatInterface({ ) : (
LLM Council
- - - + + {/* Stage 1 */} + {msg.loading?.stage1 && ( +
+
+ Running Stage 1: Collecting individual responses... +
+ )} + {msg.stage1 && } + + {/* Stage 2 */} + {msg.loading?.stage2 && ( +
+
+ Running Stage 2: Peer rankings... +
+ )} + {msg.stage2 && ( + + )} + + {/* Stage 3 */} + {msg.loading?.stage3 && ( +
+
+ Running Stage 3: Final synthesis... +
+ )} + {msg.stage3 && }
)} @@ -94,24 +120,26 @@ export default function ChatInterface({
-
-