mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:50:43 +00:00
* 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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user