GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — `[object Object]` error output when running opencode over SSH · Issue #5206 · anomalyco/opencode

[object Object] error output when running opencode over SSH #5206

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[object Object] error output when running opencode over SSH#5206
Copy link
Assignees
kommander

Description

@nicehiro
nicehiro
opened on Dec 7, 2025
Issue body actions

Description

Hi,

When running opencode via SSH on a remote server, the application outputs [object Object] instead of a proper error message or UI. Additionally, terminal escape sequences are not handled correctly, resulting in garbled output.

OpenCode version

1.0.134

Steps to reproduce

  1. On Ubuntu 20 docker image, install opencode using: curl -fsSL https://opencode.ai/install | bash
  2. Run opencode --print-logs --log-level DEBUG

Screenshot and/or share link

root@subgoalvla-111010-task1-0:~/openpi# opencode --print-logs --log-level DEBUG
INFO  2025-12-07T15:09:43 +169ms service=default version=1.0.134 args=["--print-logs","--log-level","DEBUG"] opencode
[object Object]
root@subgoalvla-111010-task1-0:~/openpi# :>|ghostty 1.2.3^[\^[[?0u^[[4;1720;3000t

Operating System

Ubuntu 22.04

Terminal

Using ghostty on MacOS to connect remote by ssh

Reacted by Zane

