opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[BUG] OpenCode just hangs randomly after receiving instructions

Open rrapstine opened this issue 2 months ago • 28 comments

I'm working on a Laravel project (using Laravel Boost) and, no matter which model I try, OpenCode will just randomly hang after I give it instructions. Sometimes running /compact fixes it, but not always. I usually end up having to Ctrl + C out of it, as typing /exit is usually unresponsive as well. When I go back in, I can reattach to the session and continue working for a little bit, but within minutes its right back to hanging and becoming unresponsive. No "generating" or "working" messages. Just...nothing.

I have tried clearing cache and reinstalling. I have tried inside and outside of tmux. The only thing I haven't done is test on my mac or use a different terminal. If it matters at all, my environment is:

Linux 6.17.0-3-cachyos
Ghostty 1.2.0-arch1
tmux 3.5_a-1.1
OpenCode 0.14.0

I'm using the Github Copilot models, and I have tried them all.

The output of opencode run hey --print-logs

❯ opencode run hey --print-logs
INFO  2025-10-03T02:41:43 +89ms service=default version=0.14.0 args=["run","hey","--print-logs"] opencode
INFO  2025-10-03T02:41:43 +1ms service=project directory=/home/richard/Code/projects/project-pod fromDirectory
INFO  2025-10-03T02:41:43 +10ms service=config path=/home/richard/.config/opencode/config.json loading
INFO  2025-10-03T02:41:43 +1ms service=config path=/home/richard/.config/opencode/opencode.json loading
INFO  2025-10-03T02:41:43 +0ms service=config path=/home/richard/.config/opencode/opencode.jsonc loading
INFO  2025-10-03T02:41:43 +1ms service=config path=/home/richard/Code/projects/project-pod/opencode.jsonc loading
INFO  2025-10-03T02:41:43 +7ms service=plugin [email protected] loading plugin
INFO  2025-10-03T02:41:43 +1ms service=plugin [email protected] loading plugin
INFO  2025-10-03T02:41:43 +13ms service=bus type=* subscribing
INFO  2025-10-03T02:41:43 +0ms service=bus type=session.updated subscribing
INFO  2025-10-03T02:41:43 +0ms service=bus type=message.updated subscribing
INFO  2025-10-03T02:41:43 +0ms service=bus type=message.part.updated subscribing
INFO  2025-10-03T02:41:43 +0ms service=format init
INFO  2025-10-03T02:41:43 +0ms service=bus type=file.edited subscribing
INFO  2025-10-03T02:41:43 +2ms service=session id=ses_6580da148ffeevlRvLPLRq9SXF version=0.14.0 projectID=df32630889fb059130fbf155bc72bf15d6c34a08 directory=/home/richard/Code/projects/project-pod title=New session - 2025-10-03T02:41:43.095Z time={"created":1759459303095,"updated":1759459303095} created
INFO  2025-10-03T02:41:43 +2ms service=lsp serverIds=typescript, vue, eslint, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, rust, clangd, svelte, jdtls enabled LSP servers
INFO  2025-10-03T02:41:43 +1ms service=bus type=session.updated publishing
INFO  2025-10-03T02:41:43 +5ms service=bus type=message.part.updated subscribing
INFO  2025-10-03T02:41:43 +0ms service=bus type=session.error subscribing
INFO  2025-10-03T02:41:43 +1ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF prompt
INFO  2025-10-03T02:41:43 +1ms service=bus type=message.updated publishing
INFO  2025-10-03T02:41:43 +1ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:43 +0ms service=bus type=session.updated publishing
INFO  2025-10-03T02:41:43 +3ms service=models.dev file={} refreshing
INFO  2025-10-03T02:41:43 +2ms service=provider init
INFO  2025-10-03T02:41:43 +2ms service=provider providerID=opencode found
INFO  2025-10-03T02:41:43 +0ms service=provider providerID=github-copilot found
INFO  2025-10-03T02:41:43 +0ms service=provider providerID=github-copilot modelID=gpt-4.1 getModel
INFO  2025-10-03T02:41:43 +0ms service=provider status=started providerID=github-copilot getSDK
INFO  2025-10-03T02:41:43 +52ms service=provider status=completed duration=52 providerID=github-copilot getSDK
INFO  2025-10-03T02:41:43 +1ms service=provider providerID=github-copilot modelID=gpt-4.1 found
INFO  2025-10-03T02:41:43 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF sessionID=ses_6580da148ffeevlRvLPLRq9SXF locking
INFO  2025-10-03T02:41:43 +14ms service=mcp key=laravel_boost type=local found
INFO  2025-10-03T02:41:43 +309ms service=bus type=message.updated publishing
INFO  2025-10-03T02:41:43 +5ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF process
INFO  2025-10-03T02:41:43 +5ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=start part
INFO  2025-10-03T02:41:44 +844ms service=bus type=session.updated publishing
INFO  2025-10-03T02:41:44 +618ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=start-step part
INFO  2025-10-03T02:41:44 +2ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +4ms service=snapshot initialized
INFO  2025-10-03T02:41:44 +20ms service=snapshot hash=ef3f580e597541589f2cce96289e8430f68de5cf
 cwd=/home/richard/Code/projects/project-pod git=/home/richard/.local/share/opencode/snapshot/df32630889fb059130fbf155bc72bf15d6c34a08 tracking
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-start part
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +1ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +1ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +1ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:44 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:44 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:45 +16ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:45 +1ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:45 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-delta part
INFO  2025-10-03T02:41:45 +0ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:45 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=text-end part
INFO  2025-10-03T02:41:45 +1ms service=bus type=message.part.updated publishing

