feat(coding-agent): enabled anonymous Perplexity fallback and updated web-search checks

- Added anonymous Perplexity authentication mode for unauthenticated web searches.
- Switched web-search setup checks to use `isExplicitlyAvailable` and removed key enforcement in doctor.
- Updated Perplexity OAuth flow to reuse auth handling for all non-key searches and anonymous responses.
- Updated CLI and provider option help text to mark the Perplexity key optional with fallback.
This commit is contained in:
can1357
2026-06-06 19:42:16 +02:00
parent d63a91bf5e
commit 8a5b99a967
6 changed files with 198 additions and 55 deletions
@@ -19,7 +19,8 @@ type Availability = "checking" | boolean;
/**
* "Web search" panel: picks the provider the web_search tool should prefer and
* reports whether the highlighted provider is ready to use given current
* credentials (env keys or OAuth sign-ins from the Sign in tab).
* credentials (env keys or OAuth sign-ins from the Sign in tab) or an
* unauthenticated fallback.
*/
export class WebSearchTab implements SetupTab {
readonly id = "web-search";
@@ -91,7 +92,7 @@ export class WebSearchTab implements SetupTab {
let ready = false;
try {
const provider = await getSearchProvider(id);
ready = await provider.isAvailable(this.host.ctx.session.modelRegistry.authStorage);
ready = await provider.isExplicitlyAvailable(this.host.ctx.session.modelRegistry.authStorage);
} catch {
ready = false;
}