finalize tooltip cache

This commit is contained in:
Nate Kelley 2025-07-01 14:15:36 -06:00
parent 27de636296
commit d0ff81997e
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
3 changed files with 10 additions and 10 deletions

View File

@ -32,7 +32,7 @@ interface UseTooltipOptionsProps {
colors: string[]; colors: string[];
} }
const MAX_TOOLTIP_CACHE_SIZE = 20; const MAX_TOOLTIP_CACHE_SIZE = 13;
export const useTooltipOptions = ({ export const useTooltipOptions = ({
columnLabelFormats, columnLabelFormats,

View File

@ -31,9 +31,9 @@ export const ChatResponseMessages: React.FC<ChatResponseMessagesProps> = React.m
<MessageContainer <MessageContainer
className="group flex w-full flex-col space-y-3 overflow-hidden" className="group flex w-full flex-col space-y-3 overflow-hidden"
hideAvatar={hideAvatar} hideAvatar={hideAvatar}
isCompletedStream={isCompletedStream} isCompletedStream={false}
isFinishedReasoning={!!finalReasoningMessage} isFinishedReasoning={false}
hasReasoningMessage={!!lastReasoningMessageId}> hasReasoningMessage={false}>
{showReasoningMessage && ( {showReasoningMessage && (
<ChatResponseReasoning <ChatResponseReasoning
reasoningMessageId={lastReasoningMessageId} reasoningMessageId={lastReasoningMessageId}

View File

@ -13,9 +13,9 @@ interface MessageContainerProps {
onMouseEnter?: () => void; onMouseEnter?: () => void;
onMouseLeave?: () => void; onMouseLeave?: () => void;
hideAvatar?: boolean; hideAvatar?: boolean;
isCompletedStream: boolean; isCompletedStream?: boolean;
isFinishedReasoning: boolean; isFinishedReasoning?: boolean;
hasReasoningMessage: boolean; hasReasoningMessage?: boolean;
} }
export const MessageContainer = forwardRef<HTMLDivElement, MessageContainerProps>( export const MessageContainer = forwardRef<HTMLDivElement, MessageContainerProps>(
@ -27,9 +27,9 @@ export const MessageContainer = forwardRef<HTMLDivElement, MessageContainerProps
senderAvatar, senderAvatar,
className = '', className = '',
hideAvatar = false, hideAvatar = false,
hasReasoningMessage, hasReasoningMessage = true,
isCompletedStream, isCompletedStream = true,
isFinishedReasoning, isFinishedReasoning = true,
onMouseEnter, onMouseEnter,
onMouseLeave onMouseLeave
}, },