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 <sudhi@sudhindras-mini.lan>
This commit is contained in:
sudhindrat
2026-04-25 17:08:07 -04:00
committed by GitHub
parent 4038f734f7
commit ca1a6e29cb

View File

@@ -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: {