tools are closed by default

This commit is contained in:
Arjun 2026-04-07 11:30:37 +05:30
parent 61fadad5e0
commit 8ea0d89afe
2 changed files with 1 additions and 5 deletions

View file

@ -106,10 +106,7 @@ export const ToolCallStack = ({
if (!allPermissionRequests.has(tool.id)) return false;
return !permissionResponses.has(tool.id);
});
const defaultOpen =
hasPendingPermission ||
tools.some((tool) => tool.status === "pending" || tool.status === "running");
const effectiveOpen = hasPendingPermission || (open ?? defaultOpen);
const effectiveOpen = hasPendingPermission || (open ?? false);
const groupStatus = getGroupStatus(tools, hasPendingPermission);
const handleOpenChange = (nextOpen: boolean) => {

View file

@ -41,7 +41,6 @@ export function WebSearchResult({
return (
<Collapsible
defaultOpen
className={cn("not-prose mb-4 w-full rounded-md border", className)}
{...props}
>