Skip to content

fix: restore schema v2 compatibility for persisted stores#6

Merged
Plutarch01 merged 1 commit intoPlutarch01:masterfrom
Milofax:fix/schema-v2-upstream-lineage
Apr 11, 2026
Merged

fix: restore schema v2 compatibility for persisted stores#6
Plutarch01 merged 1 commit intoPlutarch01:masterfrom
Milofax:fix/schema-v2-upstream-lineage

Conversation

@Milofax
Copy link
Copy Markdown
Contributor

@Milofax Milofax commented Apr 10, 2026

Summary

  • restore the store/schema changes needed for schemaVersion=2, including strategy-aware summary node handling and deterministic-v2 cache compatibility
  • preserve the upstream startup behavior while making legacy archived messages and summary graph rebuilds tolerant of missing ids, timestamps, and part text
  • add regression coverage for the restart path that currently breaks with Unsupported store schema version: 2

Blocker

This is blocking real restarts right now. A persisted store created with the newer schema can leave OpenCode unable to reopen the plugin after restart until the cached package is manually patched.

Please merge this soon so a fixed package can be released.

Verification

  • npm run build
  • npm test
  • npm test -- --test-name-pattern=\"transformMessages tolerates legacy archived messages without created timestamps|transformMessages tolerates legacy archived messages with missing id and parts text|changing the summary strategy invalidates cached summary graph nodes|transformMessages below threshold does not open SQLite|capture skips ignored events without opening SQLite|transformMessages keeps deferred maintenance idle until the async read finishes\"
  • packed opencode-lcm@0.13.4 was inspected locally and still lacked the schema-v2/store-migration support present in this branch

Plutarch01 pushed a commit that referenced this pull request Apr 11, 2026
fix: restore schema v2 compatibility for persisted stores
@Plutarch01 Plutarch01 merged commit 491e9a2 into Plutarch01:master Apr 11, 2026
Plutarch01 added a commit that referenced this pull request Apr 11, 2026
fix: restore schema v2 compatibility for persisted stores
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants