opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[Bug] OpenCode Crashes on Launch When `http_proxy` Environment Variable is Set

Open dsdashun opened this issue 1 week ago • 2 comments

Description

OpenCode crashes immediately on startup when the http_proxy environment variable is set with the right value, displaying [object Object] .

Plugins

None

OpenCode version

1.1.4

Steps to reproduce

  1. Make sure the proxy can be connected successfully
  2. Start the opencode with the http_proxy environment set, like the following command:
http_proxy='http://127.0.0.1:18080' opencode

Some additional points:

  • If the endpoint cannot be connected, the error message is different, please see the screenshot below.
  • If the http_proxy is not set, it can be started successfully.
  • If start OpenCode with some other similar environment variables, like https_proxy, all_proxy, it also can be started successfully, except http_proxy .

Screenshot and/or share link

http_proxy is set with a normal endpoint:

Image

http_proxy is set with a wrong endpoint:

Image

Operating System

Debian 12.12

Terminal

Windows Terminal

dsdashun avatar Jan 07 '26 02:01 dsdashun