Skip to content

Commit

Permalink
fix: ChatGPTNextWeb#2230 hide chat actions for context prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
Yidadaa committed Jul 3, 2023
1 parent b4e350e commit 0bc2c71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0bc2c71

Please sign in to comment.