anomalyco / anomalyco/opencode

web: websearch provider consent form is never displayed, every call times out

Open
#47,063 0 comments 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Sep 3, 2026.

2.0
Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

On the V2 web UI, the first websearch call never completes: the provider-consent form is created server-side but never rendered, so every call times out after 60 s with Web search cancelled. The consent form carries metadata.kind = "websearch.provider" (packages/core/src/tool/plugin/websearch.ts), while the web app only selects forms with metadata?.kind === "question" (packages/app/src/session/requests/session-request-tree.ts:51, rendered via session-composer-region.tsx for question/permission requests only). The search providers themselves are healthy — bypassing the consent step via POST /api/websearch with an explicit providerID returns results.

OpenCode version

v0.0.0-beta-18866

Steps to reproduce
  1. Ensure no provider is stored (kv has no websearch:provider key).
  2. Run a websearch call from the web UI (mobile or desktop).
  3. Watch the session: no consent card (Allow search via ...) appears within 60 s.
  4. The call fails with Web search cancelled after about 60 s (Effect.timeoutOrElse({ duration: "1 minute" }) in packages/core/src/tool/plugin/websearch.ts).
Plugins

none

Operating System

Linux (Ubuntu), x64

Additional context
  • Verified the providers are healthy by calling POST /api/websearch directly with explicit providerID: Exa and Tavily both returned results. Exa works without an API key.
  • The TUI session view (packages/tui/src/routes/session/index.tsx:219-225,1473-1477) lists forms without a kind filter and renders the first pending form, so it is not affected by this issue.
  • Workaround: pre-save a provider selection so the consent step is skipped, e.g. websearch:provider = "exa" in kv (selection persists via packages/core/src/websearch.ts, ProviderKey). Revert with DELETE FROM kv WHERE key='websearch:provider';.
  • Reproduces on every call while no provider is stored; the form is missing in both mobile and desktop web UI layouts.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.