Hey! How can I help you today? If you have a task or question about your project, just let me know.

INFO  2025-10-03T02:41:45 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=finish-step part
INFO  2025-10-03T02:41:45 +1ms service=bus type=message.part.updated publishing
INFO  2025-10-03T02:41:45 +1ms service=bus type=message.updated publishing
INFO  2025-10-03T02:41:45 +5ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF type=finish part
INFO  2025-10-03T02:41:45 +0ms service=bus type=message.updated publishing
INFO  2025-10-03T02:41:45 +0ms service=bus type=message.updated publishing
INFO  2025-10-03T02:41:45 +1ms service=bus type=message.updated publishing
INFO  2025-10-03T02:41:45 +0ms service=session.compaction pruning
INFO  2025-10-03T02:41:45 +0ms service=session.prompt session=ses_6580da148ffeevlRvLPLRq9SXF sessionID=ses_6580da148ffeevlRvLPLRq9SXF unlocking
INFO  2025-10-03T02:41:45 +2ms service=bus type=session.idle publishing
INFO  2025-10-03T02:41:45 +9ms service=session.compaction pruned=0 total=0 found

rrapstine avatar Oct 03 '25 02:10 rrapstine

@rrapstine so when you say unresponsive is it the tui itself like freezing? what happens if you send prompts?

rekram1-node avatar Oct 03 '25 02:10 rekram1-node

could you grab the latest log file next time this happens?

run:

opencode debug paths

it will tell u where to find file

rekram1-node avatar Oct 03 '25 02:10 rekram1-node

This issue might be a duplicate of existing issues. Please check:

  • #2819: TUI stuck forever - Very similar symptoms with OpenCode getting stuck during startup/operation, shows similar logs with session locking
  • #2512: Opencode stuck in "generating" - Reports OpenCode becoming unresponsive while showing "generating" status, unresponsive to double-esc interruption
  • #2817: Nothing happens - Reports no reaction from OpenCode after entering prompts, no errors or feedback
  • #682: TUI unresponsive with non-terminating processes - Discusses ESC key being unresponsive and needing external intervention to regain control
  • #1418: working getting stuck and double esc not exiting - Reports getting stuck on "working" with escape key not functioning

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Oct 03 '25 03:10 github-actions[bot]

it start increasing use of cpu, till use all cpu

opencode 0.14.1 is the inner lsp the cause?

Image

@rekram1-node @thdxr

cirqueira-labs avatar Oct 03 '25 16:10 cirqueira-labs

@rekram1-node It just happened to me again. First time today. Here is the latest log file. Also, to clarify what its doing, it will be working as expected and then I'll send a prompt and...nothing happens. The UI updates to show my prompt but, just, nothing. Subsequent prompts don't work either. Sometimes I can use /compact to kind of reset things, but usually not even /exit works and I have to ctrl+c out. And when I do that, I have to ctrl+c an additional time to regain control of my terminal prompt.

rrapstine avatar Oct 03 '25 17:10 rrapstine

hmm this is very weird we will need to check it out thanks

