Skip to content

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

Closed

Description

@jdanbrown

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 1, 2025
  2. github-actions commented on Dec 1, 2025

    @github-actions
    Contributor

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

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

  3. jdanbrown commented on Dec 1, 2025

    @jdanbrown
    ContributorAuthor

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

  4. self-assigned this
    on Dec 1, 2025
  5. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 1, 2025
  6. rekram1-node commented on Dec 9, 2025

    @rekram1-node
    Contributor

    Once this goes through I think it'll be fixed:
    OpenRouterTeam/ai-sdk-provider#288

  7. rekram1-node commented on Dec 10, 2025

    @rekram1-node
    Contributor

    should be fixed by: 5302

    in next release

  8. jdanbrown commented on Dec 11, 2025

    @jdanbrown
    ContributorAuthor

    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):

  9. rekram1-node commented on Dec 11, 2025

    @rekram1-node
    Contributor

    sweet!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions