Anything later than 0.1.176 locks up with a BadRequest error on every prompt
It works fine on 176, and every later version seems broken. The problem only happens on an ubuntu machine, my mac works just fine. From the version-version changes all I can see that could be relevant is https://github.com/sst/opencode/commit/63e783ef795d91c745733b945247e917f1683d31, which changes how Open Router requests are handled. Can't see what it could be there though other than DNS cache, which I have cleared.
This is the specific error:
I'm on Ubuntu too but I get a slightly different problem, mine just sits on the "working..." and never does anything, no errors, nothing. But I can tell it's obviously waiting for something. Was fine before on 0.1.176.
@bczsalba Just out of interest, how did you roll back?
what model is this? btw config has the option to set autoupdate = false
same here (failed to send message), ubuntu 25.04, v0.1.189, sonnet 4
@hazrpg You can run opencode upgrade <any version>, so I just "up"graded down to 0.1.176.
@thdxr Claude 4 Sonnet, with API creds. Didn't know about the config option, definitely beats downgrading every time I run!
Edit: Actually seems to have been resolved as of 0.1.189, cheers!
@bczsalba ah great! Thanks for the heads up.
@thdxr Looks like it's resolved for me too. Nice one!
Gotta say, I really love this TUI. Saw prime using it and had to give it a shot. Definitely better than all the other things I've been fumbling along with. Definitely complements the experience and knowledge I've gained over the decades and speeds up quick prototyping to get a proof of concept out of there. I need to play with it more on existing projects too.
Don't want to open a new issue just yet, but I'm having this same issue on 0.1.189
Model: 3.5 sonnet