diff --git a/api.py b/api.py index ae08ad3..5dcb1ad 100755 --- a/api.py +++ b/api.py @@ -175,7 +175,7 @@ async def process_query(request: QueryRequest): agent_name="Unknown", success="false", blocks={}, - status="Agent working...", + status="Ready", timestamp=str(time.time()) ) if is_generating: diff --git a/frontend/agentic-seek-front/src/App.js b/frontend/agentic-seek-front/src/App.js index 98bf46d..d8a1114 100644 --- a/frontend/agentic-seek-front/src/App.js +++ b/frontend/agentic-seek-front/src/App.js @@ -14,15 +14,13 @@ function App() { const messagesEndRef = useRef(null); useEffect(() => { - if (!isLoading) { - const intervalId = setInterval(() => { - checkHealth(); - fetchLatestAnswer(); - fetchScreenshot(); - }, 1500); - return () => clearInterval(intervalId); - } - }, [isLoading, messages]); + const intervalId = setInterval(() => { + checkHealth(); + fetchLatestAnswer(); + fetchScreenshot(); + }, 1500); + return () => clearInterval(intervalId); + }, [messages]); const checkHealth = async () => { try {