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 ( -