anomalyco / anomalyco/opencode

[BUG]: Session suddenly produces garbled/nonsensical responses (胡言乱语)

Open
#38,632 1 comment 0 reactions 1 assignee View on GitHub

@jlongster is already working on this.

Since Jul 24, 2026.

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

Description

Description

One of my opencode sessions suddenly started producing incoherent/nonsensical responses (胡言乱语) after working normally for a while. The model appeared to lose context and started generating irrelevant or garbled text.

Environment:

  • OpenCode version: 1.18.4
  • OS: Windows 11
  • Terminal: PowerShell (Windows Terminal)
  • Model: deepseek-v4-flash-free (opencode provider)
  • Custom providers configured: ~40+ third-party AI providers via opencode.jsonc

Observations:

  • The session was running for an extended period before the issue occurred
  • No network errors were observed in the logs
  • The log shows only INFO level messages, no ERROR/WARN related to the garbled output
  • I have many custom provider configurations in opencode.jsonc
  • There was a prior npm install warning: "No matching version found for @opencode-ai/plugin@local"
Plugins

No response

OpenCode version

No response

Steps to reproduce

Not consistently reproducible — occurred spontaneously in a long-running session.

Screenshot and/or share link

https://opncd.ai/share/KVq7yZOY

Image
Operating System

No response

Terminal

No response

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.