diff --git a/src/config/config-misc.test.ts b/src/config/config-misc.test.ts index 9bc052cabe1..f45be41d15d 100644 --- a/src/config/config-misc.test.ts +++ b/src/config/config-misc.test.ts @@ -214,7 +214,23 @@ describe("gateway.controlUi.allowExternalEmbedUrls", () => { }); describe("plugins.entries.*.hooks", () => { - it("accepts boolean values", () => { + it.each([true, false])("accepts allowConversationAccess=%s", (allowConversationAccess) => { + const result = OpenClawSchema.safeParse({ + plugins: { + entries: { + "voice-call": { + hooks: { + allowPromptInjection: false, + allowConversationAccess, + }, + }, + }, + }, + }); + expect(result.success).toBe(true); + }); + + it("accepts allowPromptInjection=false alongside allowConversationAccess=true", () => { const result = OpenClawSchema.safeParse({ plugins: { entries: {