Skip to content

After using the plugin, an error occurred when I entered the image: Schema validation failed #517

Closed

Description

@scookiem

Activity

  1. magic-alfonso commented on Sep 24, 2026

    @magic-alfonso

    Thanks for the report and the bundle. 0.42.6 has several known problems on OpenCode 2 that the next release fixes, and we're now reproducing the image case on a real OpenCode 2 host to see whether it's one of them or something new.

    Two details would help:

    • How did you attach the image: pasted into the prompt, dragged in, or referenced as a file path?
    • Does the same error happen with Magic Context removed from your plugins list? That tells us whether the rejected request is one we changed.

    On OpenCode 2 our log is under %TEMP%\opencode2\magic-context\magic-context.log (the bundle picked up the OpenCode 1 log, which doesn't cover this session). The few lines from the moment you attached the image would show exactly which part was rejected.

  2. ualtinok commented on Sep 24, 2026

    @ualtinok
    Contributor

    Shipped in 0.43.0: attached images on OpenCode 2.0.15 and later keep the typed shape OpenCode expects, so "Schema validation failed" no longer happens, and images in recent messages survive a history fold. Closing; reopen if you still see it on 0.43.0.

  3. added a commit that references this issue on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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