Procházet zdrojové kódy

fix: #2230 hide chat actions for context prompts

Yidadaa před 1 rokem
rodič
revize
0bc2c71b0c
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      app/components/chat.tsx

+ 2 - 1
app/components/chat.tsx

@@ -888,7 +888,8 @@ export function Chat() {
           const showActions =
             !isUser &&
             i > 0 &&
-            !(message.preview || message.content.length === 0);
+            !(message.preview || message.content.length === 0) &&
+            i >= context.length; // do not show actions for context prompts
           const showTyping = message.preview || message.streaming;
 
           const shouldShowClearContextDivider = i === clearContextIndex - 1;