Skip to content

Commit

Permalink
k
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Feb 19, 2025
1 parent ed21662 commit 8448e50
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion web/src/app/chat/ChatPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2695,6 +2695,11 @@ export function ChatPage({
? messageHistory[i + 1]?.documents
: undefined;

const nextMessage =
messageHistory[i + 1]?.type === "assistant"
? messageHistory[i + 1]
: undefined;

return (
<div
className="text-text"
Expand Down Expand Up @@ -2723,7 +2728,10 @@ export function ChatPage({
selectedMessageForDocDisplay ==
secondLevelMessage?.messageId)
}
isImprovement={message.isImprovement}
isImprovement={
message.isImprovement ||
nextMessage?.isImprovement
}
secondLevelGenerating={
(message.second_level_generating &&
currentSessionChatState !==
Expand Down

0 comments on commit 8448e50

Please sign in to comment.