diff --git a/web/src/app/_components/research-activities-block.tsx b/web/src/app/_components/research-activities-block.tsx index ff2cd0a..3c8dbb2 100644 --- a/web/src/app/_components/research-activities-block.tsx +++ b/web/src/app/_components/research-activities-block.tsx @@ -13,6 +13,7 @@ import { useMemo } from "react"; import SyntaxHighlighter from "react-syntax-highlighter"; import { docco } from "react-syntax-highlighter/dist/esm/styles/hljs"; +import { Skeleton } from "~/components/ui/skeleton"; import type { ToolCallRuntime } from "~/core/messages"; import { useMessage, useStore } from "~/core/store"; import { cn } from "~/lib/utils"; @@ -108,6 +109,9 @@ type SearchResult = image_description: string; }; function WebSearchToolCall({ toolCall }: { toolCall: ToolCallRuntime }) { + const searching = useMemo(() => { + return toolCall.result === undefined; + }, [toolCall.result]); const searchResults = useMemo(() => { let results: SearchResult[] | undefined = undefined; try { @@ -151,6 +155,16 @@ function WebSearchToolCall({ toolCall }: { toolCall: ToolCallRuntime }) {
{pageResults && (