opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Opencode beomces stuck on start if internet connection is not stable

Open tamirzb opened this issue 1 month ago • 5 comments

Description

As far as I understand when you start opencode it tries to download some stuff. When this happens it is still showing a blank screen before the opencode screen.

My internet connection is not very stable, some times I have a few seconds without a connection. When I try to run opencode there is a high chance that due to the unstable connection it will just get stuck in this loading state with a blank screen. After getting stuck nothing happens, no error message or anything like that. Also, Ctrl+C does not work, the only way to close it in that state is through kill.

OpenCode version

1.0.143

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Arch Linux

Terminal

Alacritty

tamirzb avatar Dec 10 '25 20:12 tamirzb

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

  • #5237: opencode web mode broken: empty page - multiple versions and multiple os
  • #4492: The opencode crash when the network is unstable
  • #5094: OpenCode TUI loses connection with server
  • #3273: MCP client failing makes opencode hang
  • #4823: v1.0.119: nothing to see in an environment with a proxy

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

github-actions[bot] avatar Dec 10 '25 20:12 github-actions[bot]

what if you set OPENCODE_DISABLE_DEFAULT_PLUGINS=1

rekram1-node avatar Dec 10 '25 21:12 rekram1-node

This could be related to the models.dev refresh that happens during startup, maybe?

ariane-emory avatar Dec 10 '25 22:12 ariane-emory

it shouldn't be blocking tho, if it is that's a bug

rekram1-node avatar Dec 11 '25 00:12 rekram1-node

encounter same issues here. I'm still waiting for opencode to start. Only see a blank screen.

UPDATE: when I set OPENCODE_DISABLE_DEFAULT_PLUGINS=1 as @rekram1-node suggested, it starts fine.

cmdrrobin avatar Dec 11 '25 13:12 cmdrrobin