test(studio): list send_message in the built-in registry spec

The registry spec knew every built-in tool by name. send_message is
governed by the capability of the binding and the operator switch, so it
has no group and no setting.

Assisted-by: Claude:claude-sonnet-5-5 go
This commit is contained in:
Ettore Di Giacinto committed 2026-11-03 14:49:34 +00:00
1 parent 337a034601
commit b06faab397
1 file changed
+3 -3
+3 -3
View File
@@ -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)