anomalyco / anomalyco/opencode

Internal server error (and Type validation failed)

Open
#48,649 1 comment 0 reactions 1 assignee View on GitHub

@jlongster is already working on this.

Since Sep 12, 2026.

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

Description

Description

During the last week opencode (with Go) repeatedly interrupts with and Internal server error and does not do any work. It usually starts after some work (e.g. when it gets to about 25% of context).
It happens both with glm-5.3 flash and qwen3.8 flash.
Sometimes it gives also the following error:
Type validation failed: Value: {}.
Error message: [
{
"code": "invalid_union",
"errors": [],
"note": "No matching discriminator",
"discriminator": "type",
"path": [
"type"
],
"message": "Invalid input"
}
]
Previously it was working fine. Now it is unusable.

Plugins

none

OpenCode version

1.18.30

Steps to reproduce

Open opencode.
Start working. Wait until it starts to give internal server error

Screenshot and/or share link
Image
Operating System

MacOS 26.6.2

Terminal

Bash, zed (zsh)

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.