Skip to content

Experiment: Lightpanda backend for WebFetch - #8

Draft
skatkov wants to merge 2 commits into
mainfrom
experiment/lightpanda-webfetch
Draft

skatkov wants to merge 2 commits into
mainfrom
experiment/lightpanda-webfetch

Conversation

@skatkov

@skatkov skatkov commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

Status: currently under test in the local OpenCode harness. This is an opt-in experiment; leave the PR in draft while we observe day-to-day usage.

  • Keep the built-in webfetch tool name and schemas. With the plugin's webfetch option enabled, try Lightpanda for markdown, text, and html with a shared, bounded browser budget and native fallback.
  • Render Markdown pages; preserve raw HTML, plain text, JSON, and XML response content; return supported image types as attachments.
  • Keep the WebFetch check on the requested URL and require separate Lightpanda browser permission. Browser redirects and subresources are covered by that browser permission, not by native WebFetch's per-redirect rules.
  • In the local harness, this checkout is active and native websearch uses the local SerpApi provider from Default OpenCode web search to SerpApi when unconfigured serpapi/opencode-serpapi#5. No WebSearch code is changed here.

Verified TypeScript, 15 unit tests, and the existing direct-tool smoke test. A live shared-harness run confirmed Lightpanda returned rendered Markdown, raw HTML, plain text, valid JSON and XML, and a real PNG attachment. An isolated run with the browser executable unavailable confirmed native fallback for text. Earlier shared-harness checks also confirmed SerpApi WebSearch and the two permission checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant