anomalyco / anomalyco/opencode

Truncated model response for OpenCode Go models

Open
#41,582 4 comments 2 reactions 1 assignee View on GitHub

@fwang is already working on this.

Since Aug 10, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

Today, many OpenCode Go models interrupt their response mid-stream. I've observed this for DeepSeek-V4-Pro, Kimi-K3 and MiMo-V2-Pro. Other users report this issue for DeepSeek-V4-Flash.

I am using the streaming API with my own client, so this is a server issue. I did not see any suspicious streaming packages in terms of "data: ..." chat.completion.chunks. The server simply closes the HTTP connection mid-stream. This also happens in the middle of tool calls, which results in invalid JSON.

The following issues are somewhat related, but not quite the same:

Plugins

NA

OpenCode version

NA

Steps to reproduce
  1. Use any model
  2. Write a prompt that results in a long response
  3. Response stops after 3 to 5 minutes
Screenshot and/or share link
Incomplete reasoning

Incomplete tool call
Image
Operating System

NA

Terminal

NA

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.