Skip to content

v2.20.0

Choose a tag to compare

@github-actions github-actions released this 18 Oct 15:04
· 72 commits to main since this release
f24ce11

Changed

  • The OpenCode plugin runs on OpenCode V2 (@opencode/plugin 2.0.32). OpenCode 2 rejects V1 plugin modules at load time, so @rohirik/opencode-ltm failed to load and its tools and memory injection were gone. The plugin now default-exports { id: "openltm", setup }, adds its five ltm_* tools through ctx.tool.transform with JSON Schema inputs (as direct tools, not behind code mode), injects the Prior Knowledge block through the context session hook and keeps active memories through the compaction hook. The project is resolved from ctx.location.directory. OpenCode 1.x users should pin @rohirik/opencode-ltm@2.19.0; this version does not load there.

Fixed

  • A database migrated by an older release no longer fails with "checksum mismatch". Migrations 009, 015, 017, 023 and 027 were edited after they shipped, so a database that applied an earlier text was refused at startup and OpenLTM went down. Those exact earlier texts are now recognized and re-recorded with the current checksum; the edits never changed the resulting schema. Any other mismatch still fails closed, and its error now names every mismatched version and the way out.
  • /openltm:admin migrate --accept-checksums recovers from a mismatch that is not on that list: it backs the database up, then re-records the checksums. No migration SQL runs and no data changes. migrate status lists mismatched versions.
  • /openltm:doctor exists again. Onboarding and the docs pointed to it, but the command file was gone, so Claude Code answered "Unknown command". It runs the plugin health check, which now also reports migration checksum mismatches. The check itself crashed on the agents array in plugin.json, looked for an MCP server named ltm instead of memory, flagged the quoted hook commands as unrecognised, and pointed to the removed /openltm:migrate; all fixed.
  • /openltm:admin migrate ran src/migrations.ts, which does not exist; it now runs the core migration runner.
  • OpenCode ltm_learn without a category no longer fails. The category is auto-detected (heuristic only) like the MCP learn tool, and the result reports the stored category.