From 1a7dc22995a374dbfda4f3bfb38fcfc39519292a Mon Sep 17 00:00:00 2001 From: Tak Hoffman <781889+Takhoffman@users.noreply.github.com> Date: Fri, 27 Mar 2026 23:29:51 -0500 Subject: [PATCH] fix(regression): remove duplicate media runtime config --- extensions/media-understanding-core/src/runtime.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/extensions/media-understanding-core/src/runtime.ts b/extensions/media-understanding-core/src/runtime.ts index 1262d8ffb73..920225683d5 100644 --- a/extensions/media-understanding-core/src/runtime.ts +++ b/extensions/media-understanding-core/src/runtime.ts @@ -50,11 +50,6 @@ export async function runMediaUnderstandingFile( if (attachments.length === 0) { return { text: undefined }; } - const config = params.cfg.tools?.media?.[params.capability]; - if (config?.enabled === false) { - return { text: undefined }; - } - const config = params.cfg.tools?.media?.[params.capability]; if (config?.enabled === false) { // Avoid loading plugin-backed providers when the capability is disabled.