Skip to content

test: guard synthetic part id compatibility#39

Open
walioo wants to merge 1 commit intosupermemoryai:mainfrom
walioo:fix/synthetic-part-id-regression-guard
Open

test: guard synthetic part id compatibility#39
walioo wants to merge 1 commit intosupermemoryai:mainfrom
walioo:fix/synthetic-part-id-regression-guard

Conversation

@walioo
Copy link
Copy Markdown

@walioo walioo commented Mar 26, 2026

Summary

  • extract synthetic Supermemory part ID creation into a small helper with regression tests
  • add a bun test release gate so future publishes cannot skip this compatibility check
  • keep the existing prt_supermemory-* behavior but make it explicitly verified in CI

Why

OpenCode 1.2.25+ enforces prt-prefixed part IDs. The repository source already contains the prefix fix, but the published 2.0.5 package still reproduced runtime failures with synthetic IDs like supermemory-context-* in my environment. This PR adds test and release protection so the compatibility fix remains enforced and future publishes cannot regress silently.

Verification

  • bun test
  • bun run typecheck
  • bun run build
  • local OpenCode 1.3.2 repro with patched installed plugin no longer emitted Invalid string: must start with \"prt\"

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.

1 participant