openrouter/google/gemini-3-pro-preview stops responding #3235

Closed
opened 2026-02-16 17:39:16 -05:00 by yindo · 6 comments
Owner

Originally created by @jdanbrown on GitHub (Dec 1, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

openrouter/google/gemini-3-pro-preview often just stops responding mid stream, whereas I haven't seen google/gemini-3-pro-preview do this at all. I'm still trying to isolate a clean repro of this, but here's a very short example of the bug in case it inspires any ideas:

Image

Config

$ opencode debug config
{
  "$schema": "https://opencode.ai/config.json",
  "theme": "jdanbrown",
  "keybinds": {
    "leader": "ctrl+o",
    "app_exit": "ctrl+d,<leader>q",
    "editor_open": "<leader>e",
    "theme_list": "<leader>t",
    "sidebar_toggle": "<leader>b",
    "status_view": "<leader>s",
    "session_export": "<leader>x",
    "session_new": "<leader>n",
    "session_list": "<leader>l",
    "session_timeline": "<leader>g",
    "session_share": "none",
    "session_unshare": "none",
    "session_interrupt": "ctrl+c",
    "session_compact": "<leader>c",
    "messages_page_up": "pageup",
    "messages_page_down": "pagedown",
    "messages_half_page_up": "ctrl+alt+u",
    "messages_half_page_down": "ctrl+alt+d",
    "messages_first": "ctrl+alt+a",
    "messages_last": "ctrl+alt+e",
    "messages_copy": "<leader>y",
    "messages_undo": "<leader>u",
    "messages_redo": "<leader>r",
    "messages_toggle_conceal": "<leader>h",
    "model_list": "<leader>m,ctrl+j",
    "model_cycle_recent": "f2",
    "model_cycle_recent_reverse": "shift+f2",
    "command_list": "ctrl+_",
    "agent_list": "<leader>a",
    "agent_cycle": "tab",
    "agent_cycle_reverse": "shift+tab",
    "input_clear": "ctrl+c",
    "input_forward_delete": "ctrl+d",
    "input_paste": "ctrl+v",
    "input_submit": "return",
    "input_newline": "alt+enter,shift+enter,shift+return",
    "history_previous": "up,ctrl+p",
    "history_next": "down,ctrl+n",
    "session_child_cycle": "<leader>right",
    "session_child_cycle_reverse": "<leader>left",
    "terminal_suspend": "ctrl+z"
  },
  "tui": {
    "scroll_acceleration": {
      "enabled": true
    },
    "diff_style": "stacked"
  },
  "share": "manual",
  "autoupdate": false,
  "model": "openrouter/anthropic/claude-haiku-4.5",
  "small_model": "openrouter/google/gemini-2.5-flash",
  "provider": {
    "openrouter": {
      "models": {
        "anthropic/claude-sonnet-4.5@thinking-32k": {
          "id": "anthropic/claude-sonnet-4.5",
          "options": {
            "reasoning": {
              "effort": "high"
            }
          }
        }
      }
    }
  },
  "mcp": {
    "context7": {
      "type": "remote",
      "url": "https://mcp.context7.com/mcp",
      "headers": {
        "CONTEXT7_API_KEY": ...
      }
    }
  },
  "formatter": {
    "swiftformat": {
      "command": [
        "swiftformat",
        "$FILE"
      ],
      "extensions": [
        ".swift"
      ]
    }
  },
  "instructions": [],
  "permission": {
    "bash": "allow",
    "external_directory": "allow"
  },
  "agent": {},
  "mode": {},
  "plugin": [],
  "command": {},
  "username": "danb"
}

OpenCode version

1.0.126

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

macOS 15.5

Terminal

VS Code terminal

Originally created by @jdanbrown on GitHub (Dec 1, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description `openrouter/google/gemini-3-pro-preview` often just stops responding mid stream, whereas I haven't seen `google/gemini-3-pro-preview` do this at all. I'm still trying to isolate a clean repro of this, but here's a very short example of the bug in case it inspires any ideas: - https://opencode.ai/s/MyzD23XI <img width="935" height="678" alt="Image" src="https://github.com/user-attachments/assets/6dc3f529-59c2-4b76-a8ec-047e5b35b0bf" /> ### Config ```sh $ opencode debug config { "$schema": "https://opencode.ai/config.json", "theme": "jdanbrown", "keybinds": { "leader": "ctrl+o", "app_exit": "ctrl+d,<leader>q", "editor_open": "<leader>e", "theme_list": "<leader>t", "sidebar_toggle": "<leader>b", "status_view": "<leader>s", "session_export": "<leader>x", "session_new": "<leader>n", "session_list": "<leader>l", "session_timeline": "<leader>g", "session_share": "none", "session_unshare": "none", "session_interrupt": "ctrl+c", "session_compact": "<leader>c", "messages_page_up": "pageup", "messages_page_down": "pagedown", "messages_half_page_up": "ctrl+alt+u", "messages_half_page_down": "ctrl+alt+d", "messages_first": "ctrl+alt+a", "messages_last": "ctrl+alt+e", "messages_copy": "<leader>y", "messages_undo": "<leader>u", "messages_redo": "<leader>r", "messages_toggle_conceal": "<leader>h", "model_list": "<leader>m,ctrl+j", "model_cycle_recent": "f2", "model_cycle_recent_reverse": "shift+f2", "command_list": "ctrl+_", "agent_list": "<leader>a", "agent_cycle": "tab", "agent_cycle_reverse": "shift+tab", "input_clear": "ctrl+c", "input_forward_delete": "ctrl+d", "input_paste": "ctrl+v", "input_submit": "return", "input_newline": "alt+enter,shift+enter,shift+return", "history_previous": "up,ctrl+p", "history_next": "down,ctrl+n", "session_child_cycle": "<leader>right", "session_child_cycle_reverse": "<leader>left", "terminal_suspend": "ctrl+z" }, "tui": { "scroll_acceleration": { "enabled": true }, "diff_style": "stacked" }, "share": "manual", "autoupdate": false, "model": "openrouter/anthropic/claude-haiku-4.5", "small_model": "openrouter/google/gemini-2.5-flash", "provider": { "openrouter": { "models": { "anthropic/claude-sonnet-4.5@thinking-32k": { "id": "anthropic/claude-sonnet-4.5", "options": { "reasoning": { "effort": "high" } } } } } }, "mcp": { "context7": { "type": "remote", "url": "https://mcp.context7.com/mcp", "headers": { "CONTEXT7_API_KEY": ... } } }, "formatter": { "swiftformat": { "command": [ "swiftformat", "$FILE" ], "extensions": [ ".swift" ] } }, "instructions": [], "permission": { "bash": "allow", "external_directory": "allow" }, "agent": {}, "mode": {}, "plugin": [], "command": {}, "username": "danb" } ``` ### OpenCode version 1.0.126 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System macOS 15.5 ### Terminal VS Code terminal
yindo added the bug label 2026-02-16 17:39:16 -05:00
yindo closed this issue 2026-02-16 17:39:16 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 1, 2025):

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

  • #4912: Lots of REDACTED with openrouter/google/gemini-3-pro-preview (same model experiencing issues)
  • #2478: GPT-5 on OpenRouter abruptly stops (similar symptoms - models on OpenRouter stopping mid-stream)
  • #2137: Message generation interrupted, stuck at Generating (similar hanging/interruption behavior)

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

@github-actions[bot] commented on GitHub (Dec 1, 2025): This issue might be a duplicate of existing issues. Please check: - #4912: Lots of REDACTED with openrouter/google/gemini-3-pro-preview (same model experiencing issues) - #2478: GPT-5 on OpenRouter abruptly stops (similar symptoms - models on OpenRouter stopping mid-stream) - #2137: Message generation interrupted, stuck at `Generating` (similar hanging/interruption behavior) Feel free to ignore if none of these address your specific case.
Author
Owner

@jdanbrown commented on GitHub (Dec 1, 2025):

I opened this other issue about lots of REDACTED because I was hoping it was related, but it sounds like it's not:

@jdanbrown commented on GitHub (Dec 1, 2025): I opened this other issue about lots of `REDACTED` because I was hoping it was related, but it sounds like it's not: - https://github.com/sst/opencode/issues/4912
Author
Owner

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

Once this goes through I think it'll be fixed:
https://github.com/OpenRouterTeam/ai-sdk-provider/pull/288

@rekram1-node commented on GitHub (Dec 9, 2025): Once this goes through I think it'll be fixed: https://github.com/OpenRouterTeam/ai-sdk-provider/pull/288
Author
Owner

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

should be fixed by: 5302

in next release

@rekram1-node commented on GitHub (Dec 10, 2025): should be fixed by: [5302](https://github.com/sst/opencode/pull/5302) in next release
Author
Owner

@jdanbrown commented on GitHub (Dec 11, 2025):

Woo, thank you! Seems to be working now — here are two small chats where openrouter/google/gemini-3-pro-preview no longer gets stuck (on tool calls, it seems the original problem was):

@jdanbrown commented on GitHub (Dec 11, 2025): Woo, thank you! Seems to be working now — here are two small chats where openrouter/google/gemini-3-pro-preview no longer gets stuck (on tool calls, it seems the original problem was): - https://opncd.ai/share/24FgbAjs - https://opncd.ai/share/nGeOaany
Author
Owner

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

sweet!

@rekram1-node commented on GitHub (Dec 11, 2025): sweet!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3235