Message generation interrupted, stuck at Generating #1417

Closed
opened 2026-02-16 17:30:52 -05:00 by yindo · 36 comments
Owner

Originally created by @balpert89 on GitHub (Aug 21, 2025).

Originally assigned to: @thdxr on GitHub.

I am experiencing stuck / interrupted behavior when using opencode. I have tried different models (gemini, ollama) but the behavior is the same.

I am constructing a request and the response is either stuck at Generating or it gets interrupted in the middle of streaming the response.

See the following screenshot of a test conversation:

Image

I have deleted the following directories, but to no avail:

  • ~/.cache/opencode
  • ~/.bun/install/cache

OS: arch linux
opencode version: v0.5.12

Originally created by @balpert89 on GitHub (Aug 21, 2025). Originally assigned to: @thdxr on GitHub. I am experiencing stuck / interrupted behavior when using opencode. I have tried different models (gemini, ollama) but the behavior is the same. I am constructing a request and the response is either stuck at `Generating` or it gets interrupted in the middle of streaming the response. See the following screenshot of a test conversation: <img width="3828" height="2095" alt="Image" src="https://github.com/user-attachments/assets/6a3a11bd-228e-46bc-a245-0e5f7fabb3bc" /> I have deleted the following directories, but to no avail: - ~/.cache/opencode - ~/.bun/install/cache OS: arch linux opencode version: v0.5.12
yindo closed this issue 2026-02-16 17:30:52 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Aug 21, 2025):

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

  • #1418: Similar symptoms of getting stuck with 'working' status and escape not working to exit
  • #232: Session stalling/getting stuck on 'working...' with similar behavior across different models
  • #1058: OpenCode stopped responding with recent updates, session simply stalls
  • #836: Getting stuck during startup with system information display
  • #1034: Local Ollama tool calling issues that might relate to generation getting stuck with Ollama models

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

@github-actions[bot] commented on GitHub (Aug 21, 2025): This issue might be a duplicate of existing issues. Please check: - #1418: Similar symptoms of getting stuck with 'working' status and escape not working to exit - #232: Session stalling/getting stuck on 'working...' with similar behavior across different models - #1058: OpenCode stopped responding with recent updates, session simply stalls - #836: Getting stuck during startup with system information display - #1034: Local Ollama tool calling issues that might relate to generation getting stuck with Ollama models Feel free to ignore if none of these address your specific case.
Author
Owner

