X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/3cdbd017da9ae7a7045f4272f16d4b262fd01c79..b1be0ee8530df5db8973bfe355f2f6d3149383a0:/prompt_test.go?ds=inline diff --git a/prompt_test.go b/prompt_test.go index 06fea49..888057f 100644 --- a/prompt_test.go +++ b/prompt_test.go @@ -166,3 +166,14 @@ func TestRootPromptDefinesChildRoutingAndConsent(t *testing.T) { require.NotContains(t, child, "Use agent_create") require.Contains(t, child, "Send nothing to WhatsApp. Draft replies in your report instead") } + +func TestRootPromptKeepsImageConsentAndChildForwardingRules(t *testing.T) { + text := prompt("Ada", "/AGENT/instructions.md", "") + require.Contains(t, text, "Use image_show or whatsapp_send with an image only on the user's request.") + require.Contains(t, text, "Pass an image to a child with an [image FILE] line in tell.") + + child := promptChild("House", "Ada", "Keep house plans.", "/CHILD/instructions.md", "") + require.Contains(t, child, "Send nothing to WhatsApp. Draft replies in your report instead") + require.NotContains(t, promptToolNames(promptSubagentTools()), "image_show") + require.NotContains(t, promptToolNames(promptSubagentTools()), "whatsapp_send") +}