Skip to content

Opencode errors on asking a question #7674

Closed as not planned
Closed as not planned

Description

@laycookie

Description

Hello I just installed opencode, but when asking a question the model thinks for a little while and then proceeds to error with the following logs. I have attempted to use Big Pickle as well as GLM-4.7 but I get the same error.
Sadly I'm not really getting much information from this specific error, on what might be going on under the hood so if anyone can assist me with further diagnosing the issue, I would be very thankful.

INFO  2026-01-10T17:41:22 +0ms service=lsp file=/home/Dennis/Documents/Code/generic_messenger/record/src/main.rs touching file
INFO  2026-01-10T17:41:22 +0ms service=file.time sessionID=ses_4570cf5f8ffejJlSr9rEM33RxA file=/home/Dennis/Documents/Code/generic_messenger/record/src/main.rs read
INFO  2026-01-10T17:41:22 +1ms service=bus type=message.part.updated publishing
INFO  2026-01-10T17:41:22 +135ms service=bus type=message.part.updated publishing
INFO  2026-01-10T17:41:22 +4ms service=snapshot hash=45900e3f3a10439fb22c16b0ce058e46404e33f3
 cwd=/home/Dennis/Documents/Code/generic_messenger git=/home/Dennis/.local/share/opencode/snapshot/4e7c501e60ab180464400dc33e0081ce75292d61 tracking
ERROR 2026-01-10T17:41:22 +0ms service=session.processor error=[
  {
    "code": "invalid_union",
    "errors": [
      [
        {
          "expected": "string",
          "code": "invalid_type",
          "path": [
            "reason"
          ],
          "message": "Invalid input: expected string, received object"
        }
      ],
      [
        {
          "expected": "object",
          "code": "invalid_type",
          "path": [
            "part"
          ],
          "message": "Invalid input: expected object, received undefined"
        },
        {
          "expected": "string",
          "code": "invalid_type",
          "path": [
            "delta"
          ],
          "message": "Invalid input: expected string, received undefined"
        }
      ],
      [
        {
          "expected": "object",
          "code": "invalid_type",
          "path": [
            "part"
          ],
          "message": "Invalid input: expected object, received undefined"
        },
        {
          "expected": "string",
          "code": "invalid_type",
          "path": [
            "delta"
          ],
          "message": "Invalid input: expected string, received undefined"
        }
      ]
    ],
    "path": [],
    "message": "Invalid input"
  }
] process
INFO  2026-01-10T17:41:22 +0ms service=bus type=session.error publishing
INFO  2026-01-10T17:41:22 +1ms service=session.prompt sessionID=ses_4570cf5f8ffejJlSr9rEM33RxA cancel

Plugins

None

OpenCode version

1.0.105

Steps to reproduce

Ask any question

Screenshot and/or share link

No response

Operating System

Linux (NixOS 25.11.20251229.89dbf01 (Xantusia) x86_64)

Terminal

Kitty with nushell

Activity

  1. github-actions commented on Jan 10, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    The error signature matches exactly - both show the same invalid_union validation error with 'reason', 'part', and 'delta' fields. Feel free to ignore if your specific case differs.

  2. github-actions commented on Mar 25, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  3. removed
    bugSomething isn't working
    on May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions