bug: error unhandled chunk type #137

Closed
opened 2026-02-16 17:25:22 -05:00 by yindo · 17 comments
Owner

Originally created by @rekram1-node on GitHub (Jun 19, 2025).

Originally assigned to: @thdxr on GitHub.

Image

opencode --version
0.1.95

I have only noticed this openai models

Originally created by @rekram1-node on GitHub (Jun 19, 2025). Originally assigned to: @thdxr on GitHub. ![Image](https://github.com/user-attachments/assets/e13d062e-a6c9-43a0-89d6-5abab53873d0) ```zsh opencode --version 0.1.95 ``` I have only noticed this openai models
yindo closed this issue 2026-02-16 17:25:22 -05:00
Author
Owner

@thdxr commented on GitHub (Jun 19, 2025):

this happens with every request? it's not working for you at all?

@thdxr commented on GitHub (Jun 19, 2025): this happens with every request? it's not working for you at all?
Author
Owner

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

Yessir

@rekram1-node commented on GitHub (Jun 19, 2025): Yessir
Author
Owner

@thdxr commented on GitHub (Jun 19, 2025):

hm im not able to recreate it - could you /share that session so i can see it?

image.png
@thdxr commented on GitHub (Jun 19, 2025): hm im not able to recreate it - could you /share that session so i can see it? <img src="https://uploads.linear.app/a959060b-9262-4398-9650-16bf10f1450e/bb3eb53c-6c50-4e8a-8581-66084f798e7a/d2614c17-7bd2-4222-bc89-117d544b4737?signature=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXRoIjoiL2E5NTkwNjBiLTkyNjItNDM5OC05NjUwLTE2YmYxMGYxNDUwZS9iYjNlYjUzYy02YzUwLTRlOGEtODU4MS02NjA4NGY3OThlN2EvZDI2MTRjMTctN2JkMi00MjIyLWJjODktMTE3ZDU0NGI0NzM3IiwiaWF0IjoxNzUwMzUyODIxLCJleHAiOjMzMzIwOTEyODIxfQ.-kkg_vRS7R2SmnLJKGo3OOQbaqZdBLm5qhkQ2hS5_AU " alt="image.png" width="1581" data-linear-height="2054" />
Author
Owner

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

Here ya go: https://dev.opencode.ai/s/ad25360b

@rekram1-node commented on GitHub (Jun 19, 2025): Here ya go: https://dev.opencode.ai/s/ad25360b
Author
Owner

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

Got this fixed by rm -rf ~/.cache/opencode

@rekram1-node commented on GitHub (Jun 30, 2025): Got this fixed by `rm -rf ~/.cache/opencode`
Author
Owner

@limoragni commented on GitHub (Nov 4, 2025):

Having the same error on this session https://opencode.ai/s/Otz01W1E

I've never used opencode before, I just installed it for the first time now, logged in to claude with the MAX sub, and all I get is this. Removing the cache didn't work for me.

Not sure if it's an issue with the sub integration, but can't get it to work unfortunetly.

Image
@limoragni commented on GitHub (Nov 4, 2025): Having the same error on this session https://opencode.ai/s/Otz01W1E I've never used opencode before, I just installed it for the first time now, logged in to claude with the MAX sub, and all I get is this. Removing the cache didn't work for me. Not sure if it's an issue with the sub integration, but can't get it to work unfortunetly. <img width="721" height="239" alt="Image" src="https://github.com/user-attachments/assets/5f409c75-dc17-4e38-847f-34329d242df3" />
Author
Owner

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

@limoragni what version r u using?

@rekram1-node commented on GitHub (Nov 4, 2025): @limoragni what version r u using?
Author
Owner

@limoragni commented on GitHub (Nov 4, 2025):

Just downloaded the app, version is 1.0.20

@limoragni commented on GitHub (Nov 4, 2025): Just downloaded the app, version is 1.0.20
Author
Owner

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

@limoragni and what provider are you using? openrouter? Openai? etc

@rekram1-node commented on GitHub (Nov 4, 2025): @limoragni and what provider are you using? openrouter? Openai? etc
Author
Owner

@limoragni commented on GitHub (Nov 4, 2025):

I did the login with the Claude MAX subscription. I'm trying to use that sub.

@limoragni commented on GitHub (Nov 4, 2025): I did the login with the Claude MAX subscription. I'm trying to use that sub.
Author
Owner

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

@limoragni opened separate issue to track it

@rekram1-node commented on GitHub (Nov 4, 2025): @limoragni opened separate issue to track it
Author
Owner

@ayush-rudani commented on GitHub (Dec 10, 2025):

I'm encountering the same error, and it's failing across all providers.
and clearing the cache did not resolve the issue.

@ayush-rudani commented on GitHub (Dec 10, 2025): I'm encountering the same error, and it's failing across all providers. and clearing the cache did not resolve the issue.
Author
Owner

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

what version, what providers what model

@rekram1-node commented on GitHub (Dec 10, 2025): what version, what providers what model
Author
Owner

@ayush-rudani commented on GitHub (Dec 10, 2025):

Sorry, I am able to fix it by reinstalling OpenCode.

But still for FYI, I was on OpenCode version 1.0.140. I had tried both the OpenRouter and Gemini providers, but none of the models were working with either of them.

@ayush-rudani commented on GitHub (Dec 10, 2025): Sorry, I am able to fix it by reinstalling OpenCode. But still for FYI, I was on OpenCode version 1.0.140. I had tried both the OpenRouter and Gemini providers, but none of the models were working with either of them.
Author
Owner

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

did u previously have a really old version of opencode and come back recently? I havent had other reports of this

@rekram1-node commented on GitHub (Dec 10, 2025): did u previously have a really old version of opencode and come back recently? I havent had other reports of this
Author
Owner

@ayush-rudani commented on GitHub (Dec 10, 2025):

Yes, revisiting it after a long time.

@ayush-rudani commented on GitHub (Dec 10, 2025): Yes, revisiting it after a long time.
Author
Owner

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

makes sense

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

No dependencies set.

Reference: anomalyco/opencode#137