annoying bug when tag a file @ in CLI #5971

Open
opened 2026-02-16 17:58:58 -05:00 by yindo · 0 comments
Owner

Originally created by @joseehilton147 on GitHub (Jan 14, 2026).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @joseehilton147 on GitHub (Jan 14, 2026). Originally assigned to: @rekram1-node on GitHub. ### 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 <img width="729" height="1799" alt="Image" src="https://github.com/user-attachments/assets/b9ef071f-2d9f-4858-913f-cf95d4073531" /> ### Operating System Windows 11 25H2 ### Terminal Windows Terminal
yindo added the windowsbug labels 2026-02-16 17:58:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5971