diff --git a/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatResponseMessages/ChatResponseReasoning.tsx b/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatResponseMessages/ChatResponseReasoning.tsx
index 614dbcd1e..f4ac9897b 100644
--- a/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatResponseMessages/ChatResponseReasoning.tsx
+++ b/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatResponseMessages/ChatResponseReasoning.tsx
@@ -65,7 +65,7 @@ export const ChatResponseReasoning: React.FC<{
}, [isReasonginFileSelected, messageId, chatId]);
return (
-
+
{
const selectedFileType = useChatLayoutContextSelector((x) => x.selectedFile?.type);
@@ -28,6 +31,7 @@ const FileContainerHeaderStandard: React.FC<{
selectedFileId: string | undefined;
selectedFileType: FileType | undefined;
}> = ({ selectedFileId, selectedFileType }) => {
+ const router = useRouter();
const chatId = useChatLayoutContextSelector((x) => x.chatId);
const selectedFileView = useChatLayoutContextSelector((x) => x.selectedFileView);
const onCollapseFileClick = useChatLayoutContextSelector((state) => state.onCollapseFileClick);
@@ -50,6 +54,17 @@ const FileContainerHeaderStandard: React.FC<{
[selectedFileType]
);
+ useMount(() => {
+ if (chatId) {
+ router.prefetch(
+ createBusterRoute({
+ route: BusterRoutes.APP_CHAT_ID,
+ chatId
+ })
+ );
+ }
+ });
+
return (
<>