Lots of REDACTED with openrouter/google/gemini-3-pro-preview #3209

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

Originally created by @jdanbrown on GitHub (Nov 29, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Context: openrouter/google/gemini-3-pro-preview has been doing weird things for me (stopping mid-stream, or something), but I haven't been able to nail it down. Here's one problem I have been able to isolate, that I hope is related to my issues.

Bug: Comparing openrouter/google/gemini-3-pro-preview vs. google/gemini-3-pro-preview, I see lots of REDACTED with the openrouter model but not with the google model. Examples:

To rule out stuff like mcp, I used an empty opencode.jsonc for all of the sessions above:

$ opencode debug config
{
  "$schema": "https://opencode.ai/config.json",
  "agent": {},
  "mode": {},
  "plugin": [],
  "command": {},
  "username": "danb",
  "keybinds": {
    "leader": "ctrl+x",
    "app_exit": "ctrl+c,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": "escape",
    "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+g,home",
    "messages_last": "ctrl+alt+g,end",
    "messages_copy": "<leader>y",
    "messages_undo": "<leader>u",
    "messages_redo": "<leader>r",
    "messages_toggle_conceal": "<leader>h",
    "model_list": "<leader>m",
    "model_cycle_recent": "f2",
    "model_cycle_recent_reverse": "shift+f2",
    "command_list": "ctrl+p",
    "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": "shift+return,ctrl+j",
    "history_previous": "up",
    "history_next": "down",
    "session_child_cycle": "<leader>right",
    "session_child_cycle_reverse": "<leader>left",
    "terminal_suspend": "ctrl+z"
  }
}

OpenCode version

1.0.121

Steps to reproduce

(above)

Screenshot and/or share link

No response

Operating System

macOS 15.5

Terminal

VS Code terminal

Originally created by @jdanbrown on GitHub (Nov 29, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Context: `openrouter/google/gemini-3-pro-preview` has been doing weird things for me (stopping mid-stream, or something), but I haven't been able to nail it down. Here's one problem I have been able to isolate, that I hope is related to my issues. Bug: Comparing `openrouter/google/gemini-3-pro-preview` vs. `google/gemini-3-pro-preview`, I see lots of `REDACTED` with the openrouter model but not with the google model. Examples: - `how can i write a simple scheme interpreter in python`, plan mode, empty dir - openrouter: https://opencode.ai/s/ihHSOOAL — 1 `REDACTED` - openrouter: https://opencode.ai/s/5bap7oqP — 1 `REDACTED` - openrouter: https://opencode.ai/s/Z5JpIqM4 — 1 `REDACTED` - openrouter: https://opencode.ai/s/BmGXCTVM — 1 `REDACTED` - google: https://opencode.ai/s/toq2tzuM — 0 `REDACTED` - google: https://opencode.ai/s/V2MFaUiU — 0 `REDACTED` - google: https://opencode.ai/s/zxj11DaF — 0 `REDACTED` - google: https://opencode.ai/s/tnC9XnJ3 — 0 `REDACTED` - `write a simple scheme interpreter in python`, build mode, empty dir - openrouter: https://opencode.ai/s/KqQoe8EA — 8 `REDACTED` - google: https://opencode.ai/s/kTHjdHhG — 0 `REDACTED` - `do you see any bugs` — dir with `scheme.py` from above, [oops, I mixed up build/plan mode here, but I think it doesn't matter] - openrouter: https://opencode.ai/s/FOAjRxub — 7 `REDACTED` [plan mode] - google: https://opencode.ai/s/JunJxiSS — 0 `REDACTED` [build mode] To rule out stuff like mcp, I used an empty `opencode.jsonc` for all of the sessions above: ``` $ opencode debug config { "$schema": "https://opencode.ai/config.json", "agent": {}, "mode": {}, "plugin": [], "command": {}, "username": "danb", "keybinds": { "leader": "ctrl+x", "app_exit": "ctrl+c,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": "escape", "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+g,home", "messages_last": "ctrl+alt+g,end", "messages_copy": "<leader>y", "messages_undo": "<leader>u", "messages_redo": "<leader>r", "messages_toggle_conceal": "<leader>h", "model_list": "<leader>m", "model_cycle_recent": "f2", "model_cycle_recent_reverse": "shift+f2", "command_list": "ctrl+p", "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": "shift+return,ctrl+j", "history_previous": "up", "history_next": "down", "session_child_cycle": "<leader>right", "session_child_cycle_reverse": "<leader>left", "terminal_suspend": "ctrl+z" } } ``` ### OpenCode version 1.0.121 ### Steps to reproduce (above) ### 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:07 -05:00
yindo closed this issue 2026-02-16 17:39:07 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 29, 2025):

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

  • #4615: Incomplete response with openrouter/google/gemini-3-pro-preview
  • #4832: [BUG]: Gemini 3 Pro function calling fails - missing thoughtSignature support
  • #4632: Gemini 3 pro preview issues

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

@github-actions[bot] commented on GitHub (Nov 29, 2025): This issue might be a duplicate of existing issues. Please check: - #4615: Incomplete response with openrouter/google/gemini-3-pro-preview - #4832: [BUG]: Gemini 3 Pro function calling fails - missing `thoughtSignature` support - #4632: Gemini 3 pro preview issues Feel free to ignore if none of these address your specific case.
Author
Owner

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

idk why it does that but i have something we can try

@rekram1-node commented on GitHub (Nov 29, 2025): idk why it does that but i have something we can try
Author
Owner

@rekram1-node commented on GitHub (Nov 30, 2025):

This isn't actually a bug it's just how openrouter parses it out with their sdk. I think we will just hide it.

@rekram1-node commented on GitHub (Nov 30, 2025): This isn't actually a bug it's just how openrouter parses it out with their sdk. I think we will just hide it.
Author
Owner

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

"fixed" in next release: https://github.com/sst/opencode/commit/d9b0848a611eddb2283e888821e1dba7676a3744

openrouter intentionally parses them out like that with their sdk but no reaosn to show them visually.

@rekram1-node commented on GitHub (Dec 2, 2025): "fixed" in next release: https://github.com/sst/opencode/commit/d9b0848a611eddb2283e888821e1dba7676a3744 openrouter intentionally parses them out like that with their sdk but no reaosn to show them visually.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3209