opencode
opencode copied to clipboard
Error launching TUI with proxy
Description
I have defined an opencode startup function with a local proxy in zshrc.
opencodep () {
HTTP_PROXY=http://127.0.0.1:1087 HTTPS_PROXY=http://127.0.0.1:1087 opencode "$@"
}
But when executing, I get an error:
[object Object] Dec 18 17:29:59 on ttys009
I can't say the exact version, but it used to work.
OpenCode version
1.0.150
Steps to reproduce
- setup launching function
opencodep () {
HTTP_PROXY=http://127.0.0.1:1087 HTTPS_PROXY=http://127.0.0.1:1087 opencode "$@"
}
- write in terminal
opencodep
Screenshot and/or share link
No response
Operating System
MaxOs 26.1
Terminal
Warp, system terminal
https://opencode.ai/docs/network/
have u seen this?
opencodep() {
HTTP_PROXY=http://127.0.0.1:1087 \
HTTPS_PROXY=http://127.0.0.1:1087 \
NO_PROXY=localhost,127.0.0.1 \
opencode "$@"
}
it works, thx.