You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Message generation interrupted, stuck at Generating #2137
For me this happens with Anthropic models, and only in a situation that I have two opencode running at the same time. The second one I run keeps doing its work and causes the first one to get stuck. The esc key doesn't help either, I have to ctrl+c twice and get back to the same session and continue.
$ bunx opencode-ai@latest run "hello" --print-logs --model google/gemini-2.5-pro
INFO 2025-08-21T16:22:35 +149ms service=default version=0.5.13 args=["run","hello","--print-logs","--model","google/gemini-2.5-pro"] opencode
INFO 2025-08-21T16:22:35 +1ms service=app cwd=/tmp creating
INFO 2025-08-21T16:22:35 +2ms service=app git
INFO 2025-08-21T16:22:35 +2ms service=app name=plugin registering service
INFO 2025-08-21T16:22:35 +6ms service=app name=config registering service
INFO 2025-08-21T16:22:35 +1ms service=config path=/home/ivan/.config/opencode/config.json loading
INFO 2025-08-21T16:22:35 +1ms service=config path=/home/ivan/.config/opencode/opencode.json loading
INFO 2025-08-21T16:22:35 +0ms service=config path=/home/ivan/.config/opencode/opencode.jsonc loading
INFO 2025-08-21T16:22:35 +11ms service=config $schema=https://opencode.ai/config.json theme=opencode share=disabled provider={"groq":{"name":"Groq","npm":"@ai-sdk/groq","models":{},"options":{"apiKey":"","baseURL":"https://api.groq.com/openai/v1"}},"openrouter":{"name":"Openrouter","npm":"@ai-sdk/openai-compatible","models":{},"options":{"apiKey":"","baseURL":"https://openrouter.ai/api/v1"}},"ollama":{"name":"Ollama","npm":"@ai-sdk/openai-compatible","models":{"gpt-oss:20b":{"name":"gpt-oss:20b","options":{"num_ctx":128000}}},"options":{"baseURL":"http://ollama.homeworld.lan/v1"}}} mcp={"searxng":{"type":"local","command":["bunx","mcp-searxng"],"environment":{"SEARXNG_URL":"http://localhost:8080"},"enabled":true}} permission={"edit":"ask","bash":{"git status *":"allow","git diff *":"allow","ls":"allow","pwd":"allow","*":"ask"},"webfetch":"ask"} agent={} mode={} plugin=[] username=ivan loaded
INFO 2025-08-21T16:22:35 +0ms service=plugin path=opencode-copilot-auth@0.0.2 loading plugin
INFO 2025-08-21T16:22:35 +2ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin
INFO 2025-08-21T16:22:35 +20ms service=bus type=* subscribing
INFO 2025-08-21T16:22:35 +0ms service=app name=bus registering service
INFO 2025-08-21T16:22:35 +0ms service=bus type=storage.write subscribing
INFO 2025-08-21T16:22:35 +0ms service=format init
INFO 2025-08-21T16:22:35 +0ms service=bus type=file.edited subscribing
INFO 2025-08-21T16:22:35 +0ms service=config.hooks init
INFO 2025-08-21T16:22:35 +0ms service=bus type=file.edited subscribing
INFO 2025-08-21T16:22:35 +0ms service=bus type=session.idle subscribing
INFO 2025-08-21T16:22:35 +0ms service=app name=lsp registering service
INFO 2025-08-21T16:22:35 +2ms service=session id=ses_7328f8d24ffeOb3knrSoG09EIt version=0.5.13 title=New session - 2025-08-21T16:22:35.483Z time={"created":1755793355483,"updated":1755793355483} created
INFO 2025-08-21T16:22:35 +0ms service=app name=session registering service
INFO 2025-08-21T16:22:35 +0ms service=app name=storage registering service
INFO 2025-08-21T16:22:35 +1ms service=lsp serverIds=typescript, vue, eslint, golang, ruby-lsp, pyright, elixir-ls, zls, csharp, rust, clangd enabled LSP servers
INFO 2025-08-21T16:22:35 +3ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:35 +1ms service=bus type=session.updated publishing
INFO 2025-08-21T16:22:35 +0ms service=app name=agent registering service
INFO 2025-08-21T16:22:35 +1ms service=bus type=message.part.updated subscribing
INFO 2025-08-21T16:22:35 +0ms service=bus type=session.error subscribing
INFO 2025-08-21T16:22:35 +3ms service=session session=ses_7328f8d24ffeOb3knrSoG09EIt chatting
INFO 2025-08-21T16:22:35 +2ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:35 +0ms service=bus type=message.updated publishing
INFO 2025-08-21T16:22:35 +1ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:35 +0ms service=bus type=message.part.updated publishing
INFO 2025-08-21T16:22:35 +1ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:35 +0ms service=bus type=session.updated publishing
INFO 2025-08-21T16:22:35 +1ms service=app name=provider registering service
INFO 2025-08-21T16:22:35 +4ms service=models.dev file={} refreshing
INFO 2025-08-21T16:22:35 +4ms service=provider init
INFO 2025-08-21T16:22:35 +1ms service=provider providerID=google found
INFO 2025-08-21T16:22:35 +0ms service=provider providerID=opencode found
INFO 2025-08-21T16:22:35 +0ms service=provider providerID=groq found
INFO 2025-08-21T16:22:35 +0ms service=provider providerID=openrouter found
INFO 2025-08-21T16:22:35 +0ms service=provider providerID=ollama found
INFO 2025-08-21T16:22:35 +0ms service=provider providerID=google modelID=gemini-2.5-pro getModel
INFO 2025-08-21T16:22:35 +1ms service=provider status=started providerID=google getSDK
INFO 2025-08-21T16:22:35 +79ms service=provider status=completed duration=79 providerID=google getSDK
INFO 2025-08-21T16:22:35 +1ms service=provider providerID=google modelID=gemini-2.5-pro found
INFO 2025-08-21T16:22:35 +2ms service=session session=ses_7328f8d24ffeOb3knrSoG09EIt sessionID=ses_7328f8d24ffeOb3knrSoG09EIt locking
INFO 2025-08-21T16:22:35 +3ms service=provider providerID=google modelID=gemini-2.5-flash getModel
INFO 2025-08-21T16:22:35 +0ms service=provider status=started providerID=google getSDK
INFO 2025-08-21T16:22:35 +0ms service=provider status=completed duration=0 providerID=google getSDK
INFO 2025-08-21T16:22:35 +0ms service=provider providerID=google modelID=gemini-2.5-flash found
INFO 2025-08-21T16:22:35 +16ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:35 +0ms service=bus type=message.updated publishing
INFO 2025-08-21T16:22:35 +3ms service=app name=mcp registering service
INFO 2025-08-21T16:22:35 +1ms service=mcp key=searxng type=local found
INFO 2025-08-21T16:22:36 +570ms service=session session=ses_7328f8d24ffeOb3knrSoG09EIt type=start part
INFO 2025-08-21T16:22:37 +1244ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:37 +0ms service=bus type=session.updated publishing
INFO 2025-08-21T16:22:38 +616ms service=session session=ses_7328f8d24ffeOb3knrSoG09EIt type=start-step part
INFO 2025-08-21T16:22:38 +4ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:38 +1ms service=bus type=message.part.updated publishing
INFO 2025-08-21T16:22:38 +0ms service=session session=ses_7328f8d24ffeOb3knrSoG09EIt type=text-start part
INFO 2025-08-21T16:22:38 +0ms service=session session=ses_7328f8d24ffeOb3knrSoG09EIt type=text-delta part
INFO 2025-08-21T16:22:38 +2ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:38 +0ms service=bus type=message.part.updated publishing
INFO 2025-08-21T16:22:38 +0ms service=session session=ses_7328f8d24ffeOb3knrSoG09EIt type=text-end part
INFO 2025-08-21T16:22:38 +1ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:38 +0ms service=bus type=message.part.updated publishing
Hello! How can I help you today?
INFO 2025-08-21T16:22:38 +0ms service=session session=ses_7328f8d24ffeOb3knrSoG09EIt type=finish-step part
INFO 2025-08-21T16:22:38 +3ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:38 +0ms service=bus type=message.part.updated publishing
INFO 2025-08-21T16:22:38 +1ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:38 +0ms service=bus type=message.updated publishing
INFO 2025-08-21T16:22:38 +0ms service=session session=ses_7328f8d24ffeOb3knrSoG09EIt type=finish part
INFO 2025-08-21T16:22:38 +0ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:38 +0ms service=bus type=message.updated publishing
INFO 2025-08-21T16:22:38 +2ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:38 +0ms service=bus type=message.updated publishing
INFO 2025-08-21T16:22:38 +1ms service=session session=ses_7328f8d24ffeOb3knrSoG09EIt sessionID=ses_7328f8d24ffeOb3knrSoG09EIt unlocking
INFO 2025-08-21T16:22:38 +0ms service=bus type=session.idle publishing
INFO 2025-08-21T16:22:38 +0ms service=app name=lsp shutdown
INFO 2025-08-21T16:22:38 +0ms service=app name=session shutdown
INFO 2025-08-21T16:22:38 +0ms service=app name=mcp shutdown
Second run:
$ bunx opencode-ai@latest run "hello" --print-logs --model google/gemini-2.5-pro
INFO 2025-08-21T16:22:47 +135ms service=default version=0.5.13 args=["run","hello","--print-logs","--model","google/gemini-2.5-pro"] opencode
INFO 2025-08-21T16:22:47 +1ms service=app cwd=/tmp creating
INFO 2025-08-21T16:22:47 +2ms service=app git
INFO 2025-08-21T16:22:47 +1ms service=app name=plugin registering service
INFO 2025-08-21T16:22:47 +1ms service=app name=config registering service
INFO 2025-08-21T16:22:47 +7ms service=config path=/home/ivan/.config/opencode/config.json loading
INFO 2025-08-21T16:22:47 +1ms service=config path=/home/ivan/.config/opencode/opencode.json loading
INFO 2025-08-21T16:22:47 +0ms service=config path=/home/ivan/.config/opencode/opencode.jsonc loading
INFO 2025-08-21T16:22:47 +11ms service=config $schema=https://opencode.ai/config.json theme=opencode share=disabled provider={"groq":{"name":"Groq","npm":"@ai-sdk/groq","models":{},"options":{"apiKey":".","baseURL":"https://api.groq.com/openai/v1"}},"openrouter":{"name":"Openrouter","npm":"@ai-sdk/openai-compatible","models":{},"options":{"apiKey":"","baseURL":"https://openrouter.ai/api/v1"}},"ollama":{"name":"Ollama","npm":"@ai-sdk/openai-compatible","models":{"gpt-oss:20b":{"name":"gpt-oss:20b","options":{"num_ctx":128000}}},"options":{"baseURL":"http://ollama.homeworld.lan/v1"}}} mcp={"searxng":{"type":"local","command":["bunx","mcp-searxng"],"environment":{"SEARXNG_URL":"http://localhost:8080"},"enabled":true}} permission={"edit":"ask","bash":{"git status *":"allow","git diff *":"allow","ls":"allow","pwd":"allow","*":"ask"},"webfetch":"ask"} agent={} mode={} plugin=[] username=ivan loaded
INFO 2025-08-21T16:22:47 +0ms service=plugin path=opencode-copilot-auth@0.0.2 loading plugin
INFO 2025-08-21T16:22:47 +2ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin
INFO 2025-08-21T16:22:47 +21ms service=bus type=* subscribing
INFO 2025-08-21T16:22:47 +0ms service=app name=bus registering service
INFO 2025-08-21T16:22:47 +0ms service=bus type=storage.write subscribing
INFO 2025-08-21T16:22:47 +0ms service=format init
INFO 2025-08-21T16:22:47 +0ms service=bus type=file.edited subscribing
INFO 2025-08-21T16:22:47 +0ms service=config.hooks init
INFO 2025-08-21T16:22:47 +0ms service=bus type=file.edited subscribing
INFO 2025-08-21T16:22:47 +0ms service=bus type=session.idle subscribing
INFO 2025-08-21T16:22:47 +0ms service=app name=lsp registering service
INFO 2025-08-21T16:22:47 +2ms service=session id=ses_7328f5e59ffe9kjnsx04yq3gtc version=0.5.13 title=New session - 2025-08-21T16:22:47.462Z time={"created":1755793367462,"updated":1755793367462} created
INFO 2025-08-21T16:22:47 +0ms service=app name=session registering service
INFO 2025-08-21T16:22:47 +0ms service=app name=storage registering service
INFO 2025-08-21T16:22:47 +1ms service=lsp serverIds=typescript, vue, eslint, golang, ruby-lsp, pyright, elixir-ls, zls, csharp, rust, clangd enabled LSP servers
INFO 2025-08-21T16:22:47 +3ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:47 +0ms service=bus type=session.updated publishing
INFO 2025-08-21T16:22:47 +1ms service=app name=agent registering service
INFO 2025-08-21T16:22:47 +0ms service=bus type=message.part.updated subscribing
INFO 2025-08-21T16:22:47 +0ms service=bus type=session.error subscribing
INFO 2025-08-21T16:22:47 +3ms service=session session=ses_7328f5e59ffe9kjnsx04yq3gtc chatting
INFO 2025-08-21T16:22:47 +2ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:47 +0ms service=bus type=message.updated publishing
INFO 2025-08-21T16:22:47 +1ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:47 +0ms service=bus type=message.part.updated publishing
INFO 2025-08-21T16:22:47 +1ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:47 +0ms service=bus type=session.updated publishing
INFO 2025-08-21T16:22:47 +0ms service=app name=provider registering service
INFO 2025-08-21T16:22:47 +3ms service=models.dev file={} refreshing
INFO 2025-08-21T16:22:47 +2ms service=provider init
INFO 2025-08-21T16:22:47 +4ms service=provider providerID=google found
INFO 2025-08-21T16:22:47 +0ms service=provider providerID=opencode found
INFO 2025-08-21T16:22:47 +0ms service=provider providerID=groq found
INFO 2025-08-21T16:22:47 +0ms service=provider providerID=openrouter found
INFO 2025-08-21T16:22:47 +0ms service=provider providerID=ollama found
INFO 2025-08-21T16:22:47 +0ms service=provider providerID=google modelID=gemini-2.5-pro getModel
INFO 2025-08-21T16:22:47 +1ms service=provider status=started providerID=google getSDK
INFO 2025-08-21T16:22:47 +83ms service=provider status=completed duration=83 providerID=google getSDK
INFO 2025-08-21T16:22:47 +0ms service=provider providerID=google modelID=gemini-2.5-pro found
INFO 2025-08-21T16:22:47 +2ms service=session session=ses_7328f5e59ffe9kjnsx04yq3gtc sessionID=ses_7328f5e59ffe9kjnsx04yq3gtc locking
INFO 2025-08-21T16:22:47 +3ms service=provider providerID=google modelID=gemini-2.5-flash getModel
INFO 2025-08-21T16:22:47 +0ms service=provider status=started providerID=google getSDK
INFO 2025-08-21T16:22:47 +1ms service=provider status=completed duration=1 providerID=google getSDK
INFO 2025-08-21T16:22:47 +0ms service=provider providerID=google modelID=gemini-2.5-flash found
INFO 2025-08-21T16:22:47 +14ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:47 +0ms service=bus type=message.updated publishing
INFO 2025-08-21T16:22:47 +4ms service=app name=mcp registering service
INFO 2025-08-21T16:22:47 +0ms service=mcp key=searxng type=local found
INFO 2025-08-21T16:22:47 +160ms service=session session=ses_7328f5e59ffe9kjnsx04yq3gtc type=start part
INFO 2025-08-21T16:22:50 +3071ms service=session session=ses_7328f5e59ffe9kjnsx04yq3gtc type=start-step part
INFO 2025-08-21T16:22:50 +3ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:50 +0ms service=bus type=message.part.updated publishing
INFO 2025-08-21T16:22:50 +0ms service=session session=ses_7328f5e59ffe9kjnsx04yq3gtc type=finish-step part
INFO 2025-08-21T16:22:50 +2ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:50 +0ms service=bus type=message.part.updated publishing
INFO 2025-08-21T16:22:50 +1ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:50 +0ms service=bus type=message.updated publishing
INFO 2025-08-21T16:22:50 +0ms service=session session=ses_7328f5e59ffe9kjnsx04yq3gtc type=finish part
INFO 2025-08-21T16:22:50 +0ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:50 +1ms service=bus type=message.updated publishing
INFO 2025-08-21T16:22:50 +0ms service=bus type=storage.write publishing
INFO 2025-08-21T16:22:50 +1ms service=bus type=message.updated publishing
INFO 2025-08-21T16:22:50 +0ms service=session session=ses_7328f5e59ffe9kjnsx04yq3gtc sessionID=ses_7328f5e59ffe9kjnsx04yq3gtc unlocking
INFO 2025-08-21T16:22:50 +0ms service=bus type=session.idle publishing
INFO 2025-08-21T16:22:50 +0ms service=app name=lsp shutdown
INFO 2025-08-21T16:22:50 +1ms service=app name=session shutdown
INFO 2025-08-21T16:22:50 +0ms service=app name=mcp shutdown
I faced a similar behavior with my self-hosted model (Qwen3-coder) running with vLLM. The resulting prompt coming from OpenCode sets the tool_choice field to auto, which does not play nicely with the default configuration of vLLM. It resulted into some 400 errors, but somehow OpenCode's TUI was not showing up error details and was just hanging with this Generating message. It turns out I had to use the --enable-auto-tool-choice flag of vLLM to avoid the 400s and make it work.
Has the same problem with google/gemini-2.5-pro more than a week.
➜ tmp opencode run "hello" --print-logs --model google/gemini-2.5-pro
INFO 2025-08-22T12:02:37 +48ms service=default version=0.5.13 args=["run","hello","--print-logs","--model","google/gemini-2.5-pro"] opencode
INFO 2025-08-22T12:02:37 +0ms service=app cwd=/Users/alex/Developer/tmp creating
INFO 2025-08-22T12:02:37 +1ms service=app git
INFO 2025-08-22T12:02:37 +2ms service=app name=plugin registering service
INFO 2025-08-22T12:02:37 +1ms service=app name=config registering service
INFO 2025-08-22T12:02:37 +0ms service=config path=/Users/alex/.config/opencode/config.json loading
INFO 2025-08-22T12:02:37 +2ms service=config path=/Users/alex/.config/opencode/opencode.json loading
INFO 2025-08-22T12:02:37 +0ms service=config path=/Users/alex/.config/opencode/opencode.jsonc loading
INFO 2025-08-22T12:02:37 +1ms service=config $schema=https://opencode.ai/config.json instructions=["CURSOR.md","CONTRIBUTING.md","docs/guidelines.md",".cursor/rules/*.md"] agent={} mode={} plugin=[] username=alex loaded
INFO 2025-08-22T12:02:37 +0ms service=plugin path=opencode-copilot-auth@0.0.2 loading plugin
INFO 2025-08-22T12:02:37 +1ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin
INFO 2025-08-22T12:02:37 +11ms service=bus type=* subscribing
INFO 2025-08-22T12:02:37 +0ms service=app name=bus registering service
INFO 2025-08-22T12:02:37 +0ms service=bus type=storage.write subscribing
INFO 2025-08-22T12:02:37 +0ms service=format init
INFO 2025-08-22T12:02:37 +0ms service=bus type=file.edited subscribing
INFO 2025-08-22T12:02:37 +0ms service=config.hooks init
INFO 2025-08-22T12:02:37 +0ms service=bus type=file.edited subscribing
INFO 2025-08-22T12:02:37 +0ms service=bus type=session.idle subscribing
INFO 2025-08-22T12:02:37 +0ms service=app name=lsp registering service
INFO 2025-08-22T12:02:37 +0ms service=session id=ses_72e5732b0ffee2ZYFGTvHX2dJz version=0.5.13 title=New session - 2025-08-22T12:02:37.519Z time={"created":1755864157519,"updated":1755864157519} created
INFO 2025-08-22T12:02:37 +0ms service=app name=session registering service
INFO 2025-08-22T12:02:37 +0ms service=app name=storage registering service
INFO 2025-08-22T12:02:37 +0ms service=lsp serverIds=typescript, vue, eslint, golang, ruby-lsp, pyright, elixir-ls, zls, csharp, rust, clangd enabled LSP servers
INFO 2025-08-22T12:02:37 +2ms service=bus type=storage.write publishing
INFO 2025-08-22T12:02:37 +0ms service=bus type=session.updated publishing
INFO 2025-08-22T12:02:37 +0ms service=app name=agent registering service
INFO 2025-08-22T12:02:37 +0ms service=bus type=message.part.updated subscribing
INFO 2025-08-22T12:02:37 +0ms service=bus type=session.error subscribing
INFO 2025-08-22T12:02:37 +1ms service=session session=ses_72e5732b0ffee2ZYFGTvHX2dJz chatting
INFO 2025-08-22T12:02:37 +1ms service=bus type=storage.write publishing
INFO 2025-08-22T12:02:37 +0ms service=bus type=message.updated publishing
INFO 2025-08-22T12:02:37 +1ms service=bus type=storage.write publishing
INFO 2025-08-22T12:02:37 +0ms service=bus type=message.part.updated publishing
INFO 2025-08-22T12:02:37 +0ms service=bus type=storage.write publishing
INFO 2025-08-22T12:02:37 +0ms service=bus type=session.updated publishing
INFO 2025-08-22T12:02:37 +1ms service=app name=provider registering service
INFO 2025-08-22T12:02:37 +1ms service=models.dev file={} refreshing
INFO 2025-08-22T12:02:37 +0ms service=provider init
INFO 2025-08-22T12:02:37 +2ms service=provider providerID=google found
INFO 2025-08-22T12:02:37 +0ms service=provider providerID=openrouter found
INFO 2025-08-22T12:02:37 +0ms service=provider providerID=opencode found
INFO 2025-08-22T12:02:37 +0ms service=provider providerID=github-copilot found
INFO 2025-08-22T12:02:37 +0ms service=provider providerID=anthropic found
INFO 2025-08-22T12:02:37 +0ms service=provider providerID=google modelID=gemini-2.5-pro getModel
INFO 2025-08-22T12:02:37 +0ms service=provider status=started providerID=google getSDK
INFO 2025-08-22T12:02:37 +48ms service=provider status=completed duration=48 providerID=google getSDK
INFO 2025-08-22T12:02:37 +0ms service=provider providerID=google modelID=gemini-2.5-pro found
INFO 2025-08-22T12:02:37 +2ms service=session session=ses_72e5732b0ffee2ZYFGTvHX2dJz sessionID=ses_72e5732b0ffee2ZYFGTvHX2dJz locking
INFO 2025-08-22T12:02:37 +0ms service=provider providerID=google modelID=gemini-2.5-flash getModel
INFO 2025-08-22T12:02:37 +0ms service=provider status=started providerID=google getSDK
INFO 2025-08-22T12:02:37 +0ms service=provider status=completed duration=0 providerID=google getSDK
INFO 2025-08-22T12:02:37 +0ms service=provider providerID=google modelID=gemini-2.5-flash found
INFO 2025-08-22T12:02:37 +5ms service=bus type=storage.write publishing
INFO 2025-08-22T12:02:37 +0ms service=bus type=message.updated publishing
INFO 2025-08-22T12:02:37 +1ms service=app name=mcp registering service
INFO 2025-08-22T12:02:37 +3ms service=session session=ses_72e5732b0ffee2ZYFGTvHX2dJz type=start part
INFO 2025-08-22T12:02:39 +1506ms service=session session=ses_72e5732b0ffee2ZYFGTvHX2dJz type=start-step part
INFO 2025-08-22T12:02:39 +1ms service=bus type=storage.write publishing
INFO 2025-08-22T12:02:39 +0ms service=bus type=message.part.updated publishing
INFO 2025-08-22T12:02:39 +1ms service=session session=ses_72e5732b0ffee2ZYFGTvHX2dJz type=finish-step part
INFO 2025-08-22T12:02:39 +1ms service=bus type=storage.write publishing
INFO 2025-08-22T12:02:39 +0ms service=bus type=message.part.updated publishing
INFO 2025-08-22T12:02:39 +1ms service=bus type=storage.write publishing
INFO 2025-08-22T12:02:39 +0ms service=bus type=message.updated publishing
INFO 2025-08-22T12:02:39 +0ms service=session session=ses_72e5732b0ffee2ZYFGTvHX2dJz type=finish part
INFO 2025-08-22T12:02:39 +1ms service=bus type=storage.write publishing
INFO 2025-08-22T12:02:39 +0ms service=bus type=message.updated publishing
INFO 2025-08-22T12:02:39 +0ms service=bus type=storage.write publishing
INFO 2025-08-22T12:02:39 +0ms service=bus type=message.updated publishing
INFO 2025-08-22T12:02:39 +1ms service=session session=ses_72e5732b0ffee2ZYFGTvHX2dJz sessionID=ses_72e5732b0ffee2ZYFGTvHX2dJz unlocking
INFO 2025-08-22T12:02:39 +0ms service=bus type=session.idle publishing
INFO 2025-08-22T12:02:39 +0ms service=app name=lsp shutdown
INFO 2025-08-22T12:02:39 +0ms service=app name=session shutdown
INFO 2025-08-22T12:02:39 +0ms service=app name=mcp shutdown
INFO 2025-08-22T12:02:42 +3093ms service=bus type=storage.write publishing
INFO 2025-08-22T12:02:42 +0ms service=bus type=session.updated publishing
But it works for not google providers
➜ tmp opencode run "hello" --print-logs --model github-copilot/gemini-2.5-pro
INFO 2025-08-22T12:22:31 +41ms service=default version=0.5.13 args=["run","hello","--print-logs","--model","github-copilot/gemini-2.5-pro"] opencode
INFO 2025-08-22T12:22:31 +0ms service=app cwd=/Users/alex/Developer/tmp creating
INFO 2025-08-22T12:22:31 +2ms service=app git
INFO 2025-08-22T12:22:31 +1ms service=app name=plugin registering service
INFO 2025-08-22T12:22:31 +1ms service=app name=config registering service
INFO 2025-08-22T12:22:31 +0ms service=config path=/Users/alex/.config/opencode/config.json loading
INFO 2025-08-22T12:22:31 +1ms service=config path=/Users/alex/.config/opencode/opencode.json loading
INFO 2025-08-22T12:22:31 +0ms service=config path=/Users/alex/.config/opencode/opencode.jsonc loading
INFO 2025-08-22T12:22:31 +1ms service=config $schema=https://opencode.ai/config.json instructions=["CURSOR.md","CONTRIBUTING.md","docs/guidelines.md",".cursor/rules/*.md"] agent={} mode={} plugin=[] username=alex loaded
INFO 2025-08-22T12:22:31 +0ms service=plugin path=opencode-copilot-auth@0.0.2 loading plugin
INFO 2025-08-22T12:22:31 +1ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin
INFO 2025-08-22T12:22:31 +8ms service=bus type=* subscribing
INFO 2025-08-22T12:22:31 +0ms service=app name=bus registering service
INFO 2025-08-22T12:22:31 +0ms service=bus type=storage.write subscribing
INFO 2025-08-22T12:22:31 +0ms service=format init
INFO 2025-08-22T12:22:31 +0ms service=bus type=file.edited subscribing
INFO 2025-08-22T12:22:31 +0ms service=config.hooks init
INFO 2025-08-22T12:22:31 +0ms service=bus type=file.edited subscribing
INFO 2025-08-22T12:22:31 +0ms service=bus type=session.idle subscribing
INFO 2025-08-22T12:22:31 +0ms service=app name=lsp registering service
INFO 2025-08-22T12:22:31 +1ms service=session id=ses_72e44fb2cffeSv48YbAwvQ2FQ7 version=0.5.13 title=New session - 2025-08-22T12:22:31.379Z time={"created":1755865351379,"updated":1755865351379} created
INFO 2025-08-22T12:22:31 +0ms service=app name=session registering service
INFO 2025-08-22T12:22:31 +0ms service=app name=storage registering service
INFO 2025-08-22T12:22:31 +0ms service=lsp serverIds=typescript, vue, eslint, golang, ruby-lsp, pyright, elixir-ls, zls, csharp, rust, clangd enabled LSP servers
INFO 2025-08-22T12:22:31 +0ms service=bus type=storage.write publishing
INFO 2025-08-22T12:22:31 +0ms service=bus type=session.updated publishing
INFO 2025-08-22T12:22:31 +0ms service=app name=agent registering service
INFO 2025-08-22T12:22:31 +1ms service=bus type=message.part.updated subscribing
INFO 2025-08-22T12:22:31 +0ms service=bus type=session.error subscribing
INFO 2025-08-22T12:22:31 +1ms service=session session=ses_72e44fb2cffeSv48YbAwvQ2FQ7 chatting
INFO 2025-08-22T12:22:31 +0ms service=bus type=storage.write publishing
INFO 2025-08-22T12:22:31 +0ms service=bus type=message.updated publishing
INFO 2025-08-22T12:22:31 +1ms service=bus type=storage.write publishing
INFO 2025-08-22T12:22:31 +0ms service=bus type=message.part.updated publishing
INFO 2025-08-22T12:22:31 +0ms service=bus type=storage.write publishing
INFO 2025-08-22T12:22:31 +0ms service=bus type=session.updated publishing
INFO 2025-08-22T12:22:31 +0ms service=app name=provider registering service
INFO 2025-08-22T12:22:31 +1ms service=models.dev file={} refreshing
INFO 2025-08-22T12:22:31 +2ms service=provider init
INFO 2025-08-22T12:22:31 +0ms service=provider providerID=google found
INFO 2025-08-22T12:22:31 +0ms service=provider providerID=openrouter found
INFO 2025-08-22T12:22:31 +0ms service=provider providerID=opencode found
INFO 2025-08-22T12:22:31 +0ms service=provider providerID=github-copilot found
INFO 2025-08-22T12:22:31 +0ms service=provider providerID=anthropic found
INFO 2025-08-22T12:22:31 +0ms service=provider providerID=github-copilot modelID=gemini-2.5-pro getModel
INFO 2025-08-22T12:22:31 +0ms service=provider status=started providerID=github-copilot getSDK
INFO 2025-08-22T12:22:31 +26ms service=provider status=completed duration=26 providerID=github-copilot getSDK
INFO 2025-08-22T12:22:31 +0ms service=provider providerID=github-copilot modelID=gemini-2.5-pro found
INFO 2025-08-22T12:22:31 +2ms service=session session=ses_72e44fb2cffeSv48YbAwvQ2FQ7 sessionID=ses_72e44fb2cffeSv48YbAwvQ2FQ7 locking
INFO 2025-08-22T12:22:31 +4ms service=bus type=storage.write publishing
INFO 2025-08-22T12:22:31 +0ms service=bus type=message.updated publishing
INFO 2025-08-22T12:22:31 +1ms service=app name=mcp registering service
INFO 2025-08-22T12:22:31 +3ms service=session session=ses_72e44fb2cffeSv48YbAwvQ2FQ7 type=start part
INFO 2025-08-22T12:22:33 +2133ms service=session session=ses_72e44fb2cffeSv48YbAwvQ2FQ7 type=start-step part
INFO 2025-08-22T12:22:33 +3ms service=bus type=storage.write publishing
INFO 2025-08-22T12:22:33 +0ms service=bus type=message.part.updated publishing
INFO 2025-08-22T12:22:33 +0ms service=session session=ses_72e44fb2cffeSv48YbAwvQ2FQ7 type=text-start part
INFO 2025-08-22T12:22:33 +0ms service=session session=ses_72e44fb2cffeSv48YbAwvQ2FQ7 type=text-delta part
INFO 2025-08-22T12:22:33 +2ms service=bus type=storage.write publishing
INFO 2025-08-22T12:22:33 +0ms service=bus type=message.part.updated publishing
INFO 2025-08-22T12:22:33 +0ms service=session session=ses_72e44fb2cffeSv48YbAwvQ2FQ7 type=text-end part
INFO 2025-08-22T12:22:33 +1ms service=bus type=storage.write publishing
INFO 2025-08-22T12:22:33 +0ms service=bus type=message.part.updated publishing
Hello! What can I help you with today?
INFO 2025-08-22T12:22:33 +0ms service=session session=ses_72e44fb2cffeSv48YbAwvQ2FQ7 type=finish-step part
INFO 2025-08-22T12:22:33 +2ms service=bus type=storage.write publishing
INFO 2025-08-22T12:22:33 +0ms service=bus type=message.part.updated publishing
INFO 2025-08-22T12:22:33 +1ms service=bus type=storage.write publishing
INFO 2025-08-22T12:22:33 +0ms service=bus type=message.updated publishing
INFO 2025-08-22T12:22:33 +0ms service=session session=ses_72e44fb2cffeSv48YbAwvQ2FQ7 type=finish part
INFO 2025-08-22T12:22:33 +1ms service=bus type=storage.write publishing
INFO 2025-08-22T12:22:33 +0ms service=bus type=message.updated publishing
INFO 2025-08-22T12:22:33 +1ms service=bus type=storage.write publishing
INFO 2025-08-22T12:22:33 +0ms service=bus type=message.updated publishing
INFO 2025-08-22T12:22:33 +0ms service=session session=ses_72e44fb2cffeSv48YbAwvQ2FQ7 sessionID=ses_72e44fb2cffeSv48YbAwvQ2FQ7 unlocking
INFO 2025-08-22T12:22:33 +0ms service=bus type=session.idle publishing
INFO 2025-08-22T12:22:33 +0ms service=app name=lsp shutdown
INFO 2025-08-22T12:22:33 +0ms service=app name=session shutdown
INFO 2025-08-22T12:22:33 +0ms service=app name=mcp shutdown
Also have the same issue, and the worst is that killing OpenCode and restarting with opencode --continue get me to the same hanged state. Starting normally and switching to previous session via /sessions has the same effect.
The only way to fix this AFAIK is to start a completely new session, which is annoying because I need to resemble a full conversation history manually. Unless I would face the same issue at some point, which is very likely.
I'm running Arch Linux and last time I faces it I was using Claude Opus 4.1 in PLAN mode.
@rekram1-node It happened while I was in a back-and-forth chat with gemini-2.5-pro and during this chat I'd occasionally ask it to update a specification document (a .md file). However, the particular chat messages in response to which it got stuck on Generating.. were not requests to edit the .md file.
(venv) sagar@Sagars-MacBook-Pro finzytrack % opencode run "hello" --print-logs --model google/gemini-2.5-pro
INFO 2025-09-19T22:48:11 +42ms service=default version=0.10.3 args=["run","hello","--print-logs","--model","google/gemini-2.5-pro"] opencode
INFO 2025-09-19T22:48:11 +0ms service=project directory=/Users/sagar/experiments/finzytrack fromDirectory
INFO 2025-09-19T22:48:11 +21ms service=config path=/Users/sagar/.config/opencode/config.json loading
INFO 2025-09-19T22:48:11 +0ms service=config path=/Users/sagar/.config/opencode/opencode.json loading
INFO 2025-09-19T22:48:11 +2ms service=config path=/Users/sagar/.config/opencode/opencode.jsonc loading
INFO 2025-09-19T22:48:11 +1ms service=plugin path=opencode-copilot-auth@0.0.2 loading plugin
INFO 2025-09-19T22:48:11 +2ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin
INFO 2025-09-19T22:48:11 +14ms service=bus type=* subscribing
INFO 2025-09-19T22:48:11 +0ms service=bus type=session.updated subscribing
INFO 2025-09-19T22:48:11 +0ms service=bus type=message.updated subscribing
INFO 2025-09-19T22:48:11 +1ms service=bus type=message.part.updated subscribing
INFO 2025-09-19T22:48:11 +0ms service=format init
INFO 2025-09-19T22:48:11 +0ms service=bus type=file.edited subscribing
INFO 2025-09-19T22:48:11 +0ms service=session id=ses_69bd61a7bffe0H7tHOr5DSVzDj version=0.10.3 projectID=d9f7a8aac8f8f243d97f4381bf10a6db8a794a60 directory=/Users/sagar/experiments/finzytrack title=New session - 2025-09-19T22:48:11.396Z time={"created":1758322091396,"updated":1758322091396} created
INFO 2025-09-19T22:48:11 +0ms service=lsp serverIds=typescript, vue, eslint, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, rust, clangd, svelte enabled LSP servers
INFO 2025-09-19T22:48:11 +0ms service=bus type=session.updated publishing
INFO 2025-09-19T22:48:11 +1ms service=bus type=message.part.updated subscribing
INFO 2025-09-19T22:48:11 +0ms service=bus type=session.error subscribing
INFO 2025-09-19T22:48:11 +0ms service=session.prompt session=ses_69bd61a7bffe0H7tHOr5DSVzDj prompt
INFO 2025-09-19T22:48:11 +1ms service=bus type=message.updated publishing
INFO 2025-09-19T22:48:11 +1ms service=bus type=message.part.updated publishing
INFO 2025-09-19T22:48:11 +0ms service=bus type=session.updated publishing
INFO 2025-09-19T22:48:11 +1ms service=models.dev file={} refreshing
INFO 2025-09-19T22:48:11 +2ms service=provider init
INFO 2025-09-19T22:48:11 +0ms service=provider providerID=google found
INFO 2025-09-19T22:48:11 +0ms service=provider providerID=openrouter found
INFO 2025-09-19T22:48:11 +0ms service=provider providerID=opencode found
INFO 2025-09-19T22:48:11 +0ms service=provider providerID=google modelID=gemini-2.5-pro getModel
INFO 2025-09-19T22:48:11 +0ms service=provider status=started providerID=google getSDK
INFO 2025-09-19T22:48:11 +36ms service=provider status=completed duration=36 providerID=google getSDK
INFO 2025-09-19T22:48:11 +0ms service=provider providerID=google modelID=gemini-2.5-pro found
INFO 2025-09-19T22:48:11 +0ms service=session.prompt session=ses_69bd61a7bffe0H7tHOr5DSVzDj sessionID=ses_69bd61a7bffe0H7tHOr5DSVzDj locking
INFO 2025-09-19T22:48:11 +12ms service=provider providerID=google modelID=gemini-2.5-flash-preview-05-20 getModel
INFO 2025-09-19T22:48:11 +0ms service=provider status=started providerID=google getSDK
INFO 2025-09-19T22:48:11 +0ms service=provider status=completed duration=0 providerID=google getSDK
INFO 2025-09-19T22:48:11 +0ms service=bus type=message.updated publishing
INFO 2025-09-19T22:48:11 +0ms service=provider providerID=google modelID=gemini-2.5-flash-preview-05-20 found
INFO 2025-09-19T22:48:11 +3ms service=session.prompt session=ses_69bd61a7bffe0H7tHOr5DSVzDj process
INFO 2025-09-19T22:48:11 +1ms service=session.prompt session=ses_69bd61a7bffe0H7tHOr5DSVzDj type=start part
INFO 2025-09-19T22:48:12 +607ms service=bus type=session.updated publishing
Activity
github-actions commentedon Aug 21, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
zatevakhin commentedon Aug 21, 2025
Also started to have similar issues recently with gemini, especailly with
gemini-2.5-pro.OS: NixOS
opencode version: v0.5.12
Also did cleanups, but no luck, gemini just get stuck by doing enything.
arsham commentedon Aug 21, 2025
For me this happens with Anthropic models, and only in a situation that I have two opencode running at the same time. The second one I run keeps doing its work and causes the first one to get stuck. The esc key doesn't help either, I have to ctrl+c twice and get back to the same session and continue.
rekram1-node commentedon Aug 21, 2025
Hmm interesting I will try to reproduce
zatevakhin commentedon Aug 21, 2025
FYI: I was running only one instance of
opencodefor repro and result is thatgemini-2.5-proget stuck ongenerating....balpert89 commentedon Aug 21, 2025
same as @zatevakhin I am only running 1 instance of opencode.
rekram1-node commentedon Aug 21, 2025
For those having problems can you run:
and show me output? Just run w/ whatever model is giving you trouble
balpert89 commentedon Aug 21, 2025
sure:
afterwards, when looking at the session I can see the described issue:
rekram1-node commentedon Aug 21, 2025
awesome ty
zatevakhin commentedon Aug 21, 2025
First run:
Second run:
zetomatoz commentedon Aug 22, 2025
I faced a similar behavior with my self-hosted model (Qwen3-coder) running with vLLM. The resulting prompt coming from OpenCode sets the
tool_choicefield toauto, which does not play nicely with the default configuration of vLLM. It resulted into some 400 errors, but somehow OpenCode's TUI was not showing up error details and was just hanging with this Generating message. It turns out I had to use the --enable-auto-tool-choice flag of vLLM to avoid the 400s and make it work.alex-hjkl commentedon Aug 22, 2025
Has the same problem with google/gemini-2.5-pro more than a week.
But it works for not google providers
rekram1-node commentedon Aug 22, 2025
what happens if you try deleting ~/.cache/opencode
^^ it is a dir
alex-hjkl commentedon Aug 22, 2025
Doesn't help. It goes back from "working..." to "enter" state pretty quick and stops "Generating"
Screen.Recording.2025-08-22.at.15.52.00.mov
8 remaining items
43034r commentedon Aug 31, 2025
Yes, have hanging only in UI mode. I using 2 MCP servers - both locally - context7, gitlab mcp.
rekram1-node commentedon Aug 31, 2025
ahh can you try disabling the gitlab mcp and trying again, wonder if that is the issue
43034r commentedon Aug 31, 2025
Tried without any MCP - works.
restarted two local containers context7, gitlab mcp, - hello works, but another promt return "Generating..."
gitlab mcp - look likes this one is the root cause in my case. TY for help.
alex-hjkl commentedon Sep 1, 2025
Super, v0.5.29 works for me. No mcp. Thanks a lot!
sQVe commentedon Sep 1, 2025
I'm seeing this issue fairly often, and I'm using these MCPs:
rekram1-node commentedon Sep 1, 2025
thx for sharing @sQVe it definitely isnt context7 but it might be one of the others
imajus commentedon Sep 9, 2025
Also have the same issue, and the worst is that killing OpenCode and restarting with
opencode --continueget me to the same hanged state. Starting normally and switching to previous session via/sessionshas the same effect.The only way to fix this AFAIK is to start a completely new session, which is annoying because I need to resemble a full conversation history manually. Unless I would face the same issue at some point, which is very likely.
I'm running Arch Linux and last time I faces it I was using Claude Opus 4.1 in PLAN mode.
rekram1-node commentedon Sep 9, 2025
Can you show me what you see if you do:
opencode run "hello" -c --print-logs
in the session that hangs
rekram1-node commentedon Sep 9, 2025
does it only happen on file edits maybe?
sagarbehere commentedon Sep 19, 2025
I just encountered this after downloading and using opencode with gemini-2.5-pro. It happened within a few minutes. I am not using any MCPs.
rekram1-node commentedon Sep 19, 2025
@sagarbehere did it happen when it tried editing a file? if so what file type
could you share error log
sagarbehere commentedon Sep 19, 2025
@rekram1-node It happened while I was in a back-and-forth chat with gemini-2.5-pro and during this chat I'd occasionally ask it to update a specification document (a .md file). However, the particular chat messages in response to which it got stuck on Generating.. were not requests to edit the .md file.
rekram1-node commentedon Sep 20, 2025
hmm if you run into it again can you share the latest log file when it happens?
rekram1-node commentedon Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!