opencode icon indicating copy to clipboard operation
opencode copied to clipboard

annoying bug when tag a file @ in CLI

Open joseehilton147 opened this issue 1 day ago • 1 comments

Description

Everytime i try to invoke a file with @ the TUI got bugged with this error.

The error only occur on CLI, Desktop and Web Page works fine.

ZodError: [
  {
    "code": "invalid_union",
    "errors": [
      [
        {
          "expected": "string",
          "code": "invalid_type",
          "path": [
            "id"
          ],
          "message": "Invalid input: expected string, received undefined"
        },
        {
          "expected": "string",
          "code": "invalid_type",
          "path": [
            "sessionID"
          ],
          "message": "Invalid input: expected string, received undefined"
        },
        {
          "expected": "string",
          "code": "invalid_type",
          "path": [
            "messageID"
          ],
          "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"
        }
      ],
      [
        {
          "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"
  }
]

works for any model, only need to tag a file.

Plugins

md-table-formatter

OpenCode version

1.1.20

Steps to reproduce

tag a file

Screenshot and/or share link

Image

Operating System

Windows 11 25H2

Terminal

Windows Terminal

joseehilton147 avatar Jan 15 '26 00:01 joseehilton147