rekram1-node avatar Oct 03 '25 17:10 rekram1-node

@cirqueira-labs it shouldn't be but if it is try adding this to opencode.json:

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

rekram1-node avatar Oct 03 '25 17:10 rekram1-node

@cirqueira-labs it shouldn't be but if it is try adding this to opencode.json:

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

ok .. thats it .. lsp disabled and no more cpu increasing usage

cirqueira-labs avatar Oct 03 '25 17:10 cirqueira-labs

from @rekram1-node:

oof okay good to know we will need to address that

linear[bot] avatar Oct 03 '25 17:10 linear[bot]

@rekram1-node Just wanted to add that I am also getting weird (and random) issues where I can no longer copy/paste inside of OpenCode. I have not figured out a way to fix this other than a full reboot. I am unable to determine if it is related to my other issue or not.

rrapstine avatar Oct 03 '25 19:10 rrapstine

hm got it thanks for sharing

rekram1-node avatar Oct 03 '25 19:10 rekram1-node

Of course. Thank you for investigating! If there is anything else you need let me know.

rrapstine avatar Oct 03 '25 19:10 rrapstine

@rekram1-node I can now confirm that both issues occur in both Ghostty and Kitty, inside of tmux and outside. So, I think it is safe to say that it is not an issue caused by my terminal or multiplexer.

rrapstine avatar Oct 03 '25 21:10 rrapstine

@rrapstine is that the paste you are referring to? If so I think we may have another issue tracking that but since the whole tui is currently being rewritten it should be fixed by the opentui migration that will be here in about a week or so

rekram1-node avatar Oct 03 '25 21:10 rekram1-node

TLDR: I think I have the same problem. Removing MCP config made it go away. Seems MCP server related.

I believe I'm experiencing the same issue, and it began right after I sent a query to a @general sub-session. That query triggered an error message and failed to process. To troubleshoot, I created new sessions in an attempt to elicit a response, then exited and restarted the app multiple times. However, it never displayed the "Generating" indicator. The interface would only show my prompt and the timestamp, with no further activity. While searching for a fix, I left one session open with a simple prompt: "are you there?" After approximately 5 minutes, it finally began responding normally. I then closed and reopened the app to verify if the problem was resolved, but it wasn't—still no "Generating" status. ...After waiting an extended period... Note: The response time in this case was about 5 minutes. Image Further investigation led me to examine the storage folder, where I discovered several message files with anomalous start and end timestamps, all originating from the moment the issues began. Interestingly, when I started a brand-new project to summarize those message files, everything functioned normally in that session. This suggests the problem is specific to the affected project.

session_problem.md

Another Idea I found from the logs. Maybe it's MCP related.

