From 79e114a82fcac8f99680293c62731e73ecfe7e87 Mon Sep 17 00:00:00 2001 From: Lucenx9 <185146821+Lucenx9@users.noreply.github.com> Date: Tue, 3 Mar 2026 00:09:59 +0100 Subject: [PATCH] test(media): ensure WhatsApp scope rule is exercised in MIME regression --- src/media-understanding/apply.test.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/media-understanding/apply.test.ts b/src/media-understanding/apply.test.ts index 1442e8aca..2b17720c1 100644 --- a/src/media-understanding/apply.test.ts +++ b/src/media-understanding/apply.test.ts @@ -366,7 +366,6 @@ describe("applyMediaUnderstanding", () => { fileName: "voice-note", mediaType: " Audio/Ogg; codecs=opus ", }); - ctx.ChatType = "direct"; ctx.Surface = "whatsapp"; const cfg: OpenClawConfig = { @@ -377,10 +376,7 @@ describe("applyMediaUnderstanding", () => { maxBytes: 1024 * 1024, scope: { default: "deny", - rules: [ - { action: "allow", match: { chatType: "direct" } }, - { action: "allow", match: { channel: "whatsapp" } }, - ], + rules: [{ action: "allow", match: { channel: "whatsapp" } }], }, models: [{ provider: "groq" }], },