Skip to content

ZodError 'must start with prt' fixed in v2.0.5 #40

@Prasanna721

Description

@Prasanna721

Summary

A customer reported a ZodError when using the plugin with OpenCode 1.2.25+:

"name": "UnknownError",
"data": {
    "message": "ZodError: [{ \"origin\": \"string\", \"code\": \"invalid_format\", \"format\": \"starts_with\", \"prefix\": \"prt\", \"path\": [\"id\"], \"message\": \"Invalid string: must start with \\\"prt\\\"\" }]"
}

Root Cause

OpenCode 1.2.25+ added server-side Zod validation requiring Part IDs to start with "prt". Older versions of the plugin generated Part IDs without this prefix.

Fix

Already fixed in commit ac0294f (fix: add prt_ prefix to part IDs for OpenCode 1.2.25+ compatibility) and included in v2.0.5.

Verified

  • Tested locally with OpenCode 1.3.2 + plugin v2.0.5 — error no longer reproduces.

Resolution

Customers hitting this error should update to the latest plugin version:

opencode-supermemory@latest

Metadata

Metadata

Assignees

No one assigned

    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