From 20c41c7a6e01b74a91ccca95094c42899a42c825 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Sat, 22 Mar 2025 22:53:47 -0600 Subject: [PATCH] auto change lyaout logs --- web/src/api/buster_rest/chats/queryRequests.ts | 6 ------ web/src/components/ui/typography/Text.tsx | 2 +- .../layouts/ChatLayout/ChatContext/useAutoChangeLayout.ts | 1 + 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/web/src/api/buster_rest/chats/queryRequests.ts b/web/src/api/buster_rest/chats/queryRequests.ts index e59b00762..68ee9286d 100644 --- a/web/src/api/buster_rest/chats/queryRequests.ts +++ b/web/src/api/buster_rest/chats/queryRequests.ts @@ -81,12 +81,6 @@ export const useGetChat = ( }); }); - useQuery({ - ...queryKeys.chatsGetChat(params.id), - queryFn, - enabled: !!params.id - }); - return useQuery({ ...queryKeys.chatsGetChat(params.id), enabled: !!params.id, diff --git a/web/src/components/ui/typography/Text.tsx b/web/src/components/ui/typography/Text.tsx index 854da476e..9fd0b6e66 100644 --- a/web/src/components/ui/typography/Text.tsx +++ b/web/src/components/ui/typography/Text.tsx @@ -3,7 +3,7 @@ import { cva, VariantProps } from 'class-variance-authority'; import React from 'react'; import { textColorVariants } from './variants'; -const textVariants = cva('', { +const textVariants = cva('leading-1.3', { variants: { size: { '3xs': 'text-3xs', diff --git a/web/src/layouts/ChatLayout/ChatContext/useAutoChangeLayout.ts b/web/src/layouts/ChatLayout/ChatContext/useAutoChangeLayout.ts index 314d71047..436c4eb1e 100644 --- a/web/src/layouts/ChatLayout/ChatContext/useAutoChangeLayout.ts +++ b/web/src/layouts/ChatLayout/ChatContext/useAutoChangeLayout.ts @@ -27,6 +27,7 @@ export const useAutoChangeLayout = ({ //change the page to reasoning file if we get a reasoning message useEffect(() => { + console.log(isCompletedStream, hasReasoning, lastMessageId, previousLastMessageId.current); if (!isCompletedStream && hasReasoning && previousLastMessageId.current !== lastMessageId) { // hasSeeningReasoningPage.current = true; onSetSelectedFile({ id: lastMessageId, type: 'reasoning' });