opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Freeze on "generating..." with code-supernova on 0.10.2

Open alexeypolitov opened this issue 1 year ago • 13 comments

https://opencode.ai/s/ZBE5agos

https://github.com/user-attachments/assets/945e6883-8d54-4323-a2af-b2bb1acd2184

alexeypolitov avatar Sep 19 '25 22:09 alexeypolitov

@alexeypolitov consider doing /thinking so you can see thinking chunks

could you show last log file?

rekram1-node avatar Sep 19 '25 22:09 rekram1-node

I am also getting freezes when using Grok-Code-Fast-1. It will stop working, and the generation animation (text color changes) will freeze when generating.

teak421 avatar Sep 20 '25 17:09 teak421

what’s the frequency? Can you provide the logs when this happened?

rekram1-node avatar Sep 20 '25 17:09 rekram1-node

what’s the frequency? Can you provide the logs when this happened?

It happens to me at least once every time I use Opencode for a session of a few hours. I'm digging around to find where the log files are.

teak421 avatar Sep 20 '25 18:09 teak421

ERROR 2025-09-20T18:24:36 +445ms service=lsp.client serverID=pyright error=Operation timed out after 5000ms initialize error ERROR 2025-09-20T18:24:36 +1ms service=lsp error=LSPInitializeError Caused by: Operation timed out after 5000ms Failed to initialize LSP client pyright ERROR 2025-09-20T18:24:38 +254ms service=lsp.client serverID=pyright error=Operation timed out after 5000ms initialize error ERROR 2025-09-20T18:24:38 +0ms service=lsp error=LSPInitializeError Caused by: Operation timed out after 5000ms Failed to initialize LSP client pyright

teak421 avatar Sep 20 '25 19:09 teak421

oo that is good to know actually ty

rekram1-node avatar Sep 20 '25 19:09 rekram1-node

i've experienced this with several models, grok-4-fast, grok-code-fast-1, kimi-k2

Haven't been using other models in opencode, idk if this is model dependent.

EDIT: seems like this happens when the responses are complete. So likely something going on with response completed state

AVGVSTVS96 avatar Sep 21 '25 01:09 AVGVSTVS96

@teak421 you should try putting this in your opencode.json

{
  "lsp": {
     "pyright": {
        "disabled": true
      }
  }
}

rekram1-node avatar Sep 21 '25 03:09 rekram1-node

@teak421 you should try putting this in your opencode.json

{
  "lsp": {
     "pyright": {
        "disabled": true
      }
  }
}

Do you think this issue will be fixed, since the above is simply a workaround? Thx.

teak421 avatar Sep 25 '25 22:09 teak421

@teak421 I think I may have fixed part of the issue in one of the more recent releases actually but need to verify

rekram1-node avatar Sep 25 '25 22:09 rekram1-node

It just happened to me about an hour ago, which is why I thought about it. (on my Mac at work). I was on 0.11.3. Thx.

teak421 avatar Sep 25 '25 23:09 teak421

but was that with the lsp disabled? there are times generating could possibly hang for a while

if u could provide any logs thatd be amazing

rekram1-node avatar Sep 26 '25 00:09 rekram1-node

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

rekram1-node avatar Dec 28 '25 00:12 rekram1-node