Skip to content

Commit 3b619f8

Browse files
committed
fix(docs): Show 'Searching sources...' loading state in AI chat
1 parent b64fa4f commit 3b619f8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/site/components/geistdocs/message-metadata.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,16 @@ export const MessageMetadata = ({
104104
}
105105

106106
if (tool && inProgress) {
107+
// Show user-friendly message for search_docs tool
108+
const isSearching = tool.type === "tool-search_docs";
107109
return (
108110
<div className="flex items-center gap-2">
109111
<Spinner />
110-
<Shimmer>{tool.type}</Shimmer>
112+
<Shimmer>
113+
{isSearching
114+
? "Searching sources..."
115+
: tool.type.replace("tool-", "")}
116+
</Shimmer>
111117
</div>
112118
);
113119
}

0 commit comments

Comments
 (0)