Skip to content

Commit 66a3521

Browse files
bug: don't wipe out all tools on set (#2327)
1 parent 5c48dd8 commit 66a3521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/api/handlers/assistants.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ func (a *AssistantHandler) SetTools(req api.Context) error {
468468
}
469469

470470
for _, tool := range tools.Items {
471-
if tool.Enabled && !tool.Builtin && strings.HasPrefix(tool.Name, system.ToolPrefix) {
471+
if tool.Enabled && !tool.Builtin && !strings.HasPrefix(tool.ID, system.ToolPrefix) {
472472
toolList = append(toolList, tool.ID)
473473
}
474474
}

0 commit comments

Comments
 (0)