feat(fetch-use): default experimental.fetch_use to off#54
Merged
Conversation
added 2 commits
May 11, 2026 05:34
Eval runs showed fetch-use routing had no measurable impact on accuracy versus native HttpClient, while adding latency on every webfetch call. Flip the default so users must explicitly opt in via experimental.fetch_use=true in opencode.json. The feature itself is unchanged — only the default and accompanying docs/comments.
There was a problem hiding this comment.
1 issue found across 1 file (changes from recent commits).
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="packages/bcode-browser/skills/BROWSER.md">
<violation number="1">
P2: This says fetch-use is automatic when `BROWSER_USE_API_KEY` is set, but it still requires `experimental.fetch_use: true` to take the proxy path.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Eval runs showed routing
webfetchthroughfetch-usehad no measurable impact on agent accuracy versus the nativeHttpClientpath, while consistently adding latency on every request. Flip the default so the proxy is opt-in.Changes
packages/opencode/src/tool/webfetch.ts:useFunow requiresexperimental.fetch_use === true(was!== false).packages/opencode/src/config/config.ts: schema description updated to reflect default-false and the latency tradeoff.packages/bcode-browser/skills/BROWSER.md: skill instructs the agent how to opt in rather than how to opt out.packages/bcode-browser/test/fetch-use.test.ts: header comment updated (opt-in, not opt-out). No test behavior change.The feature itself is unchanged — only the default. Users who want the Chrome TLS fingerprint + residential proxy set
experimental.fetch_use: trueinopencode.json.Testing
bun typecheckclean inpackages/opencodeandpackages/bcode-browser.