From b028726bb85aa93e6f7d75ec9e59fcb975a2631a Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 3 May 2026 22:28:53 +0100 Subject: [PATCH] fix(config): avoid unsafe web search dereference --- src/config/plugin-auto-enable.shared.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/plugin-auto-enable.shared.ts b/src/config/plugin-auto-enable.shared.ts index 257273d3daa..bb6c125e9bf 100644 --- a/src/config/plugin-auto-enable.shared.ts +++ b/src/config/plugin-auto-enable.shared.ts @@ -648,7 +648,7 @@ export function resolveConfiguredPluginAutoEnableCandidates(params: { const webSearchConfig = params.config.tools?.web?.search; const webSearchProvider = webSearchConfig?.enabled !== false && typeof webSearchConfig?.provider === "string" - ? params.config.tools.web.search.provider + ? webSearchConfig.provider : undefined; const webSearchPluginId = resolvePluginIdForConfiguredWebSearchProvider( webSearchProvider,