diff --git a/pkg/api/handlers/threads.go b/pkg/api/handlers/threads.go index 0dcdc9cc5..a9d43eddf 100644 --- a/pkg/api/handlers/threads.go +++ b/pkg/api/handlers/threads.go @@ -230,7 +230,7 @@ func (a *ThreadHandler) Update(req api.Context) error { return err } for _, newTool := range newThread.Tools { - if !slices.Contains(agent.Spec.Manifest.AvailableThreadTools, newTool) { + if !slices.Contains(agent.Spec.Manifest.AvailableThreadTools, newTool) && !slices.Contains(agent.Spec.Manifest.DefaultThreadTools, newTool) { return types.NewErrBadRequest("tool %s is not available for agent %s", newTool, agent.Name) } } diff --git a/ui/admin/app/components/agent/ToolEntry.tsx b/ui/admin/app/components/agent/ToolEntry.tsx index 7e510dfa0..0e76b6184 100644 --- a/ui/admin/app/components/agent/ToolEntry.tsx +++ b/ui/admin/app/components/agent/ToolEntry.tsx @@ -14,7 +14,7 @@ export function ToolEntry({ actions, }: { tool: string; - onDelete: () => void; + onDelete?: () => void; actions?: React.ReactNode; }) { const { data: toolReference, isLoading } = useSWR( @@ -26,7 +26,7 @@ export function ToolEntry({ return (