Gemini3 with Openrouter chat issue #2989

Closed
opened 2026-02-16 17:38:09 -05:00 by yindo · 11 comments
Owner

Originally created by @veschin on GitHub (Nov 20, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

when ~12K tokens are reached in a session or a shell call occurs, the chat dies. this problem is specific only to the OpenRouter session, there is no such problem through Zen or Google

OpenCode version

v1.0.78-v1.0.80

Steps to reproduce

  1. select openrouter gemini3 through config or model selection
  2. generate any data
  3. chat will die after ~12K tokens

Screenshot and/or share link

Image

Operating System

Arch x86, 6.17.8-arch1-1

Terminal

Alacritty

Originally created by @veschin on GitHub (Nov 20, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description when ~12K tokens are reached in a session or a shell call occurs, the chat dies. this problem is specific only to the OpenRouter session, there is no such problem through Zen or Google ### OpenCode version v1.0.78-v1.0.80 ### Steps to reproduce 1. select openrouter gemini3 through config or model selection 2. generate any data 3. chat will die after ~12K tokens ### Screenshot and/or share link <img width="1131" height="1116" alt="Image" src="https://github.com/user-attachments/assets/36939de3-6f5c-49af-a008-c36ccd800cea" /> ### Operating System Arch x86, 6.17.8-arch1-1 ### Terminal Alacritty
yindo added the bug label 2026-02-16 17:38:09 -05:00
yindo closed this issue 2026-02-16 17:38:09 -05:00
Author
Owner

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

@veschin yeah working on a fix

@rekram1-node commented on GitHub (Nov 20, 2025): @veschin yeah working on a fix
Author
Owner

@zuli12-dev commented on GitHub (Nov 20, 2025):

faced the same, thanks for looking into! Much kudos!

@zuli12-dev commented on GitHub (Nov 20, 2025): faced the same, thanks for looking into! Much kudos!
Author
Owner

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

Talked to openrouter team they are doing some fixes for us

@rekram1-node commented on GitHub (Nov 20, 2025): Talked to openrouter team they are doing some fixes for us
Author
Owner

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

Alrighty can yall upgrade to latest and tell me if it is working for you? It seemed to work fine for me

@rekram1-node commented on GitHub (Nov 20, 2025): Alrighty can yall upgrade to latest and tell me if it is working for you? It seemed to work fine for me
Author
Owner

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

It seems like it isn't erroring anymore but sometimes the model is randomly stopping still, but I think that's on their side

@rekram1-node commented on GitHub (Nov 20, 2025): It seems like it isn't erroring anymore but sometimes the model is randomly stopping still, but I think that's on their side
Author
Owner

@zuli12-dev commented on GitHub (Nov 20, 2025):

Will test tomorrow, thanks @rekram1-node . Keep you posted.

Thanks for looking into this already

@zuli12-dev commented on GitHub (Nov 20, 2025): Will test tomorrow, thanks @rekram1-node . Keep you posted. Thanks for looking into this already
Author
Owner

@zuli12-dev commented on GitHub (Nov 21, 2025):

It seems like it isn't erroring anymore but sometimes the model is randomly stopping still, but I think that's on their side

i can confirm, it does work for me also, nearly 100k tokens without any issues, thanks!

Image
@zuli12-dev commented on GitHub (Nov 21, 2025): > It seems like it isn't erroring anymore but sometimes the model is randomly stopping still, but I think that's on their side i can confirm, it does work for me also, nearly 100k tokens without any issues, thanks! <img width="1921" height="993" alt="Image" src="https://github.com/user-attachments/assets/b672b5e1-0c62-4ef0-a0eb-14374dc98138" />
Author
Owner

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

this is fixed but openrouter still has some kinda issue:
https://github.com/sst/opencode/issues/4615

@rekram1-node commented on GitHub (Nov 24, 2025): this is fixed but openrouter still has some kinda issue: https://github.com/sst/opencode/issues/4615
Author
Owner

@rubin55 commented on GitHub (Nov 25, 2025):

this is fixed but openrouter still has some kinda issue: #4615

@rekram1-node Does openrouter have a public issue tracker that you know that tracks this issue on their side and/or do you know what specifically goes wrong on their side?

@rubin55 commented on GitHub (Nov 25, 2025): > this is fixed but openrouter still has some kinda issue: [#4615](https://github.com/sst/opencode/issues/4615) @rekram1-node Does openrouter have a public issue tracker that you know that tracks this issue on their side and/or do you know what specifically goes wrong on their side?
Author
Owner

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

i have no idea i just dmed some people on their team

@rekram1-node commented on GitHub (Nov 25, 2025): i have no idea i just dmed some people on their team
Author
Owner

@jdanbrown commented on GitHub (Nov 25, 2025):

+1 Looks like these are the deps, is it somewhere here?

@jdanbrown commented on GitHub (Nov 25, 2025): +1 Looks like these are the deps, is it somewhere here? - https://github.com/OpenRouterTeam/ai-sdk-provider/issues - https://github.com/vercel/ai/issues
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2989