Skip to content

Commit 05f8239

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

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

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

106106
if (tool && inProgress) {
107+
// Show user-friendly message for search_docs tool
108+
const isSearching =
109+
tool.type === "tool-invocation" && tool.toolName === "search_docs";
107110
return (
108111
<div className="flex items-center gap-2">
109112
<Spinner />
110-
<Shimmer>{tool.type}</Shimmer>
113+
<Shimmer>
114+
{isSearching ? "Searching sources..." : tool.toolName}
115+
</Shimmer>
111116
</div>
112117
);
113118
}

0 commit comments

Comments
 (0)