fix(plugins): enable bundled Brave web search plugin by default (#52072)

Brave is a bundled web search plugin but was missing from
BUNDLED_ENABLED_BY_DEFAULT, causing it to be filtered out during
provider resolution. This made web_search unavailable even when
plugins.entries.brave.enabled was configured.

Fixes #51937

Co-authored-by: Ubuntu <ubuntu@ip-172-26-10-234.us-west-2.compute.internal>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
This commit is contained in:
Quinn H. 2026-03-24 02:01:02 +08:00 committed by GitHub
parent dd586d59ed
commit 0ea3c4d5d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -271,6 +271,11 @@ describe("resolveEnableState", () => {
expect(state).toEqual({ enabled: true });
});
it("enables bundled web search providers like brave by default", () => {
const state = resolveEnableState("brave", "bundled", normalizePluginsConfig({}));
expect(state).toEqual({ enabled: true });
});
it("allows bundled plugins to opt into default enablement from manifest metadata", () => {
const state = resolveEnableState("profile-aware", "bundled", normalizePluginsConfig({}), true);
expect(state).toEqual({ enabled: true });

View File

@ -31,6 +31,7 @@ export type NormalizedPluginsConfig = {
export const BUNDLED_ENABLED_BY_DEFAULT = new Set<string>([
"amazon-bedrock",
"anthropic",
"brave",
"byteplus",
"cloudflare-ai-gateway",
"deepseek",