Skip to content

Commit d89be34

Browse files
committed
fix(onboarding): trust official web search installs
1 parent b6cbd92 commit d89be34

4 files changed

Lines changed: 8 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Docs: https://docs.openclaw.ai
1919

2020
### Fixes
2121

22-
- Plugins/onboarding: trust optional official plugin installs selected from the official catalog so npm security scanning treats them like other source-linked official install paths. Thanks @vincentkoc.
22+
- Plugins/onboarding: trust optional official plugin and web-search installs selected from the official catalog so npm security scanning treats them like other source-linked official install paths. Thanks @vincentkoc.
2323
- CLI/plugins: keep `plugins enable` and `plugins disable` from creating unconfigured channel config sections, so channel plugins with required setup fields no longer fail validation during lifecycle probes. Thanks @vincentkoc.
2424
- Agents/sessions: keep delayed `sessions_send` A2A replies alive after soft wait-window timeouts, while preserving terminal run timeouts and avoiding stale target replies in requester sessions. Fixes #76443. Thanks @ryswork1993 and @vincentkoc.
2525
- CLI/sessions: keep intentional empty agent replies silent after tool-delivered channel output, instead of surfacing a misleading "No reply from agent." fallback. Thanks @vincentkoc.

src/flows/search-setup.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ describe("runSearchSetupFlow", () => {
303303
entry: expect.objectContaining({
304304
pluginId: "brave",
305305
label: "Brave",
306+
trustedSourceLinkedOfficialInstall: true,
306307
install: expect.objectContaining({
307308
npmSpec: "@openclaw/brave-plugin",
308309
}),
@@ -351,6 +352,7 @@ describe("runSearchSetupFlow", () => {
351352
entry: expect.objectContaining({
352353
pluginId: "brave",
353354
label: "Brave",
355+
trustedSourceLinkedOfficialInstall: true,
354356
install: expect.objectContaining({
355357
npmSpec: "@openclaw/brave-plugin",
356358
}),

src/flows/search-setup.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,9 @@ async function finalizeSearchProviderSetup(params: {
353353
pluginId: installEntry.pluginId,
354354
label: installEntry.label,
355355
install: installEntry.install,
356+
...(installEntry.trustedSourceLinkedOfficialInstall
357+
? { trustedSourceLinkedOfficialInstall: true }
358+
: {}),
356359
},
357360
prompter: params.prompter,
358361
runtime: params.runtime,

src/plugins/web-search-install-catalog.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export type WebSearchInstallCatalogEntry = {
1616
label: string;
1717
install: PluginPackageInstall;
1818
provider: PluginWebSearchProviderEntry;
19+
trustedSourceLinkedOfficialInstall?: boolean;
1920
};
2021

2122
function normalizeString(value: unknown): string | undefined {
@@ -144,6 +145,7 @@ export function resolveWebSearchInstallCatalogEntries(): WebSearchInstallCatalog
144145
label: resolveOfficialExternalPluginLabel(entry),
145146
install,
146147
provider: providerEntry,
148+
trustedSourceLinkedOfficialInstall: true,
147149
});
148150
}
149151
}

0 commit comments

Comments
 (0)