mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-25 17:02:46 +00:00
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:
@@ -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 });
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user