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

Closed
opened 2026-02-16 17:27:01 -05:00 by yindo · 6 comments
Owner

Originally created by @bczsalba on GitHub (Jul 3, 2025).

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

Originally created by @bczsalba on GitHub (Jul 3, 2025). 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](https://github.com/sst/opencode/compare/v0.1.176...v0.1.177) 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](https://github.com/user-attachments/assets/91e21c4b-361b-4c22-9ada-9b466f9531cf)
yindo closed this issue 2026-02-16 17:27:01 -05:00
Author
Owner

@hazrpg commented on GitHub (Jul 3, 2025):

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 commented on GitHub (Jul 3, 2025): 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?
Author
Owner

@thdxr commented on GitHub (Jul 3, 2025):

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

@thdxr commented on GitHub (Jul 3, 2025): what model is this? btw config has the option to set `autoupdate = false`
Author
Owner

@jens-guenther commented on GitHub (Jul 4, 2025):

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

@jens-guenther commented on GitHub (Jul 4, 2025): same here (failed to send message), ubuntu 25.04, v0.1.189, sonnet 4
Author
Owner

@bczsalba commented on GitHub (Jul 4, 2025):

@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 commented on GitHub (Jul 4, 2025): @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!
Author
Owner

@hazrpg commented on GitHub (Jul 4, 2025):

@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 commented on GitHub (Jul 4, 2025): @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.
Author
Owner

@FragAverage commented on GitHub (Jul 4, 2025):

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 commented on GitHub (Jul 4, 2025): 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#481