From ca1a6e29cb7c5afd3498dff25e52e2e2b1c19d18 Mon Sep 17 00:00:00 2001 From: sudhindrat <159858314+sudhindrat@users.noreply.github.com> Date: Sat, 25 Apr 2026 17:08:07 -0400 Subject: [PATCH] test(config): cover allowConversationAccess in plugin hooks schema validation (#71621) (#71679) * fix(model-ref): re-add nvidia/ prefix in normalizeStaticProviderModelId (#71552) * fix(test): use nvidia-prefixed model fixture for double-prefix guard * test(config): cover allowConversationAccess in plugin hooks schema validation (#71621) --------- Co-authored-by: Sudhindra Tatti --- src/config/config-misc.test.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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: {