INFO  2025-10-04T23:11:38 +0ms service=tui end=-1,-1 start=43,34 mouse selection
INFO  2025-10-04T23:11:45 +6826ms service=server method=POST path=/session request
INFO  2025-10-04T23:11:45 +1ms service=session id=ses_64e8123daffejkgCNAQiUokVuT version=0.14.0 projectID=6e908fff13e7797890b933838d2047dca011d49f directory=C:\Users\austi\src\dragonhunter title=New session - 2025-10-04T23:11:45.189Z time={"created":1759619505189,"updated":1759619505189} created
INFO  2025-10-04T23:11:45 +7ms service=bus type=session.updated publishing
INFO  2025-10-04T23:11:45 +1ms service=server duration=8 response
INFO  2025-10-04T23:11:45 +2ms service=server method=POST path=/session/ses_64e8123daffejkgCNAQiUokVuT/message request
INFO  2025-10-04T23:11:45 +2ms service=session.prompt session=ses_64e8123daffejkgCNAQiUokVuT prompt
INFO  2025-10-04T23:11:45 +2ms service=bus type=message.updated publishing
INFO  2025-10-04T23:11:45 +1ms service=bus type=message.part.updated publishing
INFO  2025-10-04T23:11:45 +1ms service=bus type=session.updated publishing
INFO  2025-10-04T23:11:45 +1ms service=provider providerID=xai modelID=grok-4-fast-non-reasoning getModel
INFO  2025-10-04T23:11:45 +0ms service=provider status=started providerID=xai getSDK
INFO  2025-10-04T23:11:45 +62ms service=provider status=completed duration=62 providerID=xai getSDK
INFO  2025-10-04T23:11:45 +0ms service=provider providerID=xai modelID=grok-4-fast-non-reasoning found
INFO  2025-10-04T23:11:45 +0ms service=session.prompt session=ses_64e8123daffejkgCNAQiUokVuT sessionID=ses_64e8123daffejkgCNAQiUokVuT locking
INFO  2025-10-04T23:11:45 +44ms service=mcp key=ide type=remote found
ERROR 2025-10-04T23:17:17 +332435ms service=mcp key=ide url=http://localhost:64342/sse error=SSE error: The operation timed out. remote mcp connection failed
INFO  2025-10-04T23:17:17 +0ms service=bus type=session.error publishing
ERROR 2025-10-04T23:17:17 +3ms service=tui message=MCP server ide failed to connect: SSE error: The operation timed out. name=UnknownError Server error
INFO  2025-10-04T23:17:17 +8ms service=bus type=message.updated publishing
INFO  2025-10-04T23:17:17 +3ms service=session.prompt session=ses_64e8123daffejkgCNAQiUokVuT process
INFO  2025-10-04T23:17:17 +1ms service=session.prompt session=ses_64e8123daffejkgCNAQiUokVuT type=start part
INFO  2025-10-04T23:17:18 +335ms service=bus type=session.updated publishing
INFO  2025-10-04T23:17:19 +1070ms service=session.prompt session=ses_64e8123daffejkgCNAQiUokVuT type=start-step part
INFO  2025-10-04T23:17:19 +1ms service=bus type=message.part.updated publishing
INFO  2025-10-04T23:17:19 +41ms service=snapshot initialized
INFO  2025-10-04T23:17:24 +5539ms service=snapshot hash=ac0ad8d26707c0413815783561995b431799a52e
 cwd=C:\Users\austi\src\dragonhunter git=C:\Users\austi\.local\share\opencode\snapshot\6e908fff13e7797890b933838d2047dca011d49f tracking
INFO  2025-10-04T23:17:24 +0ms service=session.prompt session=ses_64e8123daffejkgCNAQiUokVuT type=text-start part
INFO  2025-10-04T23:17:24 +0ms service=session.prompt session=ses_64e8123daffejkgCNAQiUokVuT type=text-delta part
INFO  2025-10-04T23:17:24 +1ms service=bus type=message.part.updated publishing

I removed my MCP config from the project that was having the problem.

  "mcp": {
    "ide" : {
      "type": "remote",
      "url": "http://localhost:64342/sse",
      "headers": {
        "IJ_MCP_SERVER_PROJECT_PATH": "..."
      }
    }
  },

And things starting working again normally.

Astn avatar Oct 04 '25 23:10 Astn

@Astn You know, now that you mention it, I don't believe that I have encountered either issue when working in a project that doesn't try to use an MCP server. I will need to test it further. Honestly though, it got super annoying having to constantly restart opencode, so I have been using the copilot-cli until the tui rewrite is finished. Hopefully that solves my issues.

rrapstine avatar Oct 06 '25 17:10 rrapstine

I've been having a lot of similar issues for days, and thanks to @Astn I can confirm, removing mcp configs fixes the issue for me.

Using --print-logs didn't reveal anything useful.

tomoglavas avatar Oct 06 '25 19:10 tomoglavas

In my case, I was able to get the local MCP to work, as the MCP server I was using had a local option as well.

Key error in the log was:

ERROR 2025-10-04T23:17:17 +332435ms service=mcp key=ide url=http://localhost:64342/sse error=SSE error: The operation timed out. remote mcp connection failed
INFO  2025-10-04T23:17:17 +0ms service=bus type=session.error publishing
ERROR 2025-10-04T23:17:17 +3ms service=tui message=MCP server ide failed to connect: SSE error: The operation timed out. name=UnknownError Server error

I was using the JetBrains MCP server, and it might be as simple as restarting something in JetBrains to make it work again. I have a feeling it's more of a problem with the MCP server itself, less with OpenCode, albeit with the lack of visibility into the waiting on the MCP problem.

