Skip to content

Commit 0ea3c4d

Browse files
QuinnH496Ubuntuvincentkoc
authored
fix(plugins): enable bundled Brave web search plugin by default (openclaw#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 openclaw#51937 Co-authored-by: Ubuntu <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
1 parent dd586d5 commit 0ea3c4d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/plugins/config-state.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,11 @@ describe("resolveEnableState", () => {
271271
expect(state).toEqual({ enabled: true });
272272
});
273273

274+
it("enables bundled web search providers like brave by default", () => {
275+
const state = resolveEnableState("brave", "bundled", normalizePluginsConfig({}));
276+
expect(state).toEqual({ enabled: true });
277+
});
278+
274279
it("allows bundled plugins to opt into default enablement from manifest metadata", () => {
275280
const state = resolveEnableState("profile-aware", "bundled", normalizePluginsConfig({}), true);
276281
expect(state).toEqual({ enabled: true });

src/plugins/config-state.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export type NormalizedPluginsConfig = {
3131
export const BUNDLED_ENABLED_BY_DEFAULT = new Set<string>([
3232
"amazon-bedrock",
3333
"anthropic",
34+
"brave",
3435
"byteplus",
3536
"cloudflare-ai-gateway",
3637
"deepseek",

0 commit comments

Comments
 (0)