@zatevakhin commented on GitHub (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.

Image
@zatevakhin commented on GitHub (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. <img width="1466" height="803" alt="Image" src="https://github.com/user-attachments/assets/0f69dfa6-115e-4286-bd45-97cff1bfbb84" />
Author
Owner

@arsham commented on GitHub (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.

@arsham commented on GitHub (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.
Author
Owner

@rekram1-node commented on GitHub (Aug 21, 2025):

Hmm interesting I will try to reproduce

@rekram1-node commented on GitHub (Aug 21, 2025): Hmm interesting I will try to reproduce
Author
Owner

@zatevakhin commented on GitHub (Aug 21, 2025):

FYI: I was running only one instance of opencode for repro and result is that gemini-2.5-pro get stuck on generating....

@zatevakhin commented on GitHub (Aug 21, 2025): FYI: I was running only one instance of `opencode` for repro and result is that `gemini-2.5-pro` get stuck on `generating...`.
Author
Owner

@balpert89 commented on GitHub (Aug 21, 2025):

same as @zatevakhin I am only running 1 instance of opencode.

@balpert89 commented on GitHub (Aug 21, 2025): same as @zatevakhin I am only running 1 instance of opencode.
Author
Owner

@rekram1-node commented on GitHub (Aug 21, 2025):

For those having problems can you run:

opencode run "hello" --print-logs --model google/gemini-2.5-pro

and show me output? Just run w/ whatever model is giving you trouble

@rekram1-node commented on GitHub (Aug 21, 2025): For those having problems can you run: ``` opencode run "hello" --print-logs --model google/gemini-2.5-pro ``` and show me output? Just run w/ whatever model is giving you trouble
Author
Owner

@balpert89 commented on GitHub (Aug 21, 2025):

sure:

opencode run "hello" --print-logs --model google/gemini-2.5-pro

INFO  2025-08-21T15:13:16 +48ms service=default version=0.5.12 args=["run","hello","--print-logs","--model","google/gemini-2.5-pro"] opencode
INFO  2025-08-21T15:13:16 +1ms service=app cwd=/home/balpert creating
INFO  2025-08-21T15:13:16 +1ms service=app git
INFO  2025-08-21T15:13:16 +0ms service=bus type=storage.write subscribing
INFO  2025-08-21T15:13:16 +0ms service=app name=bus registering service
INFO  2025-08-21T15:13:16 +0ms service=format init
INFO  2025-08-21T15:13:16 +0ms service=bus type=file.edited subscribing
INFO  2025-08-21T15:13:16 +0ms service=bus type=* subscribing
INFO  2025-08-21T15:13:16 +0ms service=config.hooks init
INFO  2025-08-21T15:13:16 +0ms service=bus type=file.edited subscribing
INFO  2025-08-21T15:13:16 +0ms service=bus type=session.idle subscribing
INFO  2025-08-21T15:13:16 +0ms service=app name=lsp registering service
INFO  2025-08-21T15:13:16 +0ms service=app name=config registering service
INFO  2025-08-21T15:13:16 +4ms service=session id=ses_732cf048dffe8bGX01M73Tw2sr version=0.5.12 title=New session - 2025-08-21T15:13:16.146Z time={"created":1755789196146,"updated":1755789196146} created
INFO  2025-08-21T15:13:16 +0ms service=app name=session registering service
INFO  2025-08-21T15:13:16 +0ms service=app name=storage registering service
INFO  2025-08-21T15:13:16 +0ms service=config path=/home/balpert/.config/opencode/config.json loading
INFO  2025-08-21T15:13:16 +1ms service=config path=/home/balpert/.config/opencode/opencode.json loading
INFO  2025-08-21T15:13:16 +2ms service=config path=/home/balpert/.config/opencode/opencode.jsonc loading
INFO  2025-08-21T15:13:16 +0ms service=bus type=storage.write publishing
INFO  2025-08-21T15:13:16 +0ms service=app name=plugin registering service
INFO  2025-08-21T15:13:16 +1ms service=config $schema=https://opencode.ai/config.json theme=tokyonight provider={"ollama":{"npm":"@ai-sdk/openai-compatible","models":{"hf.co/bartowski/Qwen_Qwen3-32B-GGUF:Q4_K_M":{"reasoning":true,"options":{"num_ctx":65536}}},"options":{"baseURL":"http://localhost:11434/v1"}},"google":{"models":{"gemini-2.5-flash":{},"gemini-2.5-pro":{}}}} agent={} mode={} plugin=[] username=balpert loaded
INFO  2025-08-21T15:13:16 +0ms service=lsp serverIds=typescript, vue, eslint, golang, ruby-lsp, pyright, elixir-ls, zls, csharp, rust, clangd enabled LSP servers
INFO  2025-08-21T15:13:16 +0ms service=plugin path=opencode-copilot-auth@0.0.2 loading plugin
INFO  2025-08-21T15:13:16 +0ms service=bus type=session.updated publishing
INFO  2025-08-21T15:13:16 +0ms service=app name=agent registering service
INFO  2025-08-21T15:13:16 +1ms service=bus type=message.part.updated subscribing
INFO  2025-08-21T15:13:16 +0ms service=bus type=session.error subscribing
INFO  2025-08-21T15:13:16 +1ms service=session session=ses_732cf048dffe8bGX01M73Tw2sr chatting
INFO  2025-08-21T15:13:16 +1ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin
INFO  2025-08-21T15:13:16 +8ms service=bus type=storage.write publishing
INFO  2025-08-21T15:13:16 +0ms service=bus type=message.updated publishing
INFO  2025-08-21T15:13:16 +0ms service=bus type=storage.write publishing
INFO  2025-08-21T15:13:16 +0ms service=bus type=message.part.updated publishing
INFO  2025-08-21T15:13:16 +1ms service=bus type=storage.write publishing
INFO  2025-08-21T15:13:16 +0ms service=bus type=session.updated publishing
INFO  2025-08-21T15:13:16 +0ms service=app name=provider registering service
INFO  2025-08-21T15:13:16 +1ms service=models.dev file={} refreshing
INFO  2025-08-21T15:13:16 +1ms service=provider init
INFO  2025-08-21T15:13:16 +0ms service=provider providerID=google found
INFO  2025-08-21T15:13:16 +0ms service=provider providerID=opencode found
INFO  2025-08-21T15:13:16 +0ms service=provider providerID=ollama found
INFO  2025-08-21T15:13:16 +0ms service=provider providerID=google modelID=gemini-2.5-pro getModel
INFO  2025-08-21T15:13:16 +0ms service=provider status=started providerID=google getSDK
INFO  2025-08-21T15:13:16 +29ms service=provider status=completed duration=29 providerID=google getSDK
INFO  2025-08-21T15:13:16 +0ms service=provider providerID=google modelID=gemini-2.5-pro found
INFO  2025-08-21T15:13:16 +2ms service=session session=ses_732cf048dffe8bGX01M73Tw2sr sessionID=ses_732cf048dffe8bGX01M73Tw2sr locking
INFO  2025-08-21T15:13:16 +0ms service=provider providerID=google modelID=gemini-2.5-flash getModel
INFO  2025-08-21T15:13:16 +0ms service=provider status=started providerID=google getSDK
INFO  2025-08-21T15:13:16 +0ms service=provider status=completed duration=0 providerID=google getSDK
INFO  2025-08-21T15:13:16 +0ms service=provider providerID=google modelID=gemini-2.5-flash found
INFO  2025-08-21T15:13:16 +5ms service=bus type=storage.write publishing
INFO  2025-08-21T15:13:16 +0ms service=bus type=message.updated publishing
INFO  2025-08-21T15:13:16 +1ms service=app name=mcp registering service
INFO  2025-08-21T15:13:16 +4ms service=session session=ses_732cf048dffe8bGX01M73Tw2sr type=start part
INFO  2025-08-21T15:13:19 +2839ms service=session session=ses_732cf048dffe8bGX01M73Tw2sr type=start-step part
INFO  2025-08-21T15:13:19 +1ms service=bus type=storage.write publishing
INFO  2025-08-21T15:13:19 +0ms service=bus type=message.part.updated publishing
INFO  2025-08-21T15:13:19 +0ms service=session session=ses_732cf048dffe8bGX01M73Tw2sr type=finish-step part
INFO  2025-08-21T15:13:19 +1ms service=bus type=storage.write publishing
INFO  2025-08-21T15:13:19 +0ms service=bus type=message.part.updated publishing
INFO  2025-08-21T15:13:19 +0ms service=bus type=storage.write publishing
INFO  2025-08-21T15:13:19 +0ms service=bus type=message.updated publishing
INFO  2025-08-21T15:13:19 +0ms service=session session=ses_732cf048dffe8bGX01M73Tw2sr type=finish part
INFO  2025-08-21T15:13:19 +5ms service=bus type=storage.write publishing
INFO  2025-08-21T15:13:19 +0ms service=bus type=message.updated publishing
INFO  2025-08-21T15:13:19 +0ms service=bus type=storage.write publishing
INFO  2025-08-21T15:13:19 +1ms service=bus type=message.updated publishing
INFO  2025-08-21T15:13:19 +0ms service=session session=ses_732cf048dffe8bGX01M73Tw2sr sessionID=ses_732cf048dffe8bGX01M73Tw2sr unlocking
INFO  2025-08-21T15:13:19 +0ms service=bus type=session.idle publishing

INFO  2025-08-21T15:13:19 +0ms service=app name=lsp shutdown
INFO  2025-08-21T15:13:19 +0ms service=app name=session shutdown
INFO  2025-08-21T15:13:19 +0ms service=app name=mcp shutdown

afterwards, when looking at the session I can see the described issue:

Image
@balpert89 commented on GitHub (Aug 21, 2025): sure: ``` opencode run "hello" --print-logs --model google/gemini-2.5-pro INFO 2025-08-21T15:13:16 +48ms service=default version=0.5.12 args=["run","hello","--print-logs","--model","google/gemini-2.5-pro"] opencode INFO 2025-08-21T15:13:16 +1ms service=app cwd=/home/balpert creating INFO 2025-08-21T15:13:16 +1ms service=app git INFO 2025-08-21T15:13:16 +0ms service=bus type=storage.write subscribing INFO 2025-08-21T15:13:16 +0ms service=app name=bus registering service INFO 2025-08-21T15:13:16 +0ms service=format init INFO 2025-08-21T15:13:16 +0ms service=bus type=file.edited subscribing INFO 2025-08-21T15:13:16 +0ms service=bus type=* subscribing INFO 2025-08-21T15:13:16 +0ms service=config.hooks init INFO 2025-08-21T15:13:16 +0ms service=bus type=file.edited subscribing INFO 2025-08-21T15:13:16 +0ms service=bus type=session.idle subscribing INFO 2025-08-21T15:13:16 +0ms service=app name=lsp registering service INFO 2025-08-21T15:13:16 +0ms service=app name=config registering service INFO 2025-08-21T15:13:16 +4ms service=session id=ses_732cf048dffe8bGX01M73Tw2sr version=0.5.12 title=New session - 2025-08-21T15:13:16.146Z time={"created":1755789196146,"updated":1755789196146} created INFO 2025-08-21T15:13:16 +0ms service=app name=session registering service INFO 2025-08-21T15:13:16 +0ms service=app name=storage registering service INFO 2025-08-21T15:13:16 +0ms service=config path=/home/balpert/.config/opencode/config.json loading INFO 2025-08-21T15:13:16 +1ms service=config path=/home/balpert/.config/opencode/opencode.json loading INFO 2025-08-21T15:13:16 +2ms service=config path=/home/balpert/.config/opencode/opencode.jsonc loading INFO 2025-08-21T15:13:16 +0ms service=bus type=storage.write publishing INFO 2025-08-21T15:13:16 +0ms service=app name=plugin registering service INFO 2025-08-21T15:13:16 +1ms service=config $schema=https://opencode.ai/config.json theme=tokyonight provider={"ollama":{"npm":"@ai-sdk/openai-compatible","models":{"hf.co/bartowski/Qwen_Qwen3-32B-GGUF:Q4_K_M":{"reasoning":true,"options":{"num_ctx":65536}}},"options":{"baseURL":"http://localhost:11434/v1"}},"google":{"models":{"gemini-2.5-flash":{},"gemini-2.5-pro":{}}}} agent={} mode={} plugin=[] username=balpert loaded INFO 2025-08-21T15:13:16 +0ms service=lsp serverIds=typescript, vue, eslint, golang, ruby-lsp, pyright, elixir-ls, zls, csharp, rust, clangd enabled LSP servers INFO 2025-08-21T15:13:16 +0ms service=plugin path=opencode-copilot-auth@0.0.2 loading plugin INFO 2025-08-21T15:13:16 +0ms service=bus type=session.updated publishing INFO 2025-08-21T15:13:16 +0ms service=app name=agent registering service INFO 2025-08-21T15:13:16 +1ms service=bus type=message.part.updated subscribing INFO 2025-08-21T15:13:16 +0ms service=bus type=session.error subscribing INFO 2025-08-21T15:13:16 +1ms service=session session=ses_732cf048dffe8bGX01M73Tw2sr chatting INFO 2025-08-21T15:13:16 +1ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin INFO 2025-08-21T15:13:16 +8ms service=bus type=storage.write publishing INFO 2025-08-21T15:13:16 +0ms service=bus type=message.updated publishing INFO 2025-08-21T15:13:16 +0ms service=bus type=storage.write publishing INFO 2025-08-21T15:13:16 +0ms service=bus type=message.part.updated publishing INFO 2025-08-21T15:13:16 +1ms service=bus type=storage.write publishing INFO 2025-08-21T15:13:16 +0ms service=bus type=session.updated publishing INFO 2025-08-21T15:13:16 +0ms service=app name=provider registering service INFO 2025-08-21T15:13:16 +1ms service=models.dev file={} refreshing INFO 2025-08-21T15:13:16 +1ms service=provider init INFO 2025-08-21T15:13:16 +0ms service=provider providerID=google found INFO 2025-08-21T15:13:16 +0ms service=provider providerID=opencode found INFO 2025-08-21T15:13:16 +0ms service=provider providerID=ollama found INFO 2025-08-21T15:13:16 +0ms service=provider providerID=google modelID=gemini-2.5-pro getModel INFO 2025-08-21T15:13:16 +0ms service=provider status=started providerID=google getSDK INFO 2025-08-21T15:13:16 +29ms service=provider status=completed duration=29 providerID=google getSDK INFO 2025-08-21T15:13:16 +0ms service=provider providerID=google modelID=gemini-2.5-pro found INFO 2025-08-21T15:13:16 +2ms service=session session=ses_732cf048dffe8bGX01M73Tw2sr sessionID=ses_732cf048dffe8bGX01M73Tw2sr locking INFO 2025-08-21T15:13:16 +0ms service=provider providerID=google modelID=gemini-2.5-flash getModel INFO 2025-08-21T15:13:16 +0ms service=provider status=started providerID=google getSDK INFO 2025-08-21T15:13:16 +0ms service=provider status=completed duration=0 providerID=google getSDK INFO 2025-08-21T15:13:16 +0ms service=provider providerID=google modelID=gemini-2.5-flash found INFO 2025-08-21T15:13:16 +5ms service=bus type=storage.write publishing INFO 2025-08-21T15:13:16 +0ms service=bus type=message.updated publishing INFO 2025-08-21T15:13:16 +1ms service=app name=mcp registering service INFO 2025-08-21T15:13:16 +4ms service=session session=ses_732cf048dffe8bGX01M73Tw2sr type=start part INFO 2025-08-21T15:13:19 +2839ms service=session session=ses_732cf048dffe8bGX01M73Tw2sr type=start-step part INFO 2025-08-21T15:13:19 +1ms service=bus type=storage.write publishing INFO 2025-08-21T15:13:19 +0ms service=bus type=message.part.updated publishing INFO 2025-08-21T15:13:19 +0ms service=session session=ses_732cf048dffe8bGX01M73Tw2sr type=finish-step part INFO 2025-08-21T15:13:19 +1ms service=bus type=storage.write publishing INFO 2025-08-21T15:13:19 +0ms service=bus type=message.part.updated publishing INFO 2025-08-21T15:13:19 +0ms service=bus type=storage.write publishing INFO 2025-08-21T15:13:19 +0ms service=bus type=message.updated publishing INFO 2025-08-21T15:13:19 +0ms service=session session=ses_732cf048dffe8bGX01M73Tw2sr type=finish part INFO 2025-08-21T15:13:19 +5ms service=bus type=storage.write publishing INFO 2025-08-21T15:13:19 +0ms service=bus type=message.updated publishing INFO 2025-08-21T15:13:19 +0ms service=bus type=storage.write publishing INFO 2025-08-21T15:13:19 +1ms service=bus type=message.updated publishing INFO 2025-08-21T15:13:19 +0ms service=session session=ses_732cf048dffe8bGX01M73Tw2sr sessionID=ses_732cf048dffe8bGX01M73Tw2sr unlocking INFO 2025-08-21T15:13:19 +0ms service=bus type=session.idle publishing INFO 2025-08-21T15:13:19 +0ms service=app name=lsp shutdown INFO 2025-08-21T15:13:19 +0ms service=app name=session shutdown INFO 2025-08-21T15:13:19 +0ms service=app name=mcp shutdown ``` afterwards, when looking at the session I can see the described issue: <img width="716" height="583" alt="Image" src="https://github.com/user-attachments/assets/edb1b61d-902f-4180-b0b1-1f5ca65478e3" />
Author
Owner

@rekram1-node commented on GitHub (Aug 21, 2025):

awesome ty

@rekram1-node commented on GitHub (Aug 21, 2025): awesome ty
Author
Owner

@zatevakhin commented on GitHub (Aug 21, 2025):

First run:

$ 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
@zatevakhin commented on GitHub (Aug 21, 2025): First run: ``` $ 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 ```
Author
Owner

@zetomatoz commented on GitHub (Aug 21, 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_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.

@zetomatoz commented on GitHub (Aug 21, 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_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](https://docs.vllm.ai/en/stable/features/tool_calling.html) of vLLM to avoid the 400s and make it work.
Author
Owner

@alex-hjkl commented on GitHub (Aug 22, 2025):

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
@alex-hjkl commented on GitHub (Aug 22, 2025): 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 ```
Author
Owner

@rekram1-node commented on GitHub (Aug 22, 2025):

what happens if you try deleting ~/.cache/opencode

^^ it is a dir

@rekram1-node commented on GitHub (Aug 22, 2025): what happens if you try deleting ~/.cache/opencode ^^ it is a dir
Author
Owner

@alex-hjkl commented on GitHub (Aug 22, 2025):

what happens if you try deleting ~/.cache/opencode

^^ it is a dir

Doesn't help. It goes back from "working..." to "enter" state pretty quick and stops "Generating"

https://github.com/user-attachments/assets/74ae4853-f8d2-4188-bc35-c963e21f913d

@alex-hjkl commented on GitHub (Aug 22, 2025): > what happens if you try deleting ~/.cache/opencode > > ^^ it is a dir Doesn't help. It goes back from "working..." to "enter" state pretty quick and stops "Generating" https://github.com/user-attachments/assets/74ae4853-f8d2-4188-bc35-c963e21f913d
Author
Owner

@balpert89 commented on GitHub (Aug 22, 2025):

@rekram1-node as stated in the original description, I deleted both cache directories, opencode and bun install dir.

@balpert89 commented on GitHub (Aug 22, 2025): @rekram1-node as stated in the original description, I deleted both cache directories, opencode and bun install dir.
Author
Owner

@rekram1-node commented on GitHub (Aug 22, 2025):

wow that’s odd

@rekram1-node commented on GitHub (Aug 22, 2025): wow that’s odd
Author
Owner

@rekram1-node commented on GitHub (Aug 22, 2025):

@balpert89 yeah sorry I was asking the other person

@rekram1-node commented on GitHub (Aug 22, 2025): @balpert89 yeah sorry I was asking the other person
Author
Owner

@ImTheDeveloper commented on GitHub (Aug 23, 2025):

Same issue here stuck in generating and a queued up message too. Deleting cache, exiting out, restarting etc still doesn't fix the issue. That session is just unusable now

@ImTheDeveloper commented on GitHub (Aug 23, 2025): Same issue here stuck in generating and a queued up message too. Deleting cache, exiting out, restarting etc still doesn't fix the issue. That session is just unusable now
Author
Owner

@balpert89 commented on GitHub (Aug 29, 2025):

any news here? I have seen other similar issues popping up, can we provide more information for narrowing down the problem?

@balpert89 commented on GitHub (Aug 29, 2025): any news here? I have seen other similar issues popping up, can we provide more information for narrowing down the problem?
Author
Owner

@rekram1-node commented on GitHub (Aug 29, 2025):

@balpert89 are you using any mcp servers?

Can you send another opencode run "hello" --print-logs --model google/gemini-2.5-pro on latest?

@rekram1-node commented on GitHub (Aug 29, 2025): @balpert89 are you using any mcp servers? Can you send another `opencode run "hello" --print-logs --model google/gemini-2.5-pro` on latest?
Author
Owner

@43034r commented on GitHub (Aug 31, 2025):

Same issue
from gemini-2.5-flash:

INFO 2025-08-31T13:19:37 +0ms service=bus type=message.part.updated publishing
Hello! How can I help you today?

@43034r commented on GitHub (Aug 31, 2025): **Same issue** from gemini-2.5-flash: INFO 2025-08-31T13:19:37 +0ms service=bus type=message.part.updated publishing Hello! How can I help you today?
Author
Owner

@rekram1-node commented on GitHub (Aug 31, 2025):

@43034r based off that log snippet it looks like it replied just fine? is it only hanging when in tui mode?

@rekram1-node commented on GitHub (Aug 31, 2025): @43034r based off that log snippet it looks like it replied just fine? is it only hanging when in tui mode?
Author
Owner

@43034r commented on GitHub (Aug 31, 2025):

@43034r based off that log snippet it looks like it replied just fine? is it only hanging when in tui mode?

Yes, have hanging only in UI mode. I using 2 MCP servers - both locally - context7, gitlab mcp.

@43034r commented on GitHub (Aug 31, 2025): > [@43034r](https://github.com/43034r) based off that log snippet it looks like it replied just fine? is it only hanging when in tui mode? Yes, have hanging only in UI mode. I using 2 MCP servers - both locally - context7, gitlab mcp.
Author
Owner

@rekram1-node commented on GitHub (Aug 31, 2025):

ahh can you try disabling the gitlab mcp and trying again, wonder if that is the issue

@rekram1-node commented on GitHub (Aug 31, 2025): ahh can you try disabling the gitlab mcp and trying again, wonder if that is the issue
Author
Owner

@43034r commented on GitHub (Aug 31, 2025):

ahh can you try disabling the gitlab mcp and trying again, wonder if that is the issue

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.

@43034r commented on GitHub (Aug 31, 2025): > ahh can you try disabling the gitlab mcp and trying again, wonder if that is the issue 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.
Author
Owner

@alex-hjkl commented on GitHub (Sep 1, 2025):

Super, v0.5.29 works for me. No mcp. Thanks a lot!

@alex-hjkl commented on GitHub (Sep 1, 2025): Super, v0.5.29 works for me. No mcp. Thanks a lot!
Author
Owner

@sQVe commented on GitHub (Sep 1, 2025):

I'm seeing this issue fairly often, and I'm using these MCPs:

  1. Sequential Thinking
  2. Context7
  3. Zen
  4. GitHub
  5. Chrome
@sQVe commented on GitHub (Sep 1, 2025): I'm seeing this issue fairly often, and I'm using these MCPs: 1. Sequential Thinking 2. Context7 3. Zen 4. GitHub 5. Chrome
Author
Owner

@rekram1-node commented on GitHub (Sep 1, 2025):

thx for sharing @sQVe it definitely isnt context7 but it might be one of the others

@rekram1-node commented on GitHub (Sep 1, 2025): thx for sharing @sQVe it definitely isnt context7 but it might be one of the others
Author
Owner

@imajus commented on GitHub (Sep 9, 2025):

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.

@imajus commented on GitHub (Sep 9, 2025): 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.
Author
Owner

@rekram1-node commented on GitHub (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 commented on GitHub (Sep 9, 2025): Can you show me what you see if you do:<br><br>opencode run "hello" -c --print-logs<br><br>in the session that hangs
Author
Owner

@rekram1-node commented on GitHub (Sep 9, 2025):

does it only happen on file edits maybe?

@rekram1-node commented on GitHub (Sep 9, 2025): does it only happen on file edits maybe?
Author
Owner

@sagarbehere commented on GitHub (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.

@sagarbehere commented on GitHub (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.
Author
Owner

@rekram1-node commented on GitHub (Sep 19, 2025):

@sagarbehere did it happen when it tried editing a file? if so what file type

could you share error log

@rekram1-node commented on GitHub (Sep 19, 2025): @sagarbehere did it happen when it tried editing a file? if so what file type could you share error log
Author
Owner

@sagarbehere commented on GitHub (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.

(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
@sagarbehere commented on GitHub (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. ``` (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 ```
Author
Owner

@rekram1-node commented on GitHub (Sep 20, 2025):

hmm if you run into it again can you share the latest log file when it happens?

@rekram1-node commented on GitHub (Sep 20, 2025): hmm if you run into it again can you share the latest log file when it happens?
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

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

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1417