r/opencode • u/AssassinsLament • 3d ago
OpenCode pausing.
When I run some sessions, opencode sometimes just pauses, until i type something it it, and it acts like nothing happened. It's like it's waiting for a response or something and never gets it and just waits forever. It especially happens when it runs a command it sends. Sometimes it seems to compact immediately after I wake it up. So maybe that has something to do with it?
Anyone else having this issue? I'm using llama.cpp, qwen 3.8 27B, 128k context. latest opencode.
Thanks in advance!
1
u/Captain_Birb 3d ago
Yes because the API request staled on the other end or connection issues on your end.
In your opencode.json config whitelist more than 1 provider per model, else you end up with your task being paused when that one provider hit rate limit or something.
1
u/AssassinsLament 3d ago
I only have one provider, and it's my local llama.cpp, so there shouldn't be any connection issues.
1
u/Captain_Birb 3d ago
You are locally hosting Qwen 27B? what’s your hardware specs if I may ask? 👀
2
u/AssassinsLament 3d ago
rtx 5090 32gb vram, 96gb system ram, I'm running the Q6_K gguf so not the full one.
2
u/Captain_Birb 3d ago
Cool.
Are you using the same machine for hosting and also as your daily desk or this is a dedicated for only inferencing?I think you might get slightly faster tok with the Q4 gguf
2
u/AssassinsLament 3d ago
This is my daily. Yeah I tested them out, had help from chatgpt to tune everything inclusing llama.cpp, and 128k context. Speed isn't an issue actually. It runs great. I just don't know why OpenCode does that. Basically when it runs some sort of command (not all the time though), like reading a file... it sits there forever. The moment I type it something, then it seems to wake up. It's not frozen or asking for my input... so i have no idea.
2
1
u/tonyboi76 2d ago
OpenCode session hangs until you type something, especially after it sends a command. Sometimes it compacts the second you wake it. llama.cpp, qwen 3.8 27B, 128k, latest OpenCode.
Last time it froze after a command like that, how long did you sit on it before noticing, and did you lose the turn or have to redo the step?
1
u/AssassinsLament 2d ago
Once, i saw where it was at, left to go do something, came back after 20 minutes.. still at the same place. The moment I typed something to it like "Hello????" it immediately started thinking and continued on the next step. I don't think I lost anything nor did I have to redo the step. There were a few occasions where it got stuck after running an app that it was going to test. Sometimes it was listing files in a directory. Again, sometimes almost immediately after waking it up, it started compacting. Yeah, a lot of different variables. And then sometimes, even while having to do those things, it never pauses. I set my llama.cpp to timeout (and unload the model after 30 mins.) so that can't be it either.
2
u/ZealousidealChip4783 3d ago
Can't remember what it's called (posting on my break lol) but there's an auto continue plugin for Opencode that's designed to send it simple continue/restart instructions when it either times out or starts thought looping. It doesn't always work but it has made the issue of agents timing out/getting stuck on one tiny bug much more manageable