Skip to content

Conversation

@AlanThiec
Copy link
Contributor

@AlanThiec AlanThiec commented Jan 13, 2026

Summary

Update the default User-Agent string used for webfetch/http requests so OpenCode can successfully fetch web resources from customers that block outdated browser User-Agent strings at their internal proxy.

Motivation & Context

One of our customers (a large, legacy organization using a strict internal proxy) blocks requests that present old/legacy User-Agent headers. This caused OpenCode's webfetch functionality to fail for them. Updating the User-Agent resolves those proxy-based rejections.

What changed

Change the default User-Agent used by webfetch tool implementation to a updated version that proxies accept.

Note: This is a compatibility fix intended to restore connectivity for affected customers; it does not change any APIs or UX.

Testing

  • Launched unit tests
  • Manual test: Performed a webfetch to a site behind the customer's proxy and confirmed requests succeed. Verified request headers contain the new User-Agent.

Linked issue

Fixes: #2943

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@rekram1-node rekram1-node changed the title fix(tui): update User-Agent string to latest Chrome version in webfetch fix: update User-Agent string to latest Chrome version in webfetch Jan 13, 2026
@rekram1-node rekram1-node merged commit 774c24e into anomalyco:dev Jan 13, 2026
4 checks passed
@AlanThiec AlanThiec deleted the fix/Update-user-agent-in-tui-webfetch-tool branch January 13, 2026 21:30
shuv1337 added a commit to Latitudes-Dev/shuvcode that referenced this pull request Jan 14, 2026
Upstream changes:
- feat: add plan mode with enter/exit tools (anomalyco#8281)
- feat: Add GitLab Duo Agentic Chat Provider Support (anomalyco#7333)
- feat(desktop): Ask Question Tool Support (anomalyco#8232)
- feat: add Undertale and Deltarune built-in themes (anomalyco#8240)
- fix: Add Plugin Mocks to Provider Tests (anomalyco#8276)
- fix: update User-Agent string to latest Chrome version in webfetch (anomalyco#8284)
- fix(prompt-input): handle Shift+Enter before IME check
- fix(state): delete key from recordsByKey on instance disposal
- fix(mcp): close existing client before reassignment to prevent leaks

Resolved conflicts:
- bun.lock: regenerated with fork dependencies
- global-sync.tsx: adopted upstream variable naming (question instead of request)
- session/index.tsx: merged upstream workdir display with fork's ANSI terminal emulation
- amazon-bedrock.test.ts: added all mock modules (fork + upstream)
- vscode/package.json: kept fork branding, updated version

Fork commits included:
- refactor(tui): use SDK client for tool list dialog
- chore: update lockfile with fork dependencies
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.

Getting "This browser is no longer supported" browsing the web with opencode

2 participants