[PR #8284] fix: update User-Agent string to latest Chrome version in webfetch #12689

Closed
opened 2026-02-16 18:17:35 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/8284

State: closed
Merged: Yes


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

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8284 **State:** closed **Merged:** Yes --- ### 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
yindo added the pull-request label 2026-02-16 18:17:35 -05:00
yindo closed this issue 2026-02-16 18:17:35 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12689