OpenCode v2 migration bug: one malformed message ID aborts entire history import

maciejmalysz · ghdev · 2026-10-12

Upgrading opencode from V1 to v2.0.27 aborts data migration with Data migration failed / Schema validation failed. The migration validates legacy message IDs against Session.Message.ID (requiring a msg prefix); a single non-conforming record kills the whole migration instead of being skipped, leaving all V1 session history unimported, with the failure repeating on every startup.

Original post →

More from coding & agent

coding & agent channel →