fix(core): clarify web search provider prompt (#39123)

This commit is contained in:
Shoubhit Dash 2026-07-27 19:52:36 +05:30 committed by GitHub
commit 7d4de3d9e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,13 +58,13 @@ export const Plugin = {
if (providers.length === 0) return yield* new WebSearch.ProviderRequiredError() if (providers.length === 0) return yield* new WebSearch.ProviderRequiredError()
const response = yield* forms.ask({ const response = yield* forms.ask({
sessionID: context.sessionID, sessionID: context.sessionID,
title: "Choose a web search provider", title: "Choose a provider so the agent can search the web",
metadata: { kind: "websearch.provider" }, metadata: { kind: "websearch.provider" },
fields: [ fields: [
{ {
key: "provider", key: "provider",
title: "Provider", title: "Provider",
description: "This becomes your default and can be changed later in configuration.", description: "OpenCode will use your choice for future searches.",
type: "string", type: "string",
required: true, required: true,
custom: false, custom: false,