Activity

  1. nicehiro
    added
    bugSomething isn't working
    on Dec 7, 2025
  2. github-actions
    added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 7, 2025
  3. github-actions commented on Dec 7, 2025

    @github-actions
    github-actionsBot
    on Dec 7, 2025 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • Phantom input on startup again. #4430: Phantom input on startup when running over SSH (Windows Terminal -> Remote SSH)
    • SSH session with iTerm2 auto-writes 'iTerm2 3.6.5Gi-1;invalid payload' in agent panel #3769: SSH session with iTerm2 auto-writes 'iTerm2 3.6.5Gi-1;invalid payload' in agent panel
    • clipboard copy not works in remote SSH console. #2773: Clipboard copy issues in remote SSH console (opentui-related)
    • Bash commands not working in ssh session #3320: Bash commands not working in SSH session
    • Theme issue #4517: Theme and terminal output issues on macOS

    These issues also report SSH connection problems with terminal escape sequences and output corruption. The [object Object] error and garbled escape sequences you're seeing may be related to how opentui handles terminal detection and output formatting over SSH.

    Feel free to ignore if none of these address your specific case.

  4. rekram1-node
    self-assigned this
    on Dec 7, 2025
  5. junjieit commented on Dec 10, 2025

    @junjieit
    junjieit
    on Dec 10, 2025
    More actions

    I encountered this error even though I wasn't using SSH.

    ➜  ~ opencode --print-logs --log-level DEBUG
    INFO  2025-12-10T11:38:03 +222ms service=default version=1.0.141 args=["--print-logs","--log-level","DEBUG"] opencode
    [object Object]
    ➜  ~

    Operating System

    Linux archhostname 6.17.9-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Mon, 24 Nov 2025 15:21:16 +0000 x86_64 GNU/Linux

    Terminal

    Ghostty

  6. rekram1-node
    assigned
    kommander
    and unassigned
    rekram1-node
    on Dec 10, 2025
  7. junjieit commented on Dec 11, 2025

    @junjieit
    junjieit
    on Dec 11, 2025
    More actions

    The error on my end occurred because I had a network proxy enabled.
    The error likely originates from this location: https://github.com/sst/opencode/blob/dev/packages/sdk/js/src/v2/gen/client/client.gen.ts#L196

  8. nicehiro commented on Dec 11, 2025

    @nicehiro
    nicehiro
    on Dec 11, 2025
    Author
    More actions

    The error on my end occurred because I had a network proxy enabled.

    Same here. I also have a local proxy set.

  9. junjieit commented on Dec 11, 2025

    @junjieit
    junjieit
    on Dec 11, 2025
    More actions

    You can bypass the local address first.

    export NO_PROXY=localhost,127.0.0.1,::1
  10. nicehiro commented on Dec 11, 2025

    @nicehiro
    nicehiro
    on Dec 11, 2025
    Author
    More actions

    You can bypass the local address first.

    export NO_PROXY=localhost,127.0.0.1,::1

    Thanks for the suggestion. However, my situation is a bit different — I actually need the proxy to access the full network (e.g., npm registries and other external resources).
    If I set NO_PROXY, the opencode CLI itself seems to work, but it still fails to launch properly because some dependencies can't be downloaded without the proxy.

  11. timiil commented on Dec 24, 2025

    @timiil
    timiil
    on Dec 24, 2025
    More actions

    same problem here?

    timiil@tim-work:~$ opencode --print-logs --log-level DEBUG
    INFO  2025-12-24T03:39:13 +175ms service=default version=1.0.193 args=["--print-logs","--log-level","DEBUG"] opencode
    [object Object]
    

    in a new wsl ubuntu 24.04.
    thanks for help

  12. timiil commented on Dec 24, 2025

    @timiil
    timiil
    on Dec 24, 2025
    More actions

    very strange, ssh from a lan computer and start opencode is OK. the problem is related by Terminal ?

  13. nicehiro commented on Dec 24, 2025

    @nicehiro
    nicehiro
    on Dec 24, 2025
    Author
    More actions

    @timiil I guess the problem is related to using proxy.

    I have following configs in my .bashrc as here

    export HTTP_PROXY=xxx
    export HTTPS_PROXY=xxx
    export NO_PROXY=localhost,127.0.0.1
    

    And also I need to set:

    export OPENCODE_DISABLE_DEFAULT_PLUGINS=1
    

    And now I can use opencode.

  14. timiil commented on Dec 24, 2025

    @timiil
    timiil
    on Dec 24, 2025
    More actions

    @timiil I guess the problem is related to using proxy.

    I have following configs in my .bashrc as here

    export HTTP_PROXY=xxx
    export HTTPS_PROXY=xxx
    export NO_PROXY=localhost,127.0.0.1
    

    And also I need to set:

    export OPENCODE_DISABLE_DEFAULT_PLUGINS=1
    

    And now I can use opencode.

    seems not , i do have these envs:

    timiil@tim-work:~/jpda$ echo $http_proxy
    http://127.0.0.1:10811
    timiil@tim-work:~/jpda$ echo $https_proxy
    http://127.0.0.1:10811
    timiil@tim-work:~/jpda$ echo $HTTP_PROXY
    http://127.0.0.1:10811
    timiil@tim-work:~/jpda$ echo $HTTPS_PROXY
    http://127.0.0.1:10811
    timiil@tim-work:~/jpda$ opencode
    [object Object]
    
  15. nicehiro commented on Dec 24, 2025

    @nicehiro
    nicehiro
    on Dec 24, 2025 via email
    Author
    More actions
    Do you have no_proxy env variable settings?
    …
    On Wed, 24 Dec 2025 at 3:42 PM, timiil ***@***.***> wrote: *timiil* left a comment (anomalyco/opencode#5206) <#5206 (comment)> @timiil <https://github.com/timiil> I guess the problem is related to using proxy. I have following configs in my .bashrc as here <https://opencode.ai/docs/network/> export HTTP_PROXY=xxx export HTTPS_PROXY=xxx export NO_PROXY=localhost,127.0.0.1 And also I need to set: export OPENCODE_DISABLE_DEFAULT_PLUGINS=1 And now I can use opencode. seems not , i do have these envs: ***@***.***:~/jpda$ echo $http_proxyhttp://127.0.0.1:10811 ***@***.***:~/jpda$ echo $https_proxyhttp://127.0.0.1:10811 ***@***.***:~/jpda$ echo $HTTP_PROXYhttp://127.0.0.1:10811 ***@***.***:~/jpda$ echo $HTTPS_PROXYhttp://127.0.0.1:10811 ***@***.***:~/jpda$ opencode [object Object] — Reply to this email directly, view it on GitHub <#5206 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AEHTIQQK7COHYOJQR54ZFMT4DI7XBAVCNFSM6AAAAACOJRH6LKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMOBYHE3DKNRZGY> . You are receiving this because you authored the thread.Message ID: ***@***.***>
  16. timiil commented on Dec 24, 2025

    @timiil
    timiil
    on Dec 24, 2025
    More actions

    Do you have no_proxy env variable settings?
    …

    (base) timiil@tim-work:~$ cd /home/timiil/
    (base) timiil@tim-work:~$ echo $no_proxy
    172.31.*,172.30.*,172.29.*,172.28.*,172.27.*,172.26.*,172.25.*,172.24.*,172.23.*,172.22.*,172.21.*,172.20.*,172.19.*,172.18.*,172.17.*,172.16.*,10.*,192.168.*,127.*,localhost,<local>
    (base) timiil@tim-work:~$ opencode
    [object Object]
    

    yep, i do

  17. timiil commented on Dec 24, 2025

    @timiil
    timiil
    on Dec 24, 2025
    More actions

    Image i can ssh my own wsl , and then start OpenCode ...

  18. jiehai4 commented on Jan 5, 2026

    @jiehai4
    jiehai4
    on Jan 5, 2026
    More actions

    Terrible, using a proxy results in [object Object], and without it, I can't connect to the URL, but it was working fine yesterday.

  19. jiehai4 commented on Jan 5, 2026

    @jiehai4
    jiehai4
    on Jan 5, 2026
    More actions

    I just tried it and became even more confused. I can use opencode in the terminal when I open a single file with VSCode, but it doesn't work when I open a project folder with VSCode.

  20. grey8848 commented on Jan 7, 2026

    @grey8848
    grey8848
    on Jan 7, 2026
    More actions

    evn: windows 11 wsl debian zsh
    error: [object Object]
    ❯ vim .zshrc
    ❯ echo $no_proxyROXY

    ❯ echo $NO_PROXY
    local-registry,192.168.,172.31.,172.30.,172.29.,172.28.,172.27.,172.26.,172.25.,172.24.,172.23.,172.22.,172.21.,172.20.,172.19.,172.18.,172.17.,172.16.,10.,127.*,localhost,
    ❯ opencode
    [object Object]
    ❯ opencode --print-logs --log-level DEBUG
    INFO 2026-01-07T00:55:25 +209ms service=default version=1.1.4 args=["--print-logs","--log-level","DEBUG"] opencode
    INFO 2026-01-07T00:55:25 +1ms service=config path=/home/jack111/.config/opencode/config.json loading
    INFO 2026-01-07T00:55:25 +0ms service=config path=/home/jack111/.config/opencode/opencode.json loading
    INFO 2026-01-07T00:55:25 +2ms service=config path=/home/jack111/.config/opencode/opencode.jsonc loading
    [object Object]
    ❯ vim .zshrc
    ❯ vim .p10k.zsh
    ❯ export OPENCODE_DISABLE_DEFAULT_PLUGINS=1
    ❯ opencode --print-logs --log-level DEBUG
    INFO 2026-01-07T00:56:54 +180ms service=default version=1.1.4 args=["--print-logs","--log-level","DEBUG"] opencode
    INFO 2026-01-07T00:56:54 +1ms service=config path=/home/jack111/.config/opencode/config.json loading
    INFO 2026-01-07T00:56:54 +0ms service=config path=/home/jack111/.config/opencode/opencode.json loading
    INFO 2026-01-07T00:56:54 +2ms service=config path=/home/jack111/.config/opencode/opencode.jsonc loading
    [object Object]
      ~ ❯

  21. timiil commented on Jan 7, 2026

    @timiil
    timiil
    on Jan 7, 2026
    More actions

    no any update opencode, but today:

    (base) timiil@nanyuan:~$ opencode -v
    1.0.218
    

    can not start opencode inside a ssh session any more, it is hang for long time no any char showup in ssh

  22. hezhexi2002 commented on Jan 9, 2026

    @hezhexi2002
    hezhexi2002
    on Jan 9, 2026
    More actions

    You can bypass the local address first.
    export NO_PROXY=localhost,127.0.0.1,::1

    Thanks for the suggestion. However, my situation is a bit different — I actually need the proxy to access the full network (e.g., npm registries and other external resources). If I set NO_PROXY, the opencode CLI itself seems to work, but it still fails to launch properly because some dependencies can't be downloaded without the proxy.

    Hi, I ran into the same problem.
    When I use SSH to forward my local proxy and then run opencode, I get the same error output.

    It seems that setting NO_PROXY allows the CLI itself to start, but then it fails again because some dependencies cannot be downloaded without the proxy.

    May I ask if you’ve found a solution or workaround for this issue?

  23. nicehiro commented on Jan 9, 2026

    @nicehiro
    nicehiro
    on Jan 9, 2026 via email
    Author
    More actions
    Yes. Just use bun to install dependencies using proxy first.
    …
    On Fri, Jan 9, 2026 at 12:09 faiz ***@***.***> wrote: *hezhexi2002* left a comment (anomalyco/opencode#5206) <#5206 (comment)> You can bypass the local address first. export NO_PROXY=localhost,127.0.0.1,::1 Thanks for the suggestion. However, my situation is a bit different — I actually need the proxy to access the full network (e.g., npm registries and other external resources). If I set NO_PROXY, the opencode CLI itself seems to work, but it still fails to launch properly because some dependencies can't be downloaded without the proxy. Hi, I ran into the same problem. When I use SSH to forward my local proxy and then run opencode, I get the same error output. It seems that setting NO_PROXY allows the CLI itself to start, but then it fails again because some dependencies cannot be downloaded without the proxy. May I ask if you’ve found a solution or workaround for this issue? — Reply to this email directly, view it on GitHub <#5206 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AEHTIQV6YBQZXKHKQTVZQ3T4F4SX7AVCNFSM6AAAAACOJRH6LKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTOMRXGEYDIMRZG4> . You are receiving this because you authored the thread.Message ID: ***@***.***>
  24. thdxr commented on Mar 25, 2026

    @thdxr
    thdxr
    on Mar 25, 2026
    Member
    More actions

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  25. thdxr
    removed
    bugSomething isn't working
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on May 3, 2026
  26. rekram1-node
    closed this as not plannedon May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @kommander
    kommander

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.