diff --git a/core/services/studio/webtools_test.go b/core/services/studio/webtools_test.go index edfb61db9e..48ddc438b7 100644 --- a/core/services/studio/webtools_test.go +++ b/core/services/studio/webtools_test.go @@ -234,8 +234,8 @@ var _ = Describe("the one registry of built-in tools", func() { names := runtimeSettingNames() for _, t := range tools { ids = append(ids, t.ID) - if t.Unlisted { // the trigger tools: governed by the operator's start-up switch; load_skill: every chat with skills gets it; the goal tools: by the goal; the tool groups: by the chat's switch - if t.ID == "load_skill" || t.ID == "goal_done" || t.ID == "goal_blocked" { + if t.Unlisted { // the trigger tools: governed by the operator's start-up switch; send_message: by the capability of the binding and the operator switch; load_skill: every chat with skills gets it; the goal tools: by the goal; the tool groups: by the chat's switch + if t.ID == "load_skill" || t.ID == "goal_done" || t.ID == "goal_blocked" || t.ID == studio.SendMessageName { Expect(t.Group).To(BeEmpty(), t.ID) } else if t.External { Expect(t.Group).To(BeElementOf(builtins.GroupFiles, builtins.GroupMedia, builtins.GroupCollections, builtins.GroupSubAgents), t.ID) @@ -251,7 +251,7 @@ var _ = Describe("the one registry of built-in tools", func() { } Expect(t.Replaceable).To(BeTrue(), t.ID) } - Expect(ids).To(Equal([]string{"bash", "web_search", "web_fetch", "propose_trigger", "list_triggers", "update_trigger", "delete_trigger", "propose_change", "revert_change", "load_skill", "goal_done", "goal_blocked", "spawn_agent"}), + Expect(ids).To(Equal([]string{"bash", "web_search", "web_fetch", "propose_trigger", "list_triggers", "update_trigger", "delete_trigger", "send_message", "propose_change", "revert_change", "load_skill", "goal_done", "goal_blocked", "spawn_agent"}), "a service without files has no file or media group") for _, id := range []string{"web_search", "web_fetch"} { t, ok := svc.Builtins().Lookup(id)