mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 00:16:29 +02:00
tools are closed by default
This commit is contained in:
parent
61fadad5e0
commit
8ea0d89afe
2 changed files with 1 additions and 5 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ export function WebSearchResult({
|
|||
|
||||
return (
|
||||
<Collapsible
|
||||
defaultOpen
|
||||
className={cn("not-prose mb-4 w-full rounded-md border", className)}
|
||||
{...props}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue