opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Anything later than 0.1.176 locks up with a BadRequest error on every prompt

Open bczsalba opened this issue 1 year ago • 6 comments

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:

Image

bczsalba avatar Jul 03 '25 20:07 bczsalba

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?

hazrpg avatar Jul 03 '25 22:07 hazrpg

what model is this? btw config has the option to set autoupdate = false

thdxr avatar Jul 03 '25 22:07 thdxr

same here (failed to send message), ubuntu 25.04, v0.1.189, sonnet 4

jens-guenther avatar Jul 04 '25 04:07 jens-guenther

@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 avatar Jul 04 '25 08:07 bczsalba

@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.

hazrpg avatar Jul 04 '25 10:07 hazrpg

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

FragAverage avatar Jul 04 '25 10:07 FragAverage