What I ended up doing was using the JetBrain local option, which resulted in a config like:

  "mcp": {
    "jetbrains-mcp-server": {
      "type": "local",
      "command": [
        "C:\\Users\\austi\\AppData\\Local\\Programs\\Rider\\jbr\\bin\\java",
        "-classpath",
        "C:\\Users\\austi\\AppData\\Roaming\\JetBrains\\Rider2025.2\\plugins\\mcpserver\\lib\\mcpserver-frontend.jar;C:\\Users\\austi\\AppData\\Local\\Programs\\Rider\\lib\\util-8.jar",
        "com.intellij.mcpserver.stdio.McpStdioRunnerKt"
      ],
      "enabled": true,
      "environment": {
        "IJ_MCP_SERVER_PORT": "64342"
      }
    }
  },

Note that the above is specific to my system and to the JetBrains IDE. If using JetBrains, you would need to make sure you have it configured correctly in JetBrains first.

Astn avatar Oct 06 '25 22:10 Astn

Hey folks 👋🏻 I've been experiencing this issue more and more each day since at least a week. IDK if I did any change in particular to cause this. Are there any way in which I could collect more logs and or run some self troubleshoothing, unless we already clearly understand the cause?

ramarivera avatar Dec 15 '25 18:12 ramarivera

@ramarivera is it specifically after coming back to opencode after having it open for a while

rekram1-node avatar Dec 15 '25 18:12 rekram1-node

@ramarivera is it specifically after coming back to opencode after having it open for a while

Assuming this was a question. No, for me it happens that I have an opencode session open from zero, 3 minutes before, I prompt some, it's fine, and then when my next round comes I print again and no meaningful reply ever comes, or if it does is just a file read after 10 minutes that takes further 10 minutes to resolve

ramarivera avatar Dec 15 '25 18:12 ramarivera

@ramarivera what model are you using? What OS are you on?

rekram1-node avatar Dec 15 '25 18:12 rekram1-node

@ramarivera what model are you using? What OS are you on?

Mostly Mac OS (latest non Liquid Glass major version). As for models, all the top level ones, all behave eventually the same: plus 4.5 gpt codex or 5.2, Gemini 3

ramarivera avatar Dec 15 '25 18:12 ramarivera

As for models, all the top level ones

What provider(s)? The official one (as in openai, anthropic)? Openrouter?

Do you see the loading spinner still or does everything just hang?

Are you on latest?

rekram1-node avatar Dec 15 '25 18:12 rekram1-node

keeps happening all day today, how can I help troubleshoot?

omercnet avatar Dec 17 '25 13:12 omercnet

seems to be rate limiting in my case, but no indication from opencode client - just hangs

INFO  2025-12-17T13:47:59 +0ms service=session.prompt session=ses_4d37b53cdffeHWmVwwTm912T3A attempt=9 delayMs=1000 retrying with backoff
INFO  2025-12-17T13:48:00 +1002ms service=session.prompt session=ses_4d37b53cdffeHWmVwwTm912T3A process
INFO  2025-12-17T13:48:00 +1ms service=session.prompt session=ses_4d37b53cdffeHWmVwwTm912T3A type=start part
ERROR 2025-12-17T13:48:01 +937ms service=session.prompt session=ses_4d37b53cdffeHWmVwwTm912T3A error={
  "error": {
    "name": "AI_APICallError",
    "url": "https://api.githubcopilot.com/chat/completions",
    "requestBodyValues": {
      "model": "claude-sonnet-4.5",
      "max_tokens": 16000
    },
    "statusCode": 429,
    "responseHeaders": {
      "cache-control": "no-cache",
      "content-type": "text/event-stream",
      "retry-after": "2",
      "x-ratelimit-exceeded": "global-chat:global-user-tps-high-2025-04-08:userID:COPILOT_PLAN_ENTERPRISE"
    },
    "responseBody": "Rate limit exceeded",
    "isRetryable": true
  }
}
INFO  2025-12-17T13:48:01 +1ms service=session.prompt session=ses_4d37b53cdffeHWmVwwTm912T3A type=error part
ERROR 2025-12-17T13:48:01 +0ms service=session.prompt session=ses_4d37b53cdffeHWmVwwTm912T3A error=Too Many Requests process
INFO  2025-12-17T13:48:01 +0ms service=bus type=message.part.updated publishing
INFO  2025-12-17T13:48:01 +2ms service=bus type=message.updated publishing
INFO  2025-12-17T13:48:01 +1ms service=bus type=message.updated publishing

omercnet avatar Dec 17 '25 13:12 omercnet

@omercnet what version are you on?

rekram1-node avatar Dec 17 '25 15:12 rekram1-node