Skip to content

[Bug]: Stream error: error decoding response body #1196

@zhangshican

Description

@zhangshican

Prerequisites

  • I have searched existing issues to avoid duplicates
  • I am using the latest version of oh-my-opencode
  • I have read the documentation

Bug Description

AI_TypeValidationError: Type validation failed: Value: {"error":"Stream error: error decoding response body"}.
Error message: [
{
"code": "invalid_union",
"errors": [],
"note": "No matching discriminator",
"discriminator": "type",
"path": [
"type"
],
"message": "Invalid input"
}
]

Steps to Reproduce

Image

Expected Behavior

Fix

Actual Behavior

creat skill

Doctor Output

Installation
────────────────────────────────────────
  ✓ OpenCode Installation → 1.1.37
  ✓ Plugin Registration → Registered

Configuration
────────────────────────────────────────
  ✓ Configuration Validity → Valid JSON config
  ✓ Model Resolution → 9 agents, 7 categories (4 overrides), 2350 available

Authentication
────────────────────────────────────────
  ✓ Anthropic (Claude) Auth → Auth plugin available
  ✓ OpenAI (ChatGPT) Auth → Auth plugin available
  ✓ Google (Gemini) Auth → Auth plugin available

Dependencies
────────────────────────────────────────
  ✓ AST-Grep CLI → installed
  ✓ AST-Grep NAPI → installed
  ⚠ Comment Checker → Not installed (optional)

Tools & Servers
────────────────────────────────────────
  ⚠ GitHub CLI → Not installed (optional)
  ✓ LSP Servers → 1/4 servers available
  ✓ Built-in MCP Servers → 2 built-in servers enabled
  ○ User MCP Configuration → No user MCP configuration found

Updates
────────────────────────────────────────
  ✓ Version Status → Up to date (3.1.4)

Summary
────────────────────────────────────────

  12 passed, 0 failed, 2 warnings, 1 skipped
  Total: 15 checks in 1948ms

⚠ All systems operational with warnings.

Error Logs

Configuration

Additional Context

No response

Operating System

macOS

OpenCode Version

3.1.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions