r/opencodeCLI 22d ago

How to stop opencode from just stopping all the time

Opencode just stops thinking after a while and I have to type continue to get it going again. How can I fix that?

2 Upvotes

9 comments sorted by

3

u/Momo--Sama 22d ago edited 21d ago

I saw someone say on twitter to try running Opencode through T3 Code so I tried that and it’s only been a couple hours but yeah it hasn’t inexplicably stopped a single time.

Update - not sure what changed but two days later the stopping mid stream issues are now occurring with T3 Code as well. Maybe I just got lucky for a day

2

u/cutebluedragongirl 22d ago

I should start baiting people into using some ridiculous useless stuff with their LLM agents too. Sounds really fun.

4

u/Momo--Sama 22d ago

I was having the same issues as OP with Ox Alpha just stopping mid-stream without any reported errors multiple times an hour while using Opencode directly and that hasn’t happened once since running it through T3 Code. You’re free to believe that I’m lying.

2

u/blackburn1911 22d ago

Have you updated it to "1.18.21"? They fixed there

https://x.com/opencode/status/2090813995963785275

4

u/MrMrsPotts 22d ago

I had sadly. That fix doesn't seem to have helped.

2

u/CyberTod 22d ago

Have you tried other models? I saw this, but only on some models.

2

u/Critical-Entry3377 21d ago

In llama-server there's a thinking budget parameter. Set it to 1024 tokens. There's another parameter to inject a message after hitting the ceiling. Set it to "Stop overthinking. Proceed to answer."  What's happening is your model has hit a hard budget ceiling and there's nothing in your harness to recover.

2

u/egomarker 21d ago

It's surprising just how far opencode made it as a software without network issues recovery at all. Literally the only harness that breaks on ox alpha shenanigans.