From 31a9e868e9cb25f8fe96de8c44e70e4aaa3656fd Mon Sep 17 00:00:00 2001 From: Paul Walko Date: Tue, 23 Dec 2025 23:27:11 +0100 Subject: [PATCH] attempt to fix chats not returning --- web/src/app/page.tsx | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/web/src/app/page.tsx b/web/src/app/page.tsx index 43726f6..07e252f 100644 --- a/web/src/app/page.tsx +++ b/web/src/app/page.tsx @@ -7,20 +7,29 @@ import { useUser } from "@auth0/nextjs-auth0/client"; import LoginButton from "@/components/LoginButton"; import LogoutButton from "@/components/LogoutButton"; -// Separate component to safely use useCopilotChat hook -function ThinkingIndicator() { +// Block input and show indicator while agent is processing +function LoadingOverlay() { try { const { isLoading } = useCopilotChat(); if (!isLoading) return null; return ( -
-
- - - + <> + {/* Overlay to block input area */} +
e.stopPropagation()} + /> + {/* Thinking indicator */} +
+
+ + + +
+ Thinking...
- Thinking... -
+ ); } catch { return null; @@ -121,7 +130,7 @@ export default function CopilotKitPage() { className="h-full w-full" />
- +
);