You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
plugin install can hang or hit proxy.url errors when HTTP_PROXY/HTTPS_PROXY are set #31319
When HTTP_PROXY / HTTPS_PROXY are set, opencode plugin --global ... can hang for a long time during Installing plugin package, and some runs eventually end with:
fetch() proxy.url must be a non-empty string
If I unset only HTTP_PROXY / HTTPS_PROXY, the same plugin install succeeds quickly. This is true even when my system TUN mode is enabled, so the problem appears to be in the explicit proxy-env code path rather than general network reachability.
From the current source tree, plugin install goes through @npmcli/arborist in packages/core/src/npm.ts, not opencode's own fetch path.
The more important source-level finding is that the repo contains an @npmcli/agent patch intended to stringify proxy.url:
and patchedDependencies is version-pinned, so the patch is not applied to the resolved version.
That looks like a strong candidate for the proxy-specific install failures/timeouts.
Plugins
Reproduced with:
opencode-mem
@franlol/opencode-md-table-formatter@latest
OpenCode version
1.16.2
Steps to reproduce
Set HTTP_PROXY and HTTPS_PROXY to a valid local proxy, for example http://127.0.0.1:7897
I can reproduce this. The patch version mismatch between package.json (4.0.0) and bun.lock (4.0.2) looks like the root cause. I'll verify and open a PR.
Activity
HrushiYadav commentedon Jun 8, 2026
I can reproduce this. The patch version mismatch between package.json (4.0.0) and bun.lock (4.0.2) looks like the root cause. I'll verify and open a PR.