Opencode beomces stuck on start if internet connection is not stable
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
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
opencodehang - #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.
what if you set OPENCODE_DISABLE_DEFAULT_PLUGINS=1
This could be related to the models.dev refresh that happens during startup, maybe?
it shouldn't be blocking tho, if it is that's